Run2 netcdf data handling
This skill covers using the netCDF4 library for reading simulation outputs in Lake Mendota GLM modelling.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_netcdf-data-handlingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.6 KB, 108 tokens by cl100k_base, as published. Nobody here has run it
NetCDF4 Handling Skill
Reading NetCDF
Use netCDF4.Dataset to open files.
- Time conversion: Use
num2date(ds['time'][:], units=ds['time'].units, calendar='standard'). - Coordinate flattening: Extract variables, handle dimensions. Use masked arrays if necessary (
np.ma.is_masked).
Data Merging
When merging with observations, ensure types match (e.g., datetime64, rounded depths). Use pandas DataFrames for easy merging and analysis.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.