[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BKR-624336]: Help to manipulate .nc files on Python



Leo,

Can you send the exact error message you get when you try to open the file? 
Otherwise, there's no way I can help you figure out what's going on.

In general, you may want to look at this for tips on reading netCDF from Python:

https://github.com/Unidata/unidata-python-workshop/blob/master/notebooks/netCDF/netCDF-Reading.ipynb

The install directions to go with that material is here:

https://unidata.github.io/unidata-python-workshop/installation.html

Ryan

> Dear Ms or Mr,
> 
> I'm working on a water scarcity index and I need to manipulate netCDF
> files (especially from ISIMIP and EarthStat ). I've seen that it's
> possible to access to these .nc files on Python using some packages.
> 
> I've installed NCO and netCDF4 on Python in order to open and manipulate
> .nc files but I don't find the way to operate as I'm new with Python.
> 
> May you help me with some guidelines ? I've read on the Python help that
> I probably need to use Dataset from netCDF4 but I failed to open the file.
> 
> I don't know if I use the good packages or if I need to use netCDF
> 4.6.1 but I even don't know how to install this package from the source
> code ( https://github.com/Unidata/netcdf-c/releases )... I read about
> using ncdump to open a .nc file but I think I can't use this with NCO
> or netCDF4.

Ticket Details
===================
Ticket ID: BKR-624336
Department: Support Python
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.