[ncl-talk] unsymetrical non linear colormaps for plots

Sri Nandini snandini at marum.de
Tue Sep 18 09:54:52 MDT 2018


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: timeType: 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180918/4d2fd09b/attachment.html>


More information about the ncl-talk mailing list