<div dir="ltr"><div>Setareh, please see the examples page for Weighted Averages.  The first two examples are both area averages.  Example ave_2.ncl demonstrates coordinate subsetting on a grid with 1-D coordinates.  Use that syntax on both the X and Y dimensions to define the bounding box.  I suggest compute your own weights as the cosines of the latitudes.  There are cosine weight functions available in the lat/lon function category, or just compute your own with cos().</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 18, 2023 at 6:21 AM Setareh Rahimi <<a href="mailto:setareh.rahimi@gmail.com">setareh.rahimi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dave,<div>Thanks for your email. Well, the area that I consider to have an area average is a bounding box. So how can I do this, please? any examples?</div><div>Best wishes,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 14, 2023 at 10:16 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Yes it is possible.  If the grid has 1-D coordinates, then see the family of <b>wgt_areaave</b> functions.  If 2-D, then more work is needed.  Also, what kind of region definition do you need?  Bounding box, polygon, shape file, list of grid points, or something else?</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 14, 2023 at 9:39 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><span style="color:rgb(49,49,49);font-family:-apple-system,"Helvetica Neue";font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none;float:none;display:inline">Hi all,</span><div dir="auto" style="color:rgb(49,49,49);font-family:-apple-system,"Helvetica Neue";font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:1px;text-decoration:none"><br><div dir="auto" style="font-size:1rem">I have a question about area averaging in NCL. I have my WRF-Chem output file and would like to calculate average of aerosol optical depth (AOD)</div><div dir="auto" style="font-size:1rem">For an area at let's say 06:00 UTC. So I wonder if this would be possible through NCL?</div><div dir="auto" style="font-size:1rem">Thanks for your advise in advance.</div><div dir="auto"><br></div><div dir="auto" style="font-size:1rem">Best wishes, </div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">S.Rahimi<br><br></div>
</blockquote></div></div>