Re: error in gsn_csm_pres_hgt

From: Cathy Smith (NOAA Affiliate) <cathy.smith_at_nyahnyahspammersnyahnyah>
Date: Thu May 15 2014 - 12:07:10 MDT

Dave

We just came up with a similar fix here.

If we use

time_new = cd_convert( dataplot&time, "days since 2000-01-01 00:00" )
dataplot&time=time_new
plot = gsn_csm_pres_hgt (wks,dataplot,res)

It works.

Cathy

On 5/15/14 11:57 AM, David Brown wrote:
> Hi Cathy,
> The problem is because eventually NCL converts all coordinate values
> to float and thus loses precision, it's likely that some of these
> values become "equal" and therefore not strictly monotonic.
> I would suggest subtracting an offset (maybe the first value) from all
> values prior to the plotting call. Of course you may need to adjust
> some of the titles or tick mark labels to account for this change.
> -dave
>
> On May 15, 2014, at 10:13 AM, "Cathy Smith (NOAA Affiliate)"
> <cathy.smith@noaa.gov <mailto:cathy.smith@noaa.gov>> wrote:
>
>> Hi all
>> I'm getting the error
>>
>> warning:IrTransInitialize: trXCoordPoints contains invalid coordinate
>> array: defaulting trXAxisType to LinearAxis
>>
>> from
>>
>> gsn_csm_pres_hgt (wks,dataplot,res)
>>
>> I found a similar error in the NCL archives and it said time couldn't
>> be yyyymmdd but mine isn't; it's double, in order and linear.
>>
>> print(dataplot&time) yields
>>
>> Variable: time (coordinate)
>> Type: double
>> Total Size: 128 bytes
>> 16 values
>> Number of Dimensions: 1
>> Dimensions and sizes: [time | 16]
>> Coordinates:
>> Number Of Attributes: 6
>> units : hours since 1-1-1 00:00:0.0
>> long_name : Time
>> actual_range : ( 17628096, 17636874 )
>> delta_t : 0000-00-00 06:00:00
>> standard_name : time
>> axis : T
>> 17628096
>> 17628102
>> 17628108
>> 17628114
>> 17628120
>> 17628126
>> 17628132
>> 17628138
>> 17628144
>> 17628150
>> 17628156
>> 17628162
>> 17628168
>> 17628174
>> 17628180
>> 17628186
>>
>> I'm using NCL V6.2, 64bit linux. Any ideas?
>>
>> Thanks
>> Cathy Smith
>> --
>> ----------------------------------------------
>> NOAA/ESRL PSD and CU CIRES
>> 303-497-6263
>> http://www.esrl.noaa.gov/psd/people/cathy.smith/
>>
>> Emails about data/webpages may get quicker responses from emailing
>> esrl.psd.data@noaa.gov
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
http://www.esrl.noaa.gov/psd/people/cathy.smith/
Emails about data/webpages may get quicker responses from emailing 
esrl.psd.data@noaa.gov

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 15 12:07:23 2014

This archive was generated by hypermail 2.1.8 : Tue May 20 2014 - 10:18:04 MDT