Python xarray netcdf
Reading and processing NetCDF outputs from models like GLM using Python and xarray.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill python-xarray-netcdfAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.6 KB, 128 tokens by cl100k_base, as published. Nobody here has run it
python-xarray-netcdf
This skill covers how to load NetCDF (.nc) files, typically output by environmental models like GLM, and process their multi-dimensional variables using xarray.
Requirements
xarraynetCDF4
Example Usage
import xarray as xr
# Load the NetCDF file
ds = xr.open_dataset('output.nc')
# Access a specific variable, e.g., 'temp'
temp_data = ds['temp']
# Select a specific depth or time if indexed
# ds.sel(time='2010-01-01')
ds.close()
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.