Re: changing the content of a NCDF file [message #78319] |
Fri, 11 November 2011 07:07 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Ok, here is the solution (I was missing teh WRITE keyword in
NCDF_OPEN)
ncdf_id=NCDF_OPEN(file,/WRITE)
var_id=NCDF_VARID(ncdf_id,var)
NCDF_VARPUT, ncdf_id, var_id, new_data
NCDF_CLOSE, ncdf_id
Thank you,
nata
|
|
|
|
Re: changing the content of a NCDF file [message #84636 is a reply to message #78321] |
Fri, 11 November 2011 07:04  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Ok, this is what I try and It doesn't work:
ncdf_id=NCDF_OPEN(file)
ar_id=NCDF_VARID(ncdf_id,var)
NCDF_VARPUT, ncdf_id, var_id, new_DATA
NCDF_CLOSE, ncdf_id
What am I missing ? I am not changing dimensions I just want to
replace the content...
Bernat
|
|
|