[ncl-talk] unsymetrical non linear colormaps for plots
Dennis Shea
shea at ucar.edu
Tue Sep 18 14:20:47 MDT 2018
If you only have 12 values and they are Jan, Feb,...,Dec and it is a
climatology
iDJF = (/1,2,11/)
xDJF = dim_avg_n(x(iDJF). 0) ; x[*]
If it is not a climatology
http://www.ncl.ucar.edu/Document/Functions/Contributed/month_to_season.shtml
On Tue, Sep 18, 2018 at 9:55 AM Sri Nandini <snandini at marum.de> wrote:
> Hello
>
> I have been trying to get winter climatology from my data by selecting
> specific months of Dec, Jan, Feb using NCL coordinate subscripting; however
> it is not working and i am hopfull someone could point me in the right
> direction?I can extract Jan and Feb but no Dec month.
>
> I have also tried using indices without success.
>
> Heres the code:
>
> time=f->time
> print(time)
>
> TIME = time({136358.5:136386.5}) ; coordinate subscripting
> print(TIME)
>
> do nmo=0,11,1 ; loop over the months
>
> EGR(i) = egr(nmo,:,:,:)
> printVarSummary(EGR)
>
> end do
>
>
> Variable: time
> Type: double
> Total Size: 96 bytes
> 12 values
> Number of Dimensions: 1
> Dimensions and sizes: [time | 12]
> Coordinates:
> time: [136358.5..136692.5]
> Number Of Attributes: 5
> long_name : time
> units : days since 0001-01-01 00:00:00
> calendar : noleap
> bounds : time_bnds
> cell_methods : time: mean
> (0) 136358.5
> (1) 136386.5
> (2) 136417.5
> (3) 136447.5
> (4) 136478.5
> (5) 136508.5
> (6) 136539.5
> (7) 136570.5
> (8) 136600.5
> (9) 136631.5
> (10) 136661.5
> (11) 136692.5
>
>
> Variable: TIME
> Type: double
> Total Size: 16 bytes
> 2 values
> Number of Dimensions: 1
> Dimensions and sizes: [time | 2]
> Coordinates:
> time: [136358.5..136386.5]
> Number Of Attributes: 5
> cell_methods : time: mean
> bounds : time_bnds
> calendar : noleap
> units : days since 0001-01-01 00:00:00
> long_name : time
> (0) 136358.5
> (1) 136386.5
> fatal:Undefined identifier: (EGR) is undefined, can't continue
>
>
> Would be grateful
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180918/58ac35ef/attachment.html>
More information about the ncl-talk
mailing list