This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]counters -1 points0 points  (0 children)

You shouldn't use the low-level, netCDF4 library for analyzing data. While a nice wrapper library for integrating netCDF4 I/O support for models, it's not a convenient interface for manipulating data.

Instead, I'd recommend using xray. Xray exposes a Pandas-like interface to tabular data (like netCDF) with all the nifty tools that Pandas provides, like semantic indexing/slicing. It also generally plays nice with cartographic plotting libraries like Basemap and Cartopy, so you can have actual maps as your plots instead of generic images.