[ncl-talk] Changing month from numeral to string

Geeta Geeta geetag54 at yahoo.com
Thu May 4 00:09:11 MDT 2017


Dear all. In my code, the output date is 2011-04-14     Month_names              =  (/"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"/)     Month_num                =  (/"1"  ,"2","3","4","5","6","7","8","9","10,"11","12"/)     Rain                     =   F[0]->precipitation;                                  print(F[0])     Rain!0                   =   "longitude"     Rain!1                   =   "latitude"     RainF                    =    Rain(latitude|:,longitude|:)     RainF at _FillValue         =    -9999.9                      RainF!0                  =   "latitude"     RainF!1                  =   "longitude"     RainF&longitude          =    longitude     RainF&latitude           =    latitude     RainF&longitude at units    =    "degrees_east"     RainF&latitude at units     =    "degrees_north"                                   printVarSummary(RainF)
     Date_file                =   F[0]@BeginDate     Split_date               =   str_split(Date_file,"-")     Year                       =   Split_date(0)     Month                    =   Split_date(1)     Day                       =   Split_date(2)      I have to change 04 month to april. For this I have defined 2 arrays Month_names and Month_num. 
How should I do this. Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/b17943db/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RF.daily.v1.ncl
Type: application/octet-stream
Size: 14688 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170504/b17943db/attachment.obj 


More information about the ncl-talk mailing list