netCDF4 file access via h5py with hierarchical and legacy APIs for scientific computing
69
Build a scientific data validation system that stores measurement data with boolean quality flags and uses advanced compression features.
You need to create a system that:
Create a function write_sensor_data(filename, temperatures, flags) that:
Create a function read_sensor_data(filename) that:
@generates
def write_sensor_data(filename: str, temperatures: list, flags: list) -> None:
"""
Write sensor data with quality flags to a file.
Args:
filename: Path to the output file
temperatures: List of temperature measurements (floats)
flags: List of boolean quality control flags
"""
pass
def read_sensor_data(filename: str) -> tuple:
"""
Read sensor data and quality flags from a file.
Args:
filename: Path to the input file
Returns:
Tuple of (temperatures array, flags array)
"""
passProvides netCDF4 file format access with support for extended HDF5 features.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-h5netcdfdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10