[Thread Prev][Thread Next][Index]

Re: [ferret_users] list and save commands



Hi Patrick,
This second example looks like a bug. Ferret should tell you that you are trying to write two variables of the same name. Ferret doesn't automatically rename variables that have duplicate names, as it does for coordinate axes. What is happening is that the second variable overwrites the first in the file and of course you would want to see an error message saying that there is already a variable of that name in the output file.

Ansley

On 6/14/2011 7:28 AM, Brockmann Patrick wrote:
Hi all again,

When I use list and save commands on 2 variables that
have a different time range but compatible, I get only one variables
saved whereas the list displayed the 2.

Here is what you can try:

use "http://dods.extra.cea.fr/cgi-bin/nph-dods/data/p86denv/IPSLCM5A/PROD/rcp85/v3.rcp85.1/ATM/Analyse/TS_MO_YE/v3.rcp85.1_20060101_22351231_1Y_t2m_min.nc"; use "http://dods.extra.cea.fr/cgi-bin/nph-dods/data/p86denv/IPSLCM5A/PROD/rcp45/v3.rcp45.1/ATM/Analyse/TS_MO_YE/v3.rcp45.1_20060101_22851231_1Y_t2m_min.nc";

list/l=1:20 T2M_MIN[i=30,j=45,d=1], T2M_MIN[i=30,j=45,d=2]
! --> 2 variables are displayed

save/clobber/file=tyty.nc/l=1:20 T2M_MIN[i=30,j=45,d=1], T2M_MIN[i=30,j=45,d=2]
spawn ncdump tyty.nc
--> only 1 variable is saved !!

Patrick



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement