agentsclimarketplace

Python xarray netcdf

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-gemini-3.1-pro-preview/temperature-simulation/python-xarray-netcdf

Reading and processing NetCDF outputs from models like GLM using Python and xarray.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill python-xarray-netcdf

Assembled 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

  • xarray
  • netCDF4

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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.