Ummm, I downloaded the dataset from
ftp://ftp.cdc.noaa.gov/Datasets/interp_OLR/olr.day.mean.nc
diri="./"
f1=addfile(diri+"olr.day.mean.nc","r")
olr= short2flt(f1->olr(:,{-10:45},{65:120}))
time=olr&time
ntime=ut_calendar(time,2)
printVarSummary(ntime)
delete(olr&time)
olr&time=ntime
printVarSummary(olr)
ol=olr({19810101:19821231},:,:)
printVarSummary(ol)
+++++++++++++++++++++++++++++++++++++++++++++++++
The edited output looks fine.
==================================================
Variable: ntime
Type: double
Total Size: 98616 bytes
12327 values
Number of Dimensions: 1
Dimensions and sizes: [12327]
Coordinates:
================================================
Variable: olr
Type: float
Total Size: 26083932 bytes
6520983 values
Number of Dimensions: 3
Dimensions and sizes: [time | 12327] x [lat | 23] x [lon | 23]
Coordinates:
time: [19740601..20080229]
lat: [-10..45]
lon: [65..120]
Number Of Attributes: 12
long_name : Daily OLR
units : W/m^2
=================================================
Variable: ol
Type: float
Total Size: 1544680 bytes
386170 values
Number of Dimensions: 3
Dimensions and sizes: [time | 730] x [lat | 23] x [lon | 23]
Coordinates:
time: [19810101..19821231]
lat: [-10..45]
lon: [65..120]
Sijikumar S wrote:
> Hi NCLs
>
> The following error occurred when I try to use time coordinate
> subscripting ,
>
> fatal:NclOneDValGetRangeIndex: Non-monotonic coordinate value being
> used, can't complete coordinate subscript
> fatal:Could not obtain coordinate indexes, unable to perform subscript
> fatal:Execute: Error occurred at or near line 20
>
>
>
> The 4D variable with following details is used
>
>
> ncl 23> printVarSummary(olr)
>
>
> Variable: olr
> Type: float
> Total Size: 25375072 bytes
> 6343768 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 11992] x [lat | 23] x [lon | 23]
> Coordinates:
> time: [19740601..20070331]
> lat: [-10..45]
> lon: [65..120]
> Number Of Attributes: 12
> long_name : Daily OLR
> valid_range : ( 0, 500 )
> actual_range : ( 95.5, 324.7 )
> units : W/m^2
> var_desc : Outgoing Longwave Radiation
> precision : 2
> dataset : NOAA Interpolated OLR
> level_desc : Other
> statistic : Mean
> parent_stat : Individual Obs
> _FillValue : 32766
> missing_value : 32766
>
> When I try to extract a part using time coordinate subscripting the
> following error occurs.
>
> ncl 20> ol=olr({19810101:19821231},:,:)
> fatal:NclOneDValGetRangeIndex: Non-monotonic coordinate value being
> used, can't complete coordinate subscript
> fatal:Could not obtain coordinate indexes, unable to perform subscript
> fatal:Execute: Error occurred at or near line 20
>
> Any suggestions?
> Thanks
>
> Siji
>
> P.S NCL 5.0 is my NCL version.
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Jun 06 2008 - 06:25:36 MDT
This archive was generated by hypermail 2.2.0 : Mon Jun 09 2008 - 08:42:01 MDT