<div dir="ltr"><div class="gmail_default" style="font-size:small">​The problem is that you have those &quot;I&quot; and &quot;J&quot; coordinate arrays attached to your variable. By default, if ESMF_regrid sees coordinate arrays, it will try to use them in regridding.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Try deleting them before you do any regridding​:</div><div class="gmail_default" style="font-size:small"><br>
</div><div class="gmail_default" style="font-size:small">delete(sit&amp;I)</div><div class="gmail_default" style="font-size:small">delete(sit&amp;J)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
--Mary</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 2:50 PM, Vanúcia Schumacher <span dir="ltr">&lt;<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><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 class="">
<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><div><span style="font-size:21px">Dimensions and sizes:<span style="white-space:pre-wrap">        </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 class=""><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 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><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 class=""><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><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..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 style="white-space:pre-wrap">        </span>&lt;ARRAY of 546 elements&gt;</span></div><div><span style="font-size:21px">  lat2d :<span style="white-space:pre-wrap">        </span>&lt;ARRAY of 447 elements&gt;</span></div>
<div class=""><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><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 style="white-space:pre-wrap">        </span>get_src_grid_info: source lat dims = (447)</span></div><div><span style="font-size:21px">(0)<span style="white-space:pre-wrap">        </span>get_src_grid_info: source lon dims = (546)</span></div>
<div><span style="font-size:21px">(0)<span style="white-space:pre-wrap">        </span>get_src_grid_info: SrcGridType and/or SrcGridLat/SrcGridLon were not set.</span></div><div><span style="font-size:21px">(0)<span style="white-space:pre-wrap">        </span>          Cannot determine the source grid type.</span></div>
<div style="font-size:16pt"><br></div></font><div class=""><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"><font>Vanúcia Schumacher</font></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"><font><br style="line-height:17px">Meteorologista -UFPel</font><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"><font>Departamento de Meteorologia Agrícola - DEA</font></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"><font>Cel: (31) 9978 2522 </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"><font>DEA: (31) 3899 1890</font></font></span></div>
<br><br></div><div><hr>Date: Fri, 22 Aug 2014 14:29:44 -0600<div class=""><br>Subject: Re: [ncl-talk] problems with regriding<br></div>From: <a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a><br>To: <a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a><div>
<div class="h5"><br><br><div dir="ltr"><div style="font-size:small">D, </div><div style="font-size:small"><br></div><div style="font-size:small">My guess is she&#39;s missing:</div>
<div style="font-size:small"><br></div><div style="font-size:small">tos@lat2d = f-&gt;lat</div><div style="font-size:small">tos@lon2d = f-&gt;lon</div><div style="font-size:small">
<br></div><div style="font-size:small">See:</div><div style="font-size:small"><br></div><div><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><br></div><div>--M</div><div><br></div><div style="font-size:small"><br></div></div><div>
<br><br><div>On Fri, Aug 22, 2014 at 6:33 AM, Vanúcia Schumacher <span dir="ltr">&lt;<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote 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&amp;lon)</font></div><div><font face="Calibri" size="4" style="font-size:16pt" color="#000000">print(var&amp;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 = &quot;time_bnds&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>time:units = &quot;days since 1980-11-01&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>time:calendar = &quot;standard&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>time:axis = &quot;T&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>time:long_name = &quot;time&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>time:standard_name = &quot;time&quot; ;</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 = &quot;1&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>j:long_name = &quot;cell index along second dimension&quot; ;</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 = &quot;1&quot; ;</span></div><div>

<span style="font-size:21px"><span style="white-space:pre-wrap">                </span>i:long_name = &quot;cell index along first dimension&quot; ;</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 = &quot;latitude&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lat:long_name = &quot;latitude coordinate&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lat:units = &quot;degrees_north&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lat:bounds = &quot;lat_vertices&quot; ;</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 = &quot;longitude&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lon:long_name = &quot;longitude coordinate&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lon:units = &quot;degrees_east&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>lon:bounds = &quot;lon_vertices&quot; ;</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 = &quot;degrees_north&quot; ;</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 = &quot;degrees_east&quot; ;</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 = &quot;sea_surface_temperature&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:long_name = &quot;Sea Surface Temperature&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:comment = &quot;\&quot;this may differ from \&quot;\&quot;surface temperature\&quot;\&quot; in regions of sea ice.\&quot;&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:units = &quot;K&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:original_name = &quot;sosstsst&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:original_units = &quot;degC&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:history = &quot;2012-07-24T13:46:07Z altered by CMOR: Converted units from \&#39;degC\&#39; to \&#39;K\&#39;.&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:cell_methods = &quot;time: mean (interval: 1 month)&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:cell_measures = &quot;area: areacello&quot; ;</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 = &quot;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&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>tos:coordinates = &quot;lat lon&quot; ;</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 = &quot;CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici, Bologna, Italy&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:institute_id = &quot;CMCC&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:experiment_id = &quot;decadal1980&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:source = &quot;CMCC-CM&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:model_id = &quot;CMCC-CM&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:forcing = &quot;Nat,Ant,GHG,SA,TO,Sl&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:parent_experiment_id = &quot;N/A&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:parent_experiment_rip = &quot;N/A&quot; ;</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 = &quot;Silvio Gualdi (<a href="mailto:gualdi@bo.ingv.it" target="_blank">gualdi@bo.ingv.it</a>)&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:history = &quot;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.&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:comment = &quot;Decadal hindcasts/predictions, some extended to 30 years&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:references = &quot;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>&quot; ;</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 = &quot;105250cc-615d-478c-b242-b72f4735fb74&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:product = &quot;output&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:experiment = &quot;10- or 30-year run initialized in year 1980&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:frequency = &quot;mon&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:creation_date = &quot;2012-07-24T13:46:07Z&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:Conventions = &quot;CF-1.4&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:project_id = &quot;CMIP5&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:table_id = &quot;Table Omon (27 April 2011) 340eddd4fd838d90fa9ffe1345ecbd73&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:title = &quot;CMCC-CM model output prepared for CMIP5 10- or 30-year run initialized in year 1980&quot; ;</span></div><div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:parent_experiment = &quot;N/A&quot; ;</span></div>

<div><span style="font-size:21px"><span style="white-space:pre-wrap">                </span>:modeling_realm = &quot;ocean&quot; ;</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 = &quot;2.7.1&quot; ;</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><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><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 &quot;</span></font><font color="#000000" face="Calibri"><span><font color="#000000" face="Calibri"><span>NCL is not correctly plotting the data</span></font>&quot;!<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]                  &lt;================<br></span></div><div><span>            lon: [1..182]                &lt;====================<br></span></div></font><br>
</div><div>The coordinates associated with &#39;var&#39; 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&amp;lon,var&amp;lat,var,True,new_lon,new_lat,0)</span></font><br>


</div><div>You could do you own &#39;debugging by printing the input<br><br></div><div>print(<font color="#000000" face="Calibri"><span>var&amp;lon)<br></span></font></div><div><font color="#000000" face="Calibri"><span>print(var&amp;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">&lt;<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>&gt;</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">&gt;begin</span></div><div><span style="font-size:21px">     </span></div>


<div><span style="font-size:21px">&gt;var = f[:]-&gt;SST</span></div><div><span style="font-size:21px"><br></span></div><div><span style="font-size:21px">&gt;var!1=&quot;lat&quot;</span></div><div><span style="font-size:21px">&gt;var!2=&quot;lon&quot;</span></div>


<div><span style="font-size:21px">&gt;j=var!1</span></div><div><span style="font-size:21px">&gt;i=var!2   </span></div><div><span style="font-size:21px"><br></span></div><div><span style="font-size:21px">newfile = &quot;<a href="http://tos_90x180.nc" target="_blank">tos_90x180.nc</a>&quot;</span></div>


<div><br></div><div><span style="font-size:21px">file_create = addfile(newfile, &quot;c&quot;)    </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 = &quot;degrees_east&quot;</span></div><div><span style="font-size:21px">new_lon!0 = &quot;lon&quot;  </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 = &quot;degrees_north&quot;</span></div><div><span style="font-size:21px">new_lat!0 = &quot;lat&quot;        </span></div><div><span style="font-size:21px"><br></span></div>


<div><span style="font-size:21px">new_var = linint2_Wrap(var&amp;lon,var&amp;lat,var,True,new_lon,new_lat,0)</span></div><div><br></div><div><span style="font-size:21px">file_create-&gt;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></div>                                               </div></div>
</blockquote></div><br></div>