<div dir="ltr"><div><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br></div>Example 6<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 25, 2014 at 5:46 AM, 李嘉鹏 <span dir="ltr">&lt;<a href="mailto:lijpbasin@126.com" target="_blank">lijpbasin@126.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you looking for functions to interpolate data from regional model to lat-lon grid? `rcm2grid` can do this, IIRC.<br>
<br>
于 2014年10月25日 格林尼治标准时间+0800下午7时02分40秒, &quot;張顧.煒Zane&quot; &lt;<a href="mailto:489645692@qq.com">489645692@qq.com</a>&gt; 写到:<br>
<div><div class="h5">&gt;Hi,<br>
&gt;<br>
&gt;<br>
&gt;  I have downloaded CMIP5 ocean temp. data<br>
&gt;(tos_Omon_ACCESS1-0_historical_r1i1p1_185001-200512.nc‍)<br>
&gt; but find  that the horizontal grid is not regular grid used for GRADS<br>
&gt;(see below)<br>
&gt;<br>
&gt;<br>
&gt;  Therefor I think I need to regrid the ocean temp. data from these<br>
&gt;irregular grid points to the regular 1.0*1.0 grid.<br>
&gt;<br>
&gt;<br>
&gt;  I am asking if NCL can do the interpolation? If so, Could you point<br>
&gt;out to me the key sentences used in NCL scripts?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;  Thanks,<br>
&gt;   Zane‍<br>
&gt;<br>
&gt;<br>
&gt;--------------------<br>
&gt;netcdf ‍ tos_Omon_ACCESS1-0_historical_r1i1p1_185001-200512.nc{‍<br>
&gt;<br>
&gt;Dimensions: 5<br>
&gt;<br>
&gt;       time = 1872;<br>
&gt;<br>
&gt;       j = 300;<br>
&gt;<br>
&gt;       i = 360;<br>
&gt;<br>
&gt;       bnds = 2;<br>
&gt;<br>
&gt;       vertices = 4;<br>
&gt;<br>
&gt;Global Attributes: 28<br>
&gt;<br>
&gt;       : institution = &quot;CSIRO (Commonwealth Scientific and Industrial<br>
&gt;Research Organisation, Australia), and BOM (Bureau of Meteorology,<br>
&gt;Australia)&quot;;<br>
&gt;<br>
&gt;       : institute_id = &quot;CSIRO-BOM&quot;;<br>
&gt;<br>
&gt;       : experiment_id = &quot;historical&quot;;<br>
&gt;<br>
&gt;       : source = &quot;ACCESS1-0 2011. Atmosphere: AGCM v1.0 (N96 grid-point,<br>
&gt;1.875 degrees EW x approx 1.25 degree NS, 38 levels); ocean: NOAA/GFDL<br>
&gt;MOM4p1 (nominal 1.0 degree EW x 1.0 degrees NS, tripolar north of 65N,<br>
&gt;equatorial refinement to 1/3 degree from 10S to 10 N, cosine dependent<br>
&gt;NS south of 25S, 50 levels); sea ice: CICE4.1 (nominal 1.0 degree EW x<br>
&gt;1.0 degrees NS, tripolar north of 65N, equatorial refinement to 1/3<br>
&gt;degree from 10S to 10 N, cosine dependent NS south of 25S); land:<br>
&gt;MOSES2 (1.875 degree EW x 1.25 degree NS, 4 levels&quot;;<br>
&gt;<br>
&gt;       : model_id = &quot;ACCESS1-0&quot;;<br>
&gt;<br>
&gt;       : forcing = &quot;GHG, Oz, SA, Sl, Vl, BC, OC, (GHG = CO2, N2O, CH4, CFC11,<br>
&gt;CFC12, CFC113, HCFC22, HFC125, HFC134a)&quot;;<br>
&gt;<br>
&gt;       : parent_experiment_id = &quot;piControl&quot;;<br>
&gt;<br>
&gt;       : parent_experiment_rip = &quot;r1i1p1&quot;;<br>
&gt;<br>
&gt;       : branch_time = 109207;<br>
&gt;<br>
&gt;       : contact = &quot;The ACCESS wiki:<br>
&gt;<a href="http://wiki.csiro.au/confluence/display/ACCESS/Home" target="_blank">http://wiki.csiro.au/confluence/display/ACCESS/Home</a>. Contact<br>
&gt;Tony.Hirst@csiro.au regarding the ACCESS coupled climate model. Contact<br>
&gt;Peter.Uhe@csiro.au regarding ACCESS coupled climate model CMIP5<br>
&gt;datasets.&quot;;<br>
&gt;<br>
&gt;       : history = &quot;CMIP5 compliant file produced from raw ACCESS model<br>
&gt;output using the ACCESS Post-Processor and CMOR2. 2012-01-15T21:24:32Z<br>
&gt;CMOR rewrote data to comply with CF standards and CMIP5 requirements.&quot;;<br>
&gt;<br>
&gt;       : references = &quot;See<br>
&gt;<a href="http://wiki.csiro.au/confluence/display/ACCESS/ACCESS+Publications" target="_blank">http://wiki.csiro.au/confluence/display/ACCESS/ACCESS+Publications</a>&quot;;<br>
&gt;<br>
&gt;       : initialization_method = 1;<br>
&gt;<br>
&gt;       : physics_version = 1;<br>
&gt;<br>
&gt;       : tracking_id = &quot;0ae7d1af-8d73-4b79-b2e3-6e6ae10ce782&quot;;<br>
&gt;<br>
&gt;       : version_number = &quot;v20120115&quot;;<br>
&gt;<br>
&gt;       : product = &quot;output&quot;;<br>
&gt;<br>
&gt;       : experiment = &quot;historical&quot;;<br>
&gt;<br>
&gt;       : frequency = &quot;mon&quot;;<br>
&gt;<br>
&gt;       : creation_date = &quot;2012-01-15T21:24:32Z&quot;;<br>
&gt;<br>
&gt;       : Conventions = &quot;CF-1.4&quot;;<br>
&gt;<br>
&gt;       : project_id = &quot;CMIP5&quot;;<br>
&gt;<br>
&gt;       : table_id = &quot;Table Omon (27 April 2011)<br>
&gt;694b38a3f68f18e58ba80230aa4746ea&quot;;<br>
&gt;<br>
&gt;       : title = &quot;ACCESS1-0 model output prepared for CMIP5 historical&quot;;<br>
&gt;<br>
&gt;       : parent_experiment = &quot;pre-industrial control&quot;;<br>
&gt;<br>
&gt;       : modeling_realm = &quot;ocean&quot;;<br>
&gt;<br>
&gt;       : realization = 1;<br>
&gt;<br>
&gt;       : cmor_version = &quot;2.8.0&quot;;<br>
&gt;<br>
&gt;Variations: 9<br>
&gt;<br>
&gt;       NC_DOUBLE time(time);<br>
&gt;<br>
&gt;               time: bounds = &quot;time_bnds&quot;;<br>
&gt;<br>
&gt;               time: units = &quot;days since 0001-01-01&quot;;<br>
&gt;<br>
&gt;               time: calendar = &quot;proleptic_gregorian&quot;;<br>
&gt;<br>
&gt;               time: axis = &quot;T&quot;;<br>
&gt;<br>
&gt;               time: long_name = &quot;time&quot;;<br>
&gt;<br>
&gt;               time: standard_name = &quot;time&quot;;<br>
&gt;<br>
&gt;       NC_DOUBLE time_bnds(time,bnds);<br>
&gt;<br>
&gt;       NC_INT j(j);<br>
&gt;<br>
&gt;               j: units = &quot;1&quot;;<br>
&gt;<br>
&gt;               j: long_name = &quot;cell index along second dimension&quot;;<br>
&gt;<br>
&gt;       NC_INT i(i);<br>
&gt;<br>
&gt;               i: units = &quot;1&quot;;<br>
&gt;<br>
&gt;               i: long_name = &quot;cell index along first dimension&quot;;<br>
&gt;<br>
&gt;       NC_FLOAT lat(j,i);<br>
&gt;<br>
&gt;               lat: standard_name = &quot;latitude&quot;;<br>
&gt;<br>
&gt;               lat: long_name = &quot;latitude coordinate&quot;;<br>
&gt;<br>
&gt;               lat: units = &quot;degrees_north&quot;;<br>
&gt;<br>
&gt;               lat: bounds = &quot;lat_vertices&quot;;<br>
&gt;<br>
&gt;       NC_FLOAT lon(j,i);<br>
&gt;<br>
&gt;               lon: standard_name = &quot;longitude&quot;;<br>
&gt;<br>
&gt;               lon: long_name = &quot;longitude coordinate&quot;;<br>
&gt;<br>
&gt;               lon: units = &quot;degrees_east&quot;;<br>
&gt;<br>
&gt;               lon: bounds = &quot;lon_vertices&quot;;<br>
&gt;<br>
&gt;       NC_FLOAT lat_vertices(j,i,vertices);<br>
&gt;<br>
&gt;               lat_vertices: units = &quot;degrees_north&quot;;<br>
&gt;<br>
&gt;       NC_FLOAT lon_vertices(j,i,vertices);<br>
&gt;<br>
&gt;               lon_vertices: units = &quot;degrees_east&quot;;<br>
&gt;<br>
&gt;       NC_FLOAT tos(time,j,i);<br>
&gt;<br>
&gt;               tos: standard_name = &quot;sea_surface_temperature&quot;;<br>
&gt;<br>
&gt;               tos: long_name = &quot;Sea Surface Temperature&quot;;<br>
&gt;<br>
&gt;               tos: comment = &quot;&quot;this may differ from &quot;&quot;surface temperature&quot;&quot; in<br>
&gt;regions of sea ice.&quot;&quot;;<br>
&gt;<br>
&gt;               tos: units = &quot;K&quot;;<br>
&gt;<br>
&gt;               tos: cell_methods = &quot;time: mean&quot;;<br>
&gt;<br>
&gt;               tos: cell_measures = &quot;area: areacello&quot;;<br>
&gt;<br>
&gt;               tos: history = &quot;2012-01-15T21:24:31Z altered by CMOR: replaced<br>
&gt;missing value flag (-1e+20) with standard missing value (1e+20).&quot;;<br>
&gt;<br>
&gt;               tos: missing_value = 1E+20;<br>
&gt;<br>
&gt;               tos: _FillValue = 1E+20;<br>
&gt;<br>
&gt;               tos: associated_files = &quot;baseURL:<br>
&gt;<a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile:<br>
&gt;gridspec_ocean_fx_ACCESS1-0_historical_r0i0p0.nc areacello:<br>
&gt;areacello_fx_ACCESS1-0_historical_r0i0p0.nc&quot;;<br>
&gt;<br>
&gt;               tos: coordinates = &quot;lat lon&quot;;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;Unlimited dimension: 0‍<br>
&gt;<br>
&gt;}<br>
&gt;<br>
</div></div>&gt;------------------------------------------------------------------------<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;ncl-talk mailing list<br>
&gt;List instructions, subscriber options, unsubscribe:<br>
&gt;<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>