[ncl-install] Request

Abhishek Savita abhisheknagar2 at gmail.com
Thu May 12 08:09:20 MDT 2016


Dear Sir
            Presently I am using NCAR Command Language Version 6.1.2. I
have made the anomaly from this version and from pyferret and after
compression we have got a lot of differences.
I am mentioning the script use for NCAR to make anomaly


;<<<<<<<<<<<<<<<<<<<<<<<<<<program for making the anomaly
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!
load "/usr/share/ncarg/nclscripts/csm/gsn_code.ncl"
load "/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl"
load "/usr/share/ncarg/nclscripts/csm/contributed.ncl"
load "/usr/share/ncarg/nclscripts/csm/shea_util.ncl"

;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
begin
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
   fili  = "/home/abhishek/Desktop/work/phd/Ridge_SCTR/
soda_d20_1958_2010_ind.nc"                                 ; define filename
   f   = addfile (fili, "r")
   d20=f->D20
;  print(d20)
;  printVarSummary(d20)
   anom = d20
   anom = dim_rmvmean(d20)
;  printVarSummary(anom )

;<<<<<<<<<<<<<<<<<<<<<<remove any preexicting file
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!
   system("/bin/rm -f soda_d20_anm.nc")

;<<<<<<<<<<<<<<<<<<<< open outputnetcdf file
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ncdf = addfile("soda_d20_anm.nc" ,"c")  ; open output netCDF file

;<<<<<<<<<<<<<<<<<<<<<<<<<for giveing the information of the file
<<<<<<<<<<<<<<<<<<<<<<<<<<<!
fAtt               = True            ; assign file attributes
       fAtt at title         = "NCL Simple Approach to netCDF Creation"
       fAtt at source_file   =  "original-file.nc"
       fAtt at Conventions   = "None"
       fAtt at creation_date = systemfunc ("date")
       fileattdef( ncdf, fAtt )            ; copy file attributes

;<<<<<<<<<<<<<<<<<<<<<<< make time an UNLIMITED dimension; recommended  for
most applications<<<<<<<<<<<<<<<<<<<<<<<<
       filedimdef(ncdf,"time",-1,True)
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 ; output variables directly; NCL will call appropriate function to write
the meta data associated with each variable
       ncdf->anom  = anom
end

Eagerly waiting for your reply
regards
Abhishek

Regards

*Abhishek Savita*

Research Scholar (Earth System Science Technology)
*Center For Oceans, Revers, Atmoshphere & Land Science Technology*
Indian Institute of Technology, Kharagpur
+91-8609704619
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160512/da3480a5/attachment.html 


More information about the ncl-install mailing list