<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Calibri" size="4" style="font-size:16pt;" color="#000000">Hi Mary,</font><div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri"><span style="font-size: 21px;">I tried with the ESM and the following error appears:</span></font></div><div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri" color="#000000"><div><br></div><div><span style="font-size: 21px;">Variable: sit</span></div><div><span style="font-size: 21px;">Type: double</span></div><div><span style="font-size: 21px;">Total Size: 78099840 bytes</span></div><div><span style="font-size: 21px;"> 9762480 values</span></div><div><span style="font-size: 21px;">Number of Dimensions: 3</span></div><div><span style="font-size: 21px;">Dimensions and sizes:<span class="Apple-tab-span" style="white-space:pre">        </span>[TIME | 360] x [J | 149] x [I | 182]</span></div><div><span style="font-size: 21px;">Coordinates: </span></div><div><span style="font-size: 21px;"> TIME: [76.5..11002.5]</span></div><div><span style="font-size: 21px;"> J: [1..149]</span></div><div><span style="font-size: 21px;"> I: [1..182]</span></div><div><span style="font-size: 21px;">Number Of Attributes: 4</span></div><div><span style="font-size: 21px;"> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-9.999999999999999e+33</span></div><div><span style="font-size: 21px;"> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-9.999999999999999e+33</span></div><div><span style="font-size: 21px;"> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>TOS[L=3:122]</span></div><div><span style="font-size: 21px;"> history :<span class="Apple-tab-span" style="white-space:pre">        </span>From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012</span></div><div><span style="font-size: 21px;">warning:Non-monotonic coordinate array generated -- check validity of the aggregated (leftmost) dimension</span></div><div><span style="font-size: 21px;">warning:Non-monotonic coordinate array generated -- check validity of the aggregated (leftmost) dimension</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;">Variable: sit</span></div><div><span style="font-size: 21px;">Type: double</span></div><div><span style="font-size: 21px;">Total Size: 78099840 bytes</span></div><div><span style="font-size: 21px;"> 9762480 values</span></div><div><span style="font-size: 21px;">Number of Dimensions: 3</span></div><div><span style="font-size: 21px;">Dimensions and sizes:<span class="Apple-tab-span" style="white-space:pre">        </span>[time | 360] x [lat | 149] x [lon | 182]</span></div><div><span style="font-size: 21px;">Coordinates: </span></div><div><span style="font-size: 21px;"> time: [76.5..11002.5]</span></div><div><span style="font-size: 21px;"> lat: [1..149]</span></div><div><span style="font-size: 21px;"> lon: [1..182]</span></div><div><span style="font-size: 21px;">Number Of Attributes: 6</span></div><div><span style="font-size: 21px;"> lon2d :<span class="Apple-tab-span" style="white-space:pre">        </span><ARRAY of 546 elements></span></div><div><span style="font-size: 21px;"> lat2d :<span class="Apple-tab-span" style="white-space:pre">        </span><ARRAY of 447 elements></span></div><div><span style="font-size: 21px;"> missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>-9.999999999999999e+33</span></div><div><span style="font-size: 21px;"> _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>-9.999999999999999e+33</span></div><div><span style="font-size: 21px;"> long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>TOS[L=3:122]</span></div><div><span style="font-size: 21px;"> history :<span class="Apple-tab-span" style="white-space:pre">        </span>From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;">warning:Non-monotonic coordinate array generated -- check validity of the aggregated (leftmost) dimension</span></div><div><span style="font-size: 21px;">warning:Non-monotonic coordinate array generated -- check validity of the aggregated (leftmost) dimension</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>get_src_grid_info: source lat dims = (447)</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>get_src_grid_info: source lon dims = (546)</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>get_src_grid_info: SrcGridType and/or SrcGridLat/SrcGridLon were not set.</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span> Cannot determine the source grid type.</span></div><div style="font-size: 16pt;"><br></div></font><br><br><div><font face="Comic Sans MS"><span style="line-height:17px;">---</span></font></div><span class="ecxApple-style-span" style="line-height:17px;background-color:rgb(255, 255, 255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;"><font class="ecxApple-style-span">Vanúcia Schumacher</font></font></span><div><span class="ecxApple-style-span" style="line-height:17px;background-color:rgb(255, 255, 255);"><font face="Comic Sans MS">Mestranda em Meteorologia - UFV<font size="3" style="font-size:12pt;"><font class="ecxApple-style-span"><br style="line-height:17px;">Meteorologista -UFPel</font><br></font></font></span></div><div><span class="ecxApple-style-span" style="line-height:17px;background-color:rgb(255, 255, 255);"><font face="Comic Sans MS"><font size="3" style="font-size:12pt;"><font class="ecxApple-style-span">Departamento de Meteorologia Agrícola - DEA</font></font></font></span></div><div><span class="ecxApple-style-span" style="line-height:17px;background-color:rgb(255, 255, 255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;"><font class="ecxApple-style-span">Cel: (31) 9978 2522 </font></font></span></div><div><span class="ecxApple-style-span" style="line-height:17px;background-color:rgb(255, 255, 255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;"><font class="ecxApple-style-span">DEA: (31) 3899 1890</font></font></span></div><br><br><div><hr id="stopSpelling">Date: Fri, 22 Aug 2014 14:29:44 -0600<br>Subject: Re: [ncl-talk] problems with regriding<br>From: haley@ucar.edu<br>To: vanucia-schumacher@hotmail.com<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-size:small;">D, </div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">My guess is she's missing:</div>
<div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">tos@lat2d = f->lat</div><div class="ecxgmail_default" style="font-size:small;">tos@lon2d = f->lon</div><div class="ecxgmail_default" style="font-size:small;">
<br></div><div class="ecxgmail_default" style="font-size:small;">See:</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default"><a href="http://www.ncl.ucar.edu/Applications/Scripts/ESMF_regrid_7.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/ESMF_regrid_7.ncl</a><br>
</div><div class="ecxgmail_default"><br></div><div class="ecxgmail_default">--M</div><div class="ecxgmail_default"><br></div><div class="ecxgmail_default" style="font-size:small;"><br></div></div><div class="ecxgmail_extra">
<br><br><div class="ecxgmail_quote">On Fri, Aug 22, 2014 at 6:33 AM, Vanúcia Schumacher <span dir="ltr"><<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr"><font face="Calibri" size="4" style="font-size:16pt;" color="#000000">Hi Dennis,</font><div><font face="Calibri"><span style="font-size:21px;"><br></span></font><div><font face="Calibri"><span style="font-size:21px;">I still do not understand what can I do to solve this problem, because when I change the resolution, I choose the option of lat and lon (0,358),(-87.86, 87.86</span></font><span style="font-size:21px;font-family:Calibri;">), ncview and ferret programs I can plot the data without problems (global), but when I try plot the data without changing the resolution they are confused on the map (attached).</span></div>
<div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000">print(var&lon)</font></div><div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000">print(var&lat)</font></div>
<div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri" color="#000000"><div><span style="font-size:21px;">Variable: lat (coordinate)</span></div><div><span style="font-size:21px;">Type: integer</span></div>
<div><span style="font-size:21px;">Total Size: 596 bytes</span></div><div><span style="font-size:21px;"> 149 values</span></div><div><span style="font-size:21px;">Number of Dimensions: 1</span></div><div><span style="font-size:21px;">Dimensions and sizes:<span style="white-space:pre-wrap;">        </span>[lat | 149]</span></div>
<div><span style="font-size:21px;">Coordinates: </span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div><div><span style="font-size:21px;"> units :<span style="white-space:pre-wrap;">        </span>1</span></div>
<div><span style="font-size:21px;"> long_name :<span style="white-space:pre-wrap;">        </span>cell index along second dimension</span></div><div><span style="font-size:21px;"> point_spacing :<span style="white-space:pre-wrap;">        </span>even</span></div>
<div><span style="font-size:21px;"> axis :<span style="white-space:pre-wrap;">        </span>Y</span></div><div style="font-size:16pt;"><br></div></font></div><div><font face="Calibri" size="4" style="font-size:16pt;background-color:rgb(255,255,255);" color="#000000"><b>ncdump -h</b> </font></div>
<div><font face="Calibri" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri" color="#000000"><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>time = UNLIMITED ; // (122 currently)</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>j = 149 ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>i = 182 ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>bnds = 2 ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>vertices = 4 ;</span></div><div><span style="font-size:21px;">variables:</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>double time(time) ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:bounds = "time_bnds" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:units = "days since 1980-11-01" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:calendar = "standard" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:axis = "T" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:long_name = "time" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>time:standard_name = "time" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>double time_bnds(time, bnds) ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>int j(j) ;</span></div><div>
<span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>j:units = "1" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>j:long_name = "cell index along second dimension" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>int i(i) ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>i:units = "1" ;</span></div><div>
<span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>i:long_name = "cell index along first dimension" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>float lat(j, i) ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lat:standard_name = "latitude" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lat:long_name = "latitude coordinate" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lat:units = "degrees_north" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lat:bounds = "lat_vertices" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>float lon(j, i) ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lon:standard_name = "longitude" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lon:long_name = "longitude coordinate" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lon:units = "degrees_east" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lon:bounds = "lon_vertices" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>float lat_vertices(j, i, vertices) ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lat_vertices:units = "degrees_north" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>float lon_vertices(j, i, vertices) ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>lon_vertices:units = "degrees_east" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">        </span>float tos(time, j, i) ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:standard_name = "sea_surface_temperature" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:long_name = "Sea Surface Temperature" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:comment = "\"this may differ from \"\"surface temperature\"\" in regions of sea ice.\"" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:units = "K" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:original_name = "sosstsst" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:original_units = "degC" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:history = "2012-07-24T13:46:07Z altered by CMOR: Converted units from \'degC\' to \'K\'." ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:cell_methods = "time: mean (interval: 1 month)" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:cell_measures = "area: areacello" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:missing_value = 1.e+20f ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:_FillValue = 1.e+20f ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:associated_files = "baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile: gridspec_ocean_fx_CMCC-CM_decadal1980_r0i0p0.nc areacello: areacello_fx_CMCC-CM_decadal1980_r0i0p0.nc" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>tos:coordinates = "lat lon" ;</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">// global attributes:</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:institution = "CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici, Bologna, Italy" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:institute_id = "CMCC" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:experiment_id = "decadal1980" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:source = "CMCC-CM" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:model_id = "CMCC-CM" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:forcing = "Nat,Ant,GHG,SA,TO,Sl" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:parent_experiment_id = "N/A" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:parent_experiment_rip = "N/A" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:branch_time = 0. ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:contact = "Silvio Gualdi (<a href="mailto:gualdi@bo.ingv.it" target="_blank">gualdi@bo.ingv.it</a>)" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:history = "Model output postprocessed with CDO (<a href="https://code.zmaw.de/projects" target="_blank">https://code.zmaw.de/projects</a>) 2012-07-24T13:46:07Z CMOR rewrote data to comply with CF standards and CMIP5 requirements." ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:comment = "Decadal hindcasts/predictions, some extended to 30 years" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:references = "model described in the documentation at <a href="http://www.cmcc.it/data-models/models" target="_blank">http://www.cmcc.it/data-models/models</a>" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:initialization_method = 1 ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:physics_version = 1 ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:tracking_id = "105250cc-615d-478c-b242-b72f4735fb74" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:product = "output" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:experiment = "10- or 30-year run initialized in year 1980" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:frequency = "mon" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:creation_date = "2012-07-24T13:46:07Z" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:Conventions = "CF-1.4" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:project_id = "CMIP5" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:table_id = "Table Omon (27 April 2011) 340eddd4fd838d90fa9ffe1345ecbd73" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:title = "CMCC-CM model output prepared for CMIP5 10- or 30-year run initialized in year 1980" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:parent_experiment = "N/A" ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:modeling_realm = "ocean" ;</span></div><div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:realization = 1 ;</span></div>
<div><span style="font-size:21px;"><span style="white-space:pre-wrap;">                </span>:cmor_version = "2.7.1" ;</span></div><div style="font-size:16pt;"><br></div></font><div><br><br><div><font face="Comic Sans MS"><span style="line-height:17px;">---</span></font></div>
<span style="line-height:17px;background-color:rgb(255,255,255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;">Vanúcia Schumacher</font></span><div><span style="line-height:17px;background-color:rgb(255,255,255);"><font face="Comic Sans MS">Mestranda em Meteorologia - UFV<font size="3" style="font-size:12pt;"><br style="line-height:17px;">
Meteorologista -UFPel<br></font></font></span></div><div><span style="line-height:17px;background-color:rgb(255,255,255);"><font face="Comic Sans MS"><font size="3" style="font-size:12pt;">Departamento de Meteorologia Agrícola - DEA</font></font></span></div>
<div><span style="line-height:17px;background-color:rgb(255,255,255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;">Cel: (31) 9978 2522 </font></span></div><div><span style="line-height:17px;background-color:rgb(255,255,255);"><font size="3" face="Comic Sans MS" style="font-size:12pt;">DEA: (31) 3899 1890</font></span></div>
<br><br></div><div><div class="ecxhm ecxHOEnZb"><hr>Date: Thu, 21 Aug 2014 15:12:20 -0600<br>Subject: Re: [ncl-talk] problems with regriding<br>From: <a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a><br>To: <a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a><br>
CC: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a></div><div><div class="h5"><br><br><div dir="ltr"><div>[1]<font color="#000000" face="Calibri"><span><br></span></font></div><div><font color="#000000" face="Calibri"><span>I would say it is highly unlikely that "</span></font><font color="#000000" face="Calibri"><span><font color="#000000" face="Calibri"><span>NCL is not correctly plotting the data</span></font>"!<br>
</span></font></div><div><font color="#000000" face="Calibri"><span>NCL is plotting what you sent it. <br><br>[2]<br></span></font></div><font face="Calibri">Did you examine the output from<br><br></font><div>
<div><font color="#000000" face="Calibri"><span>printVarSummary(var)<br></span></font></div><div><font color="#000000" face="Calibri"><span><br></span></font></div><div>[snip]<br><br><font color="#000000" face="Calibri"><div>
<span style="font-size:21px;">Dimensions and sizes:<span style="white-space:pre-wrap;">        </span>[TIME | 360] x [lat | 149] x [lon | 182]</span></div><div><span>Coordinates: </span></div><div><span> TIME: [76.5..3636.5]</span></div>
<div><span> lat: [1..149] <================<br></span></div><div><span> lon: [1..182] <====================<br></span></div></font><br>
</div><div>The coordinates associated with 'var' are numbers spanning 1-149 and 1-182<br></div><div>These are *not* latitudes or longitudes. So, when you use<br><br><font color="#000000" face="Calibri"><span>new_var = linint2_Wrap(var&lon,var&lat,var,True,new_lon,new_lat,0)</span></font><br>
</div><div>You could do you own 'debugging by printing the input<br><br></div><div>print(<font color="#000000" face="Calibri"><span>var&lon)<br></span></font></div><div><font color="#000000" face="Calibri"><span>print(var&lat)<br>
<br></span></font></div><div><font color="#000000" face="Calibri"><span>Punch line ... you are inputting number 1 to 149 and 1 to 182<br></span></font></div><div><font color="#000000" face="Calibri"><span>NCL is interpolating to those values.<br>
<br></span></font></div><div><font color="#000000" face="Calibri"><span>Use <br><br></span></font></div><div><font color="#000000" face="Calibri"><span>ncl_filedump<br><br></span></font></div><div><font color="#000000" face="Calibri"><span>or<br>
<br></span></font></div><div><font color="#000000" face="Calibri"><span>ncdump -h<br><br></span></font></div><div><font color="#000000" face="Calibri"><span>on your source file. That should have some lat.lon info<br></span></font></div>
<div><font color="#000000" face="Calibri"><span><br><br></span></font></div><div><font color="#000000" face="Calibri"><span><br></span></font></div></div></div><div><br><br><div>On Thu, Aug 21, 2014 at 2:12 PM, Vanúcia Schumacher <span dir="ltr"><<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr"><font style="font-size:16pt;" color="#000000" face="Calibri" size="4">Hi users,</font><div><font style="font-size:16pt;" color="#000000" face="Calibri" size="4"><br></font></div><div><font color="#000000" face="Calibri"><span style="font-size:21px;">I do regridding data for resolution of 2 degrees and the NCL is not correctly plotting the data, it is cutting the data to the new resolution as opposed to a new lat and lon.</span></font></div>
<div><font color="#000000" face="Calibri"><span style="font-size:21px;"><br></span></font></div><div><font color="#000000" face="Calibri"><div><span style="font-size:21px;">>begin</span></div><div><span style="font-size:21px;"> </span></div>
<div><span style="font-size:21px;">>var = f[:]->SST</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">>var!1="lat"</span></div><div><span style="font-size:21px;">>var!2="lon"</span></div>
<div><span style="font-size:21px;">>j=var!1</span></div><div><span style="font-size:21px;">>i=var!2 </span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">newfile = "<a href="http://tos_90x180.nc" target="_blank">tos_90x180.nc</a>"</span></div>
<div><br></div><div><span style="font-size:21px;">file_create = addfile(newfile, "c") </span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">new_lon = fspan(0,358, 180) </span></div>
<div><span style="font-size:21px;">new_lon@units = "degrees_east"</span></div><div><span style="font-size:21px;">new_lon!0 = "lon" </span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">new_lat = fspan(-87.86, 87.86, 90)</span></div>
<div><span style="font-size:21px;">new_lat@units = "degrees_north"</span></div><div><span style="font-size:21px;">new_lat!0 = "lat" </span></div><div><span style="font-size:21px;"><br></span></div>
<div><span style="font-size:21px;">new_var = linint2_Wrap(var&lon,var&lat,var,True,new_lon,new_lat,0)</span></div><div><br></div><div><span style="font-size:21px;">file_create->tos = new_var</span></div><div style="font-size:21px;">
<br></div></font></div><div><font color="#000000" face="Calibri"><span style="font-size:21px;"><br></span></font></div><div><font color="#000000" face="Calibri"><div><span style="font-size:21px;">Variable: var</span></div>
<div>
<span style="font-size:21px;">Type: double</span></div><div><span style="font-size:21px;">Total Size: 78099840 bytes</span></div><div><span style="font-size:21px;"> 9762480 values</span></div><div><span style="font-size:21px;">Number of Dimensions: 3</span></div>
<div><span style="font-size:21px;">Dimensions and sizes:<span style="white-space:pre-wrap;">        </span>[TIME | 360] x [lat | 149] x [lon | 182]</span></div><div><span style="font-size:21px;">Coordinates: </span></div><div><span style="font-size:21px;"> TIME: [76.5..3636.5]</span></div>
<div><span style="font-size:21px;"> lat: [1..149]</span></div><div><span style="font-size:21px;"> lon: [1..182]</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div><div><span style="font-size:21px;"> missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>
<div><span style="font-size:21px;"> _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;"> long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div>
<div><span style="font-size:21px;"> history :<span style="white-space:pre-wrap;">        </span>From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">Variable: new_var</span></div>
<div><span style="font-size:21px;">Type: double</span></div><div><span style="font-size:21px;">Total Size: 46656000 bytes</span></div><div><span style="font-size:21px;"> 5832000 values</span></div><div><span style="font-size:21px;">Number of Dimensions: 3</span></div>
<div><span style="font-size:21px;">Dimensions and sizes:<span style="white-space:pre-wrap;">        </span>[TIME | 360] x [lat | 90] x [lon | 180]</span></div><div><span style="font-size:21px;">Coordinates: </span></div><div><span style="font-size:21px;"> TIME: [76.5..3636.5]</span></div>
<div><span style="font-size:21px;"> lat: [-87.86..87.86]</span></div><div><span style="font-size:21px;"> lon: [ 0..358]</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div>
<div><span style="font-size:21px;"> missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;"> _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>
<div><span style="font-size:21px;"> long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div><div><span style="font-size:21px;"> history :<span style="white-space:pre-wrap;">        </span>From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012</span></div>
<div style="font-size:21px;"><br></div></font><br><br><div><font face="Comic Sans MS"><span style="line-height:17px;">---</span></font></div><span style="line-height:17px;background-color:rgb(255,255,255);"><font style="font-size:12pt;" face="Comic Sans MS" size="3">Vanúcia Schumacher</font></span><div>
<span style="line-height:17px;background-color:rgb(255,255,255);"><font face="Comic Sans MS">Mestranda em Meteorologia - UFV<font style="font-size:12pt;" size="3"><br style="line-height:17px;">Meteorologista -UFPel<br>
</font></font></span></div><div><span style="line-height:17px;background-color:rgb(255,255,255);"><font face="Comic Sans MS"><font style="font-size:12pt;" size="3">Departamento de Meteorologia Agrícola - DEA</font></font></span></div>
<div><span style="line-height:17px;background-color:rgb(255,255,255);"><font style="font-size:12pt;" face="Comic Sans MS" size="3">Cel: (31) 9978 2522 </font></span></div><div><span style="line-height:17px;background-color:rgb(255,255,255);"><font style="font-size:12pt;" face="Comic Sans MS" size="3">DEA: (31) 3899 1890</font></span></div>
</div>                                            </div></div>
<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>
<br></blockquote></div><br></div></div></div></div></div></div>                                            </div></div>
<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>
<br></blockquote></div><br></div></div></div>                                            </div></body>
</html>