<div dir="ltr"><div><div><div><div><div><div>[1] <br>This is not the appropriate mail list for this type of question.<br></div> In the future, please send to <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> (You must register)<br><br> <a href="http://www.ncl.ucar.edu/Support/email_lists.shtml">http://www.ncl.ucar.edu/Support/email_lists.shtml</a><br><br></div>[2] <br>When you use a function (eg: dim_rmvmean) in any language, you should read the function documentation. The short description is:<br><br>"Calculates and removes the mean of the (rightmost) dimension at all other dimensions."<br><br>No SODA data is locally available. I assume your variables are ordered<br><br> x(time,depth,lat,lon) or y(time,lat,lon)<br><br>So the rightmost dimension is 'lon' .... I am sure this is *NOT* what you want.<br><br>[3] <br></div><div>How can a response be made when you provide no information on the contents of the file?<br></div><div>Specifically, the 'D20' variable. Does this contain daily, pentad, monthly or annual values? <br><br></div><div>%> ncdump -h ....<br><br></div><div>or, equivalently<br><br></div><div>%> ncl_filedump ...<br></div><div><br></div></div></div><br>[4]<br></div><div>Anomalies from what? An overall mean? Anomalies from each climatological daily, monthly (ie, Jan, Feb,...) average?<br><br></div><div>Please respond to <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 12, 2016 at 8:09 AM, Abhishek Savita <span dir="ltr"><<a href="mailto:abhisheknagar2@gmail.com" target="_blank">abhisheknagar2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear Sir <br></div> 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.<br></div>I am mentioning the script use for NCAR to make anomaly<br><br><br><div>;<<<<<<<<<<<<<<<<<<<<<<<<<<program for making the anomaly <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!<br>load "/usr/share/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl"<br>load "/usr/share/ncarg/nclscripts/csm/contributed.ncl"<br>load "/usr/share/ncarg/nclscripts/csm/shea_util.ncl"<br><br>;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br>begin<br>;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br> fili = "/home/abhishek/Desktop/work/phd/Ridge_SCTR/<a href="http://soda_d20_1958_2010_ind.nc" target="_blank">soda_d20_1958_2010_ind.nc</a>" ; define filename<br> f = addfile (fili, "r")<br> d20=f->D20<br>; print(d20)<br>; printVarSummary(d20)<br> anom = d20<br> anom = dim_rmvmean(d20)<br>; printVarSummary(anom )<br><br>;<<<<<<<<<<<<<<<<<<<<<<remove any preexicting file <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!<br> system("/bin/rm -f <a href="http://soda_d20_anm.nc" target="_blank">soda_d20_anm.nc</a>")<br><br>;<<<<<<<<<<<<<<<<<<<< open outputnetcdf file <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<br>ncdf = addfile("<a href="http://soda_d20_anm.nc" target="_blank">soda_d20_anm.nc</a>" ,"c") ; open output netCDF file<br><br>;<<<<<<<<<<<<<<<<<<<<<<<<<for giveing the information of the file <<<<<<<<<<<<<<<<<<<<<<<<<<<!<br>fAtt = True ; assign file attributes<br> fAtt@title = "NCL Simple Approach to netCDF Creation"<br> fAtt@source_file = "<a href="http://original-file.nc" target="_blank">original-file.nc</a>"<br> fAtt@Conventions = "None"<br> fAtt@creation_date = systemfunc ("date")<br> fileattdef( ncdf, fAtt ) ; copy file attributes<br><br>;<<<<<<<<<<<<<<<<<<<<<<< make time an UNLIMITED dimension; recommended for most applications<<<<<<<<<<<<<<<<<<<<<<<<<br> filedimdef(ncdf,"time",-1,True)<br>;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br> ; output variables directly; NCL will call appropriate function to write the meta data associated with each variable<br> ncdf->anom = anom<br>end<br><br></div><div>Eagerly waiting for your reply<br></div><div>regards<br></div><div>Abhishek<br></div><div><br><div><div><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold">Regards</span><br style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"><br style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"><font face="times new roman, new york, times, serif" color="#00007f" size="3"><b>Abhishek Savita</b></font></div><div dir="ltr"><font face="times new roman, new york, times, serif" color="#00007f" size="3"><b><br></b></font></div><div dir="ltr"><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold">Research Scholar (Earth </span><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold">System Science Technology)</span></div><div dir="ltr"><font face="times new roman, new york, times, serif" color="#00007f" size="3"><b>Center For Oceans, Revers, Atmoshphere & Land Science Technology</b></font><br style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold">Indian Institute of Technology, Kharagpur</span><br style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"><a href="tel:%2B91-8609704619" value="+918609704619" target="_blank">+91-8609704619</a></span><div><font face="times new roman, new york, times, serif" color="#00007f" size="3"><b><br></b></font><div><span style="color:rgb(0,0,127);font-family:"times new roman","new york",times,serif;font-size:16px;font-weight:bold"> </span></div></div></div></div></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div>