[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ferret calendar error when plotting



Hi,
Try plotting the various time series separately and see whether Ferret puts the CALENDAR label in the upper left.  That might give you an idea where the NOLEAP calendar is not assigned.
plot  clr_anom_DJF1

plot swdn_sfcanom_DJF[x=@ave,y=@ave]

plot SWDN_SFC_CLR[D=atmos.1861-2003.DJF.swdn_sfc_clr, L=100:143]

plot SWDN_SFC_CLR[D=atmos.1861-2003.DJF.swdn_sfc_clr, L=100:143] - SWDN_SFC_CLR[D=atmos.1861-2003.DJF.swdn_sfc_clr, L=100:143@AVE]

and anything else that occurs to you.

Within the ferret source code, the text "NO_CALENDAR" is given to an axis only if a calendar id that has been stored for an axis is not one of the expected values, which are translated into GREGORIAN, NOLEAP etc.  So this may be a bug, or we have got into some unexpected state.

If you don't see anything obvious, then if this is NetCDF data, we might be able to get a clue from the netCDF header. So please send the output of

    > ncdump -h filename.nc

or Ferret's command

   yes? show data/attributes


On 11/15/2012 1:21 PM, Geeta Persad wrote:
Hi All,

I am trying to plot two time series variables on the same plot using plot/over. My code reads as follows:
"
plot/color=red/thick=2 clr_anom_DJF1
plot/over/color=black/thick=2 swdn_sfcanom_DJF[x=@ave,y=@ave]
"
where clr_anom_DJF1 and swdn_sfcanom_DJF are the two time series variables.

However, when I try to do this, I get the following error:

 **ERROR: inconsistent data grids: Differing calendar axes:                                                                         
          first variable is on NO_CALENDAR axis                                                                                     
          subsequent variable is on NOLEAP axis   

Both variables, however, read as being on the noleap character. When I list the two variables, I get the following variable characteristics

for swdn_sfcanom.DJF:
VARIABLE : SWDN_SFC_CLR[D=atmos.1861-2003.DJF.swdn_sfc_clr, L=100:143] - SWDN_SFC_CLR[D=atmos.1861-2003.DJF.swdn_sfc_clr, L=100:143@AVE]
SUBSET   : 44 points (TIME)                                                                                                            
CALENDAR : NOLEAP                  

and for clr_anom_DJF1:
VARIABLE : CLR_ANOM_DJF[D=China_clr_anom_DJF,GT=T1@ASN]
 SUBSET   : 59 points (T (YEARS))
CALENDAR : NOLEAP

I have tried explicitly assign the same calendar to both variables using the "define axis/calendar=no_leap/..."  command, but I continue to get the same error.

Any ideas on what might be causing Ferret to mistake the calendar type? Any assistance troubleshooting this would be much appreciated.

Thanks,
   Geeta



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

Privacy Policy | Disclaimer | Accessibility Statement