netCDF4 file access via h5py with hierarchical and legacy APIs for scientific computing
69
{
"context": "This evaluation assesses the engineer's proficiency in using h5netcdf for file operations, including creating, opening, reading, and modifying netCDF4 files. The focus is on correct usage of the h5netcdf.File class, dimension creation, variable management, attribute handling, and resource management patterns.",
"type": "weighted_checklist",
"checklist": [
{
"name": "File Creation",
"description": "Uses h5netcdf.File() with 'w' mode to create a new netCDF file",
"max_score": 10
},
{
"name": "Unlimited Dimension",
"description": "Creates an unlimited dimension using dimensions dictionary with None as the size (e.g., f.dimensions['time'] = None)",
"max_score": 15
},
{
"name": "Fixed Dimension",
"description": "Creates a fixed-size dimension using dimensions dictionary with an integer size (e.g., f.dimensions['station'] = num_stations)",
"max_score": 10
},
{
"name": "Variable Creation",
"description": "Uses create_variable() method to create variables with appropriate dimensions, dtype, and shape parameters",
"max_score": 15
},
{
"name": "Global Attributes",
"description": "Sets global metadata using the attrs dictionary interface (e.g., f.attrs['title'] = value)",
"max_score": 10
},
{
"name": "Read Mode",
"description": "Opens existing files in read mode using h5netcdf.File() with 'r' mode parameter",
"max_score": 10
},
{
"name": "Append Mode",
"description": "Opens existing files in append mode using h5netcdf.File() with 'a' mode parameter",
"max_score": 10
},
{
"name": "Data Writing",
"description": "Writes data to variables using NumPy-style indexing (e.g., var[:] = data or var[start:end] = data)",
"max_score": 10
},
{
"name": "Context Manager",
"description": "Uses h5netcdf.File as a context manager with 'with' statement for automatic resource cleanup",
"max_score": 10
}
]
}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