<div dir="ltr"><div>Whenever you send a question about coordinates, you should also include information about the coordinates in the file.</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml" target="_blank"><b>ncl_filedump </b></a>provides a file overview that is analogous to '<b>ncdump -h'</b><br></div><div><br></div><div>%> <b>ncl_filedump</b> foo.grb | less</div><div><br></div><div>or</div><div> %> <b>ncl_filedump</b> foo.grb > foo.dump</div><div><br></div><div>====</div><div>or <br></div><div><br></div><div> g = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank"><b>addfile</b></a>("foo.grb","r")</div><div> x = g->VAR</div><div> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(x)</div><div><br></div><div>======</div><div><br></div><div>**If** the coordinates associated with a variable are <b>'<a href="https://www.ncl.ucar.edu/Document/Language/cv.shtml">coordinate variable</a></b><a href="https://www.ncl.ucar.edu/Document/Language/cv.shtml"><b>s</b></a>' (CVs)</div><div><br></div><div> latS = ; southern lat [ex: -13.5]<br></div><div> latN = ; northern lat [ 41.3]<br></div><div> lonL = ; westernmost longitude [ 72.5 ]<br></div><div> lonR = ; eastern mostlongitude [ 305.0]<br></div><div><br></div><div> g = addfile("foo.grb","r)</div><div> x = g->VAR({latS:latN},{lonL:lonR})</div><div> printVarSummary(x)</div><div><br></div><div>If you are "new to NCL", please read the <a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/"><b>User Guide</b></a><br></div><div><br></div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 8:32 AM Grima 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:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi,<br>
<br>
Thanks for your post.<br>
<br>
Do you also know something about my second question; i.e. whether one <br>
can use a tool to cut the GRIB2 file to a specific country in advance?<br>
<br>
Thanks and best regards.<br>
<br>
<br>
<br>
Am 08.12.2020 08:19 schrieb Ehsan Taghizadeh:<br>
> Hi,<br>
> I think you should use shapefile mask in NCL. Following link is<br>
> related to the subject.<br>
> <a href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/shapefiles.shtml</a> [1]<br>
> <br>
> Sincerely,<br>
> Ehsan<br>
> <br>
> On Tuesday, December 8, 2020, 10:22:59 AM GMT+3:30, cemilyigit--- via<br>
> ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br>
> <br>
> Hello together,<br>
> <br>
> I'm relatively new to NCL and have a general question about selecting<br>
> <br>
> coordinates.<br>
> <br>
> Currently I read out the temperature for a large region from GFS data<br>
> or<br>
> <br>
> rahter from GRIB files.<br>
> <br>
> This is easy and works perfectly. In the next step I wanted to read<br>
> out<br>
> <br>
> the temperature only for a certain country and display it as an<br>
> xy-plot.<br>
> <br>
> And this is exactly where I got a problem. How can I specify the<br>
> <br>
> coordinates in NCL in a way that my coordinate specification only<br>
> <br>
> considers a certain country.<br>
> <br>
> It would be very nice if I could see this in a code example.<br>
> <br>
> Is it possible to cut the GRIB file to the corresponding coordinates<br>
> <br>
> before?<br>
> <br>
> Thanks a lot.<br>
> <br>
> _______________________________________________<br>
> <br>
> ncl-talk mailing list<br>
> <br>
> <a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
> <br>
> List instructions, subscriber options, unsubscribe:<br>
> <br>
> <a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> [2]<br>
> <br>
> <br>
> Links:<br>
> ------<br>
> [1] <a href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/shapefiles.shtml</a><br>
> [2] <a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>