[Numpy-discussion] what python module to modify NetCDF data?

Chao YUE chaoyuejoy@gmail....
Sat Oct 8 09:45:06 CDT 2011


Dear all,

I want to change some variable values in a series of NetCDF file. Did
anybody else did this before using python?
Now I use pupynere for reading data from NetCDF files and making plots. but
the document of pupynere for writing data to NetCDF file is quite simple and
I still feel difficult to do this with pupynere.

the NetCDF file I want to change is a global data (0.5X0.5d resolution,
360X720grid with 12 time steps) and have approx. 10 variables. I just want
to change some points for a specific
variable for all 12 time steps. I know it's possible use NCO ncap2 utility
to do the job. but now I have some problem in using ncap2 within a shell
script.
I guess there is some easy way to use some python module to do the job? like
mainly altering the data that need to change while let the others remaining
intact?

Any idea will be greatly appreciated. I will all a good weekend,

Chao

-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20111008/f93735fe/attachment.html 


More information about the NumPy-Discussion mailing list