<div dir="ltr"><p class="MsoNormal"><span lang="CA">Dear NCL users,</span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">I want to extract
a few grids with given lon and lat from global netcdf of CMIP5.</span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">I have extracted
one grid in a specific lat and lon using the attcahed script ("extract_grid.ncl") for site1, but I
did this part manually (I mean I had to look at all the values of lat and lon
in the global netcdf, found the ones that were the closest to the given lat and
lon and use the lat and lon indices that correspond to this grid to extract
it). I guess that there are most efficient ways to do this, right? What is the
best way to do it? What would be the recommended way to simoultaneously extract
moret han one grid (for instance site1, site2 and site3)?</span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">In addition, some
of the files that correspond to different CMIP5 models have different spatial
resolution, and this means that the lat and lon for the same location would
have different indices for lat and lon in different models. </span></p>
<p class="MsoNormal"><span lang="CA">Could you please
give some adivice about the best way to extract some grids (in specific lat and
lon) from global netcdf with different spatial resolution?</span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">Attached is the
code I used for site 1. Also attached are two different global netcdf (for just
1 time) from 2 models that use different spatial resolution. Is it possible to
modify the script so I can use it for netcdf with different spatial
resolutions? </span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">Thank you!</span></p>
<p class="MsoNormal"><span lang="CA"> </span></p>
<p class="MsoNormal"><span lang="CA">Jiaxin</span></p></div>