[ncl-install] Request

Dennis Shea shea at ucar.edu
Thu May 12 09:10:19 MDT 2016


[1]
This is not the appropriate mail list for this type of question.
 In the future, please send to ncl-talk at ucar.edu (You must register)

         http://www.ncl.ucar.edu/Support/email_lists.shtml

[2]
When you use a function (eg: dim_rmvmean) in any language, you should read
the function documentation. The short description is:

"Calculates and removes the mean of the (rightmost) dimension at all other
dimensions."

No SODA data is locally available. I assume your variables are ordered

   x(time,depth,lat,lon) or y(time,lat,lon)

So the rightmost dimension is 'lon' .... I am sure this is *NOT* what you
want.

[3]
How can a response be made when you provide no information on the contents
of the file?
Specifically,  the 'D20' variable. Does this contain daily, pentad, monthly
or annual values?

%> ncdump -h ....

or, equivalently

%> ncl_filedump ...


[4]
Anomalies from what? An overall mean? Anomalies from each  climatological
daily, monthly (ie, Jan, Feb,...) average?

Please respond to ncl-talk at ucar.edu


On Thu, May 12, 2016 at 8:09 AM, Abhishek Savita <abhisheknagar2 at gmail.com>
wrote:

> 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
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160512/8b80ea8a/attachment-0001.html 


More information about the ncl-install mailing list