<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Why did you comment this line ?<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class=""> ;printVarSummary(aot_subset)<br class=""></div></div></div></blockquote><div class=""><br class=""></div><div class="">That would have helped you in debugging the error on your own.</div><div class=""><br class=""></div><div class="">You are using the re-assignment operator ":=". This means that every time you make an assignment the variable is created again. Thus, you cannot make this assignment </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class=""> <b class=""> <span class="" style="color: rgb(255, 0, 0);">aot_subset</span>(ilt1:ilt2,iln1:iln2) := data(ilt1:ilt2, iln1:iln2)</b><br class=""></div></div></div></blockquote><br class=""></div><div class="">as NCL has no way to know the shape of <font face="Menlo" class="">aot_subset</font> beforehand. </div><div class=""><br class=""></div><div class="">The following should be used instead (notice the assignment with "=" in the second line).</div><div class=""><br class=""></div><div class=""><font face="Menlo" class=""> aot_subset := data</font></div><div class=""><font face="Menlo" class=""> aot_subset = aot_subset@_FillValue<br class=""> aot_subset(ilt1:ilt2,iln1:iln2) <b class="">=</b> data(ilt1:ilt2, iln1:iln2)</font></div><div class=""><br class=""></div><div class="">Notice that this will (1) create an array which is shaped like data (2) fill it with fill values as you only want to compute the average over the subset (3) populate the array only in the lat-lon box provided. However I don't see why you would want to use such a complicated syntax when the following code would produce the same result</div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">aot_subset_avg=avg(data(ilt1:ilt2, iln1:iln2))</font></div><div class=""><br class=""></div><div class="">If you have the right coordinate attributes you can even jump the first 7 lines and do </div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">aot_subset_avg=avg(data({18:24},{74:78})</font></div><div class=""><br class=""></div><div class="">but I don't know your data. </div><div class=""><br class=""></div><div class="">As it was already suggested by Mary and others, PLEASE take time to debug the errors on your own. </div><div class=""><br class=""></div><div class="">Regards,</div><br class=""><div><blockquote type="cite" class=""><div class="">On 17. Oct 2017, at 11:25, Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" class="">kunal.bali9@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div>I did the following changes but still getting an error of <span style="color:rgb(255,0,0)" class=""><b class="">aot_subset</b></span> which is undefined. <br class=""></div>please let me know that how to fix or defined the <span style="color:rgb(255,0,0)" class=""><b class="">aot_subset </b></span>this problem.<br class=""><div class=""><div class=""><br class=""><br class=""><br class=""> latv = (/ 18, 24/) ; for extracting grid box data <br class=""> lonv = (/ 74, 78 /)<br class=""> nm = getind_latlon2d (lat2d, lon2d, latv, lonv)<br class=""> ilt1 = nm(0,0) ; start lat index<br class=""> ilt2 = nm(1,0) ; start lon index<br class=""> iln1 = nm(0,1) ; end lat index<br class=""> iln2 = nm(1,1) ; end lon index<br class=""> lat_subset := lat2d(ilt1:ilt2,iln1:iln2)<br class=""> lon_subset := lon2d(ilt1:ilt2,iln1:iln2)<br class=""> aot_subset := data<br class=""> <b class=""> <span style="color:rgb(255,0,0)" class="">aot_subset</span>(ilt1:ilt2,iln1:iln2) := data(ilt1:ilt2, iln1:iln2)</b><br class=""> <br class=""> ;printVarSummary(aot_subset)<br class=""> aot_avg = avg(data)<br class=""> aot_subset_avg = avg(<span style="color:rgb(255,0,0)" class=""><b class="">aot_subset</b></span>)<br class=""> <br class=""> ;print(nm)<br class=""> print("-----")<br class=""><br class=""> do k=0,dimsizes(latv)-1<br class=""> n = nm(k,0)<br class=""> m = nm(k,1)<br class=""> print(lat2d(n,m)+" "+lon2d(n,m)) <br class=""> print(" "+data(:,n,m)) ; nearest grid point at all time steps<br class=""> print("-----")<br class=""> end do<br class=""><br class=""><br class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra">regards<br clear="all" class=""></div><div class="gmail_extra"><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Kunal Bali<br class=""></div><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; border-collapse: collapse; font-family: Tahoma, Verdana; font-size: 12px;" class=""><font color="#1F497D" class=""><br class=""></font></div></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">On Tue, Oct 17, 2017 at 12:41 PM, Kunal Bali <span dir="ltr" class=""><<a href="mailto:kunal.bali9@gmail.com" target="_blank" class="">kunal.bali9@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">I have sent the ncl script and data to the incoming dir with the given names as <br class=""><br class="">data = maiactaotE.h00v03.20003660525-<wbr class="">20003660700.nc.bz2<br class=""></div>ncl_script = extract_iiserb.ncl<br class=""></div><div class=""><br class=""></div><div class="">I am not able to define the var_subset in the given script. <br class=""></div>please let me know if you have received the data and script?<span class="gmail-HOEnZb"><font color="#888888" class=""><br class=""><br class=""><br class=""><div class=""><br class=""><br class=""></div></font></span><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888" class=""><br clear="all" class=""><div class=""><div class="gmail-m_-5786444228229381634gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Kunal Bali<br class=""></div><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; border-collapse: collapse; font-family: Tahoma, Verdana; font-size: 12px;" class=""><font color="#1F497D" class=""><br class=""></font></div></div></div></div></div></div></div></font></span><div class=""><div class="gmail-h5">
<br class=""><div class="gmail_quote">On Mon, Oct 16, 2017 at 11:07 PM, Mary Haley <span dir="ltr" class=""><<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div style="font-size:small" class="">Kunal,</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">You must make an effort to debug some of these problems on your own. The error is telling you that something is wrong around line 34 and it is telling you exactly what the problem is. Please try to fix this error.</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">If you continue to have problems after fixing this error, then I need to ask you to provide the full script and data via ftp:</div><div style="font-size:small" class=""><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/ftp_files.shtml" target="_blank" class="">http://www.ncl.ucar.edu/ftp_fi<wbr class="">les.shtml</a><br class=""></div><div class=""><br class=""></div><div class="">However, make sure you debug any other new problems that come up, instead of just emailing them to ncl-talk. We have a page to help you understand some of NCL's errors, and what causes them:</div><div class=""><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Docume<wbr class="">nt/Language/error_messages.<wbr class="">shtml</a><br class=""></div><div class=""><br class=""></div><div class="">The particular error you're seeing can be found here:</div><div class=""><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml#NumSubRHS" target="_blank" class="">http://www.ncl.ucar.edu/Docume<wbr class="">nt/Language/error_messages.<wbr class="">shtml#NumSubRHS</a><br class=""></div><div class=""><br class=""></div><div style="font-size:small" class="">As a side note, you are running a 3-year old version of NCL. I suggest that you upgrade to NCL V6.4.0.</div><span class="gmail-m_-5786444228229381634HOEnZb"><font color="#888888" class=""><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">--Mary</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class=""><br class=""></div></font></span></div><div class="gmail-m_-5786444228229381634HOEnZb"><div class="gmail-m_-5786444228229381634h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 16, 2017 at 12:52 AM, Kunal Bali <span dir="ltr" class=""><<a href="mailto:kunal.bali9@gmail.com" target="_blank" class="">kunal.bali9@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="">I simply include the code (which you mentioned) were I was taking the avg of the data as given below (please correct me if I did wrong)<br class=""><br class=""><br class="">;-----------------------------<wbr class="">------------------------------<wbr class="">-----------<span class=""><br class="">; Main code<br class="">;-----------------------------<wbr class="">------------------------------<wbr class="">-----------<br class=""> dir = "./"<br class=""> fnames = systemfunc("ls " + dir + "maiactaot*.nc")<br class="">print(fnames)<br class=""> a = addfile(fnames,"r")<br class=""> data = short2flt(a->Optical_Depth_055<wbr class="">_grid1km)<br class=""></span>printVarSummary (data)<br class="">printMinMax (data, 0)<br class="">print("-----")<br class=""> nFill = num(ismissing(data))<br class="">print("nFill="+nFill)<br class="">print("-----")<span class=""><br class=""><br class=""> lat2d = a->GridLat_grid1km<br class=""> lon2d = a->GridLon_grid1km<br class=""></span>printMinMax (lat2d, 0)<br class="">printMinMax (lon2d, 0)<br class="">print("-----")<br class=""><br class="">;---grid points of interest<br class="">;---<a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Do<wbr class="">cument/Functions/Contributed/g<wbr class="">etind_latlon2d.shtml</a><br class=""> ; latv = (/22, 24.0, 24.0, 22.0, 22.0/)<span class=""><br class=""> ; lonv = (/76, 76.0, 78.0, 78.0, 76.0/)<br class=""><br class=""></span> <span style="color:rgb(255,0,0)" class=""><b class="">latv = (/ 22, 24/)<br class=""> lonv = (/ 76, 78 /)<br class=""> nm = getind_latlon2d (lat2d, lon2d, latv, lonv)<span class=""><br class=""> ilt1 = nm(0,0) ; start lat index<br class=""> ilt2 = nm(1,0) ; start lon index<br class=""> iln1 = nm(0,1) ; end lat index<br class=""> iln2 = nm(1,1) ; end lon index<br class=""> var_subset = var(ilt1:ilt2,iln1:iln2)<br class=""> var_subset_avg = avg(var_subset)</span></b></span><br class=""><br class=""> print(nm)<br class=""> print("-----")<span class=""><br class=""><br class=""> do k=0,dimsizes(latv)-1<br class=""> n = nm(k,0)<br class=""> m = nm(k,1)<br class=""> print(lat2d(n,m)+" "+lon2d(n,m)) <br class=""></span><span class=""> print(" "+data(:,n,m)) <wbr class=""> ; nearest grid point at all time steps<br class=""> print("-----")<br class=""> end do<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""></span></div><b class="">But still not getting the desired output as a single square box mean value . It is showing the errors as</b><br class=""><br class="">kunal@kunal-Vostro-1015:/media<wbr class="">/Local Disk_/IIT_DELHI/2001/MAIACTAOT<wbr class="">_TIME$ ncl extract1.ncl <br class=""> Copyright (C) 1995-2014 - All Rights Reserved<br class=""> University Corporation for Atmospheric Research<br class=""> NCAR Command Language Version 6.2.1<br class=""> The use of this software is governed by a License Agreement.<br class=""> See <a href="http://www.ncl.ucar.edu/" target="_blank" class="">http://www.ncl.ucar.edu/</a> for more details.<br class=""><br class=""><br class="">Variable: fnames<br class="">Type: string<br class="">Total Size: 4 bytes<br class=""> 1 values<br class="">Number of Dimensions: 1<br class="">Dimensions and sizes: [1]<br class="">Coordinates: <br class="">(0) ./<a href="http://maiactaot.h00v02.20010040635-20011550640.nc/" target="_blank" class="">maiactaot.h00v02.20010040635<wbr class="">-20011550640.nc</a><br class=""><br class="">Variable: data<br class="">Type: float<br class="">Total Size: 40320000 bytes<br class=""> 10080000 values<br class="">Number of Dimensions: 3<br class="">Dimensions and sizes: [time | 7] x [YDim_grid1km | 1200] x [XDim_grid1km | 1200]<br class="">Coordinates: <br class=""> time: [8862.583333333314..12486.6666<wbr class="">6666669]<br class="">Number Of Attributes: 8<br class=""> coordinates : GridLat_grid1km, GridLon_grid1km<br class=""> hdfeos_name : Optical_Depth_055<br class=""> projection : Albers Conical Equal_Area<br class=""> unit : None<br class=""> long_name : AOT at 0.55 micron<br class=""> _FillValue_original : -28672<br class=""> _FillValue : -28672<br class=""> valid_range : ( -0.1, 5 )<br class="">(0) AOT at 0.55 micron: min=0 max=3.924<br class="">(0) -----<br class="">(0) nFill=6285271<br class="">(0) -----<br class="">(0) latitude: min=21.86737357453027 max=34.99855492029426<br class="">(0) longitude: min=64.23634233372005 max=79.4747290253718<br class="">(0) -----<br class=""><span style="color:rgb(255,0,0)" class="">fatal:["Execute.c":7863]:Numbe<wbr class="">r of subscripts on right-hand-side do not match<br class=""> number of dimensions of variable: (2), Subscripts used: (3)<br class=""><br class="">fatal:["Execute.c":8578]:Execu<wbr class="">te: Error occurred at or near line 34 in file extract1.ncl<br class=""><br class="">fatal:Variable (var_subset) is undefined<br class="">fatal:["Execute.c":8578]:Execu<wbr class="">te: Error occurred at or near line 35 in file extract1.ncl</span><br class=""><br class=""><br class=""><br class=""><br class="">Variable: nm<br class="">Type: integer<br class="">Total Size: 16 bytes<br class=""> 4 values<br class="">Number of Dimensions: 2<br class="">Dimensions and sizes: [2] x [2]<br class="">Coordinates: <br class="">Number Of Attributes: 1<br class=""> long_name : indices closest to specified LAT/LON coordinate pairs<br class="">(0,0) 1199<br class="">(0,1) 792<br class="">(1,0) 1199<br class="">(1,1) 1041<br class="">(0) -----<span class=""><br class="">(0) 23.76603307545667 75.53995171540016<br class="">(0) 0.179<br class="">(1) 0.142<br class="">(2) -28672<br class="">(3) 0.169<br class="">(4) -28672<br class="">(5) -28672<br class="">(6) -28672<br class="">(0) -----<br class=""></span>(0) 24.26559325846936 77.93996773594735<br class="">(0) -28672<br class="">(1) 0.393<br class="">(2) -28672<br class="">(3) 0.156<br class="">(4) 0.313<span class=""><br class="">(5) -28672<br class="">(6) -28672<br class="">(0) -----<br class=""><br class=""></span><div class=""><span class="gmail-m_-5786444228229381634m_3806601695242320961HOEnZb"><font color="#888888" class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""> <br class=""></font></span><div class="gmail_extra"><span class="gmail-m_-5786444228229381634m_3806601695242320961HOEnZb"><font color="#888888" class=""><br clear="all" class=""><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Kunal Bali<br class=""></div><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; border-collapse: collapse; font-family: Tahoma, Verdana; font-size: 12px;" class=""><font color="#1F497D" class=""><br class=""></font></div></div></div></div></div></div></div></font></span><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961h5">
<br class=""><div class="gmail_quote">On Sat, Oct 14, 2017 at 12:24 AM, Mary Haley <span dir="ltr" class=""><<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div style="font-size:small" class="">Kunal,</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">Please include the code where you are actually taking the average of your data using the information returned from getind_latlon2d.</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">It's important to note that getind_latlon2d simply returns the individual index values that are closest to each of the lat/lon pairs that you gave it. It doesn't work in such a way that you give it a lat/lon box and it returns all the values in that box. </div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">That's what I was trying to illustrate with the wrf_gsn_10.ncl I created. I gave the function two corners of the box, and then using the two pairs of index values I got back, I was able to get all the values inside the box area of interest:</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class=""><div class=""><font face="monospace, monospace" class=""> lats = (/ min_lat, max_lat /)</font></div><div class=""><font face="monospace, monospace" class=""> lons = (/ min_lon, max_lon /)<br class=""></font><div class=""><font face="monospace, monospace" class=""> nm = getind_latlon2d (lat2d, lon2d, lats, lons)</font></div><div class=""><font face="monospace, monospace" class=""> ilt1 = nm(0,0) ; start lat index</font></div><div class=""><font face="monospace, monospace" class=""> ilt2 = nm(1,0) ; start lon index</font></div><div class=""><font face="monospace, monospace" class=""> iln1 = nm(0,1) ; end lat index</font></div><div class=""><font face="monospace, monospace" class=""> iln2 = nm(1,1) ; end lon index<br class=""> var_subset = var(ilt1:ilt2,iln1:iln2)</font></div><div class=""><font face="monospace, monospace" class=""> var_subset_avg = avg(var_subset)</font></div><span class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-HOEnZb"><font color="#888888" class=""><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">--Mary</font></div><div class=""><br class=""></div></font></span></div></div></div><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-HOEnZb"><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 12, 2017 at 1:19 PM, Kunal Bali <span dir="ltr" class=""><<a href="mailto:kunal.bali9@gmail.com" target="_blank" class="">kunal.bali9@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Dear Haley Ma'am,<div class=""><br class=""></div><div class="">Thanks for providing the information and <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0bbd9b95-cb2b-4f0a-b8b2-4edcfc107596" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">example. </span></div><div class="gmail_extra"><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div class="">But if I follow the getind_latlon2d function as I did, <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-1c477331-4a11-4c84-ad39-3a8ba33ef414" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">then</span> it seems like I followed the same procedure as given in the example <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Docume<wbr class="">nt/Functions/Contributed/getin<wbr class="">d_latlon2d.shtml</a></div><div class=""><br class=""></div><div class="">But still I am not getting the mean of the grid box on every time step or am I reading incorrectly the result ?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">regards</div><span class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248HOEnZb"><font color="#888888" class=""><div class="">Kunal Bali<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; border-collapse: collapse; font-family: Tahoma, Verdana; font-size: 12px;" class=""><font color="#1F497D" class=""><br class=""></font></div></div></font></span></div></div></div></div><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248h5">
<br class=""><div class="gmail_quote">On Fri, Oct 13, 2017 at 12:11 AM, Mary Haley <span dir="ltr" class=""><<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div style="font-size:small" class="">Kunal,</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">I created an example for you, showing three ways you can subset a WRF grid (since I already had a similar example). It shows how to use the getind_latlon2d function.</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">You have to be careful with <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-1289eca5-8b9d-4751-8b41-203824a2d70e" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">subsetting</span> curvilinear data, because specifying a <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-f9850e60-a155-4ea7-8bbb-7b44d4bb976b" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lat</span>/<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-a9f8cbe1-6e90-406d-9d33-36e9eb5603ab" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lon</span> box to take an average over can mean two different things. You will be able to see the difference when you look at the graphic.</div><div style="font-size:small" class=""><br class=""></div><div style="font-size:small" class="">See example wrf_gsn_10<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-400a1526-0159-44ad-9b85-2943a7748b6b" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">.</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-58d9264d-b4fb-44f7-a8d1-5273e9437d65" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">ncl</span> at:</div><div style="font-size:small" class=""><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/Applications/wrfgsn.shtml#ex10" target="_blank" class="">http://www.ncl.ucar.edu/Applic<wbr class="">ations/wrfgsn.shtml#ex10</a><br class=""></div><div class=""><br class=""></div><div class="">--Mary</div><div class=""><br class=""></div><div style="font-size:small" class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-h5">On Wed, Oct 11, 2017 at 12:03 PM, Kunal Bali <span dir="ltr" class=""><<a href="mailto:kunal.bali9@gmail.com" target="_blank" class="">kunal.bali9@gmail.com</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-h5"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Dear NCL users,<br class=""></div><br class="">Single point coordinates values of 23.0 N and 77.0 E is extracted or print by using the script below<br class=""><br class="">------------------------------<wbr class="">------------------------------<wbr class="">----------<br class="">; Main code<br class="">;-----------------------------<wbr class="">------------------------------<wbr class="">-----------<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0eab2372-bf07-4566-8be4-194c036a7be5" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">dir</span> = "<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289eb66f378-df2f-4d2a-9b36-192d3bd52243" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289GINGER_SOFTWARE_mark gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">.</span>/"<br class=""> fnames = systemfunc("ls " + dir + "maiactaot*.nc")<br class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-01b044f6-38bf-485e-acdf-ba1d22d492a4" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">print</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-adb5574c-48f3-4308-b709-4f2feea381d7" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0f74ff8f-0ce4-420a-81e6-bff096448b14" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">fnames</span>)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-29a33cf6-7d8b-42d2-a7a2-cc759938745b" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">a</span> = <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-41dd69d4-630b-4b7a-99f2-beefd157e052" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">addfile</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-ad398bb2-cf92-44ae-ab19-1f5afe3a7dd7" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-87206339-7931-4ae3-b2a1-079285d695c3" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">fnames</span>,"r")<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-bcae822f-609a-47c2-8824-3665cfd41e71" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">data</span> = short2flt<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-ac3b2eee-102a-4ed1-b9df-b3257ab6a9a6" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>a->Optical_Depth_055<wbr class="">_grid1km)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-219c3815-4e7b-4e5f-a3e6-d6a4a9b6a08f" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">nFill</span> = <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-bfaa5817-9b42-44ca-88ab-eff43b22b436" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">num</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-3659f5e6-ebcc-4fac-8c31-0bc9c70c1960" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-cf814eb0-0ab8-457e-86c8-ea3605715cb8" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">ismissing</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289efa1c965-9013-41b9-9c42-5be1289f675a" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289GINGER_SOFTWARE_mark gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>data))<br class=""> lat2d = a->GridLat_grid1km<br class=""> lon2d = a->GridLon_grid1km<br class=""><br class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-04f30fc0-40ae-4d18-8ba4-5e77b3bf2f04" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">;</span>---grid points of interest<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-f3b93122-e518-4ae2-9fb9-0fd4b214dc3e" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">latv</span> = (/23.0/)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-115643a3-d152-4114-ba20-f1a60b04afd3" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lonv</span> = (/77.0 /)<br class=""> <br class=""> nm = getind_latlon2d (lat2d,lon2d, latv, lonv)<br class=""> <br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-099d53de-f551-4764-9543-8221a12abf0c" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">do</span> k=0<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-a69fa0cf-7759-4145-bdcf-d978798a71e9" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-3ba935a2-1b90-46bd-b638-0a071abbfc6b" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">dimsizes</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-76de012b-7e94-4223-96c8-d5547fdb1cc1" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-9a02ff64-99e8-4db4-aa9b-7a77268ca367" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">latv</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-a4c57e6b-18dc-4a07-a369-56bf54f86b40" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">)</span>-1<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0f8c0fe5-1980-431c-820a-15f372f351c0" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">n</span> = <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-7bb9a579-6d60-4292-8ff9-9f4e310f9d9c" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">nm</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-4d516442-f36a-4c47-a61c-94b85425d47e" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>k<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-1e0c19a9-d4ca-4a78-8688-9aa3a0e68224" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>0)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-446a2187-9e79-4bde-850c-b105ae793c20" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">m</span> = <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289ea6e60ca-f646-4f45-a9b9-9f9264aa5877" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289GINGER_SOFTWARE_mark gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">nm</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-074d96f4-e799-43f9-b539-3c1a4fdfac89" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>k<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-8363988c-9f57-4aaa-bf35-7d0be783383e" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>1)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-35df3b6d-3bb3-446b-a73f-f7189cccf843" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">print</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-9a0da512-5789-45e2-93b3-ed87c6139deb" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>lat2d<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-5dfb6b38-c317-46b6-a8d2-78e14ee6a2c1" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>n<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-1137e035-7e87-4678-888a-8d0a89811411" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>m<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-5058d776-df51-4303-bfc8-b4191bad89eb" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">)</span>+" "+lon2d<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-d2d5e97e-676f-4384-abe0-898083cc7a94" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>n<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-276f3f05-2f4d-44b3-9e93-68e031c9fd57" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>m))<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-4519e924-0bd5-4ac0-977e-76c89a450d87" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark"> ;</span> grid point location<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-f7f19858-5fb9-4ca5-8e98-4431cf8a937a" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">print</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-dfb984a4-43ea-4e52-bcaf-e1123af92a28" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>" "+data<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-61e5e32a-6ac6-482b-a3fe-3aaeb0328a9e" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>:<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-acebda5f-cde4-4701-84c7-9c54bdc02f2f" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>n<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-332c9976-ed1b-45b3-a10c-447af1bff740" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">,</span>m))<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-7fedb156-b839-4bc1-b32e-1ca36913b12d" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark"> <wbr class=""> ;</span> nearest grid point at all time steps<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0ceadbb8-787e-4a29-a45d-ad7c4143403f" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">print</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-88590e2e-6ab2-4f48-a268-30abf27307c0" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">(</span>"-----")<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0cca89c0-44cc-4b16-85cf-8350baa58bfe" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">end</span> do<br class=""><br class=""></div></div> <br class="">NOW, I want to extract the square grid box of 100 km around the coordinates (23N,77E) such as <br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-56a37e98-4e37-4030-99df-0773ca663e8d" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">latv</span> = (/22, 24.0, 24.0, 22.0, 22.0/)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-40988c35-c7dd-41f2-8a8e-342f5982734a" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lonv</span> = (/76, 76.0, 78.0, 78.0, 76.0 /)<br class=""><br class=""><br class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0ff724fa-e29b-4eab-bbe1-b2de3975a31f" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">after</span> that I want to do the area mean of the grid box. So that I can get one single point value of that grid box.<br class=""></div>So when I <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-a1b9144a-5584-426f-b36b-f421fd1a6205" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">replacing</span> <br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-a8e90c83-2c3b-4487-9623-659592d903b2" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">latv</span> = (/23.0/)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-81e03fdc-a361-4f48-98ce-b7b19919e539" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lonv</span> = (/77.0/)<div class=""><div class=""><div class=""><div class=""><br class=""></div><div class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-523ff320-986b-48b4-9de2-d2b31c2fc288" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">with</span><br class=""><br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-b72de5f5-11c2-4b2a-9b07-c6b5f0a43729" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">latv</span> = (/22, 24.0, 24.0, 22.0, 22.0/)<br class=""> <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-23cf30b5-cd6b-4845-a2e5-656528aeaf35" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">lonv</span> = (/76, 76.0, 78.0, 78.0, 76.0 /)<br class=""><br class=""></div><div class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-533657e8-e50c-43eb-94bd-79f4eeacfce0" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">then</span> It's not giving <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-4560b2ea-4a62-4752-a123-7fad0b6e299f" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">mean</span> of the square grid box. <br class=""><br class=""></div><div class="">It shows the something like that (given below), which is incorrect. So please let me know how can I get the square grid box mean and then extract as <span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-caeb93ef-ff68-4e03-b87c-edd6fe4dd3d6" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">asciiwrite</span> or print?<br class=""><br class="">(0) 23.76603307545667 75.53995171540016<br class="">(0) 0.179<br class="">(1) 0.142<br class="">(2) -28672<br class="">(3) 0.169<br class="">(4) -28672<br class="">(5) -28672<br class="">(6) -28672<br class="">(0) -----<br class="">(0) 24.00322458681621 75.99551564353467<br class="">(0) 0.171<br class="">(1) 0.16<br class="">(2) -28672<br class="">(3) 0.17<br class="">(4) -28672<br class="">(5) -28672<br class="">(6) -28672<br class=""><br class=""></div><div class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-606478b4-8f99-4ef2-b02b-40b38fce9195" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">etc</span>.<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-4e9d351b-658a-4db2-8526-0d74705d8994" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">.</span><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-1eb96f87-eea9-4539-b3f0-b5bd67743d13" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">etc</span>..<br class=""></div><div class=""><br class=""><br class=""><br class=""></div><div class=""><span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-0241a938-1e80-41a1-a7fc-22ceaffd8f72" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">regards</span><span class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-m_2067925330722622683HOEnZb"><font color="#888888" class=""><br clear="all" class=""></font></span></div><span class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-m_2067925330722622683HOEnZb"><font color="#888888" class=""><div class=""><div class=""><div class=""><div class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-m_2067925330722622683m_-3126016792024081524gmail-m_-4699656085058546873gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Kunal Bali<br class=""></div><br class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; border-collapse: collapse; font-family: Tahoma, Verdana; font-size: 12px;" class=""><font color="#1F497D" class=""><br class=""></font></div></div></div></div></div></div></div>
</div></div></font></span></div></div></div></div>
<br class=""></div></div>______________________________<wbr class="">_________________<br class="">
<span id="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-c5e5f52d-823e-4d15-8982-b06388b22bd1" class="gmail-m_-5786444228229381634m_3806601695242320961m_7618211217714691404gmail-m_-7893384156443960248m_1683168822085668289gmail-GINGER_SOFTWARE_mark">ncl</span>-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</blockquote></div><br class=""></div></div></div></div>
<br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div></div></div></div></div>
<br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div></div></div></div>
</blockquote></div><br class=""></div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>
</div>
<br class=""></div></body></html>