<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" size="4" style="font-size:16pt;" color="#000000"><br></font></div><div><font face="Calibri"><span style="font-size: 21px;">The script returns the following error:</span></font></div><div><font face="Calibri"><span style="font-size: 21px;"><br></span></font></div><div><font face="Calibri"><span style="font-size: 21px;"><br></span></font></div><div><font face="Calibri" color="#000000"><div><span style="font-size: 21px;">Variable: sit</span></div><div><span style="font-size: 21px;">Type: float</span></div><div><span style="font-size: 21px;">Total Size: 39266864 bytes</span></div><div><span style="font-size: 21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9816716 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 | 362] x [j | 149] x [i | 182]</span></div><div><span style="font-size: 21px;">Coordinates:&nbsp;</span></div><div><span style="font-size: 21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time: [ &nbsp;15..3697.5]</span></div><div><span style="font-size: 21px;">Number Of Attributes: 11</span></div><div><span style="font-size: 21px;">&nbsp; standard_name :<span class="Apple-tab-span" style="white-space:pre">        </span>sea_ice_thickness</span></div><div><span style="font-size: 21px;">&nbsp; long_name :<span class="Apple-tab-span" style="white-space:pre">        </span>Sea Ice Thickness</span></div><div><span style="font-size: 21px;">&nbsp; comment :<span class="Apple-tab-span" style="white-space:pre">        </span>the mean thickness of sea ice in the ocean portion of the grid cell (averaging over the entire ocean portion, including the ice-free fraction). &nbsp;Reported as 0.0 in regions free of sea ice.</span></div><div><span style="font-size: 21px;">&nbsp; units :<span class="Apple-tab-span" style="white-space:pre">        </span>m</span></div><div><span style="font-size: 21px;">&nbsp; original_name :<span class="Apple-tab-span" style="white-space:pre">        </span>iicethic</span></div><div><span style="font-size: 21px;">&nbsp; cell_methods :<span class="Apple-tab-span" style="white-space:pre">        </span>time: mean (interval: 1 month) area: mean where sea</span></div><div><span style="font-size: 21px;">&nbsp; cell_measures :<span class="Apple-tab-span" style="white-space:pre">        </span>area: areacello</span></div><div><span style="font-size: 21px;">&nbsp; missing_value :<span class="Apple-tab-span" style="white-space:pre">        </span>1e+20</span></div><div><span style="font-size: 21px;">&nbsp; _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>1e+20</span></div><div><span style="font-size: 21px;">&nbsp; associated_files :<span class="Apple-tab-span" style="white-space:pre">        </span>baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_seaIce_fx_CMCC-CM_decadal1980_r0i0p0.nc areacello: areacello_fx_CMCC-CM_decadal1980_r0i0p0.nc</span></div><div><span style="font-size: 21px;">&nbsp; coordinates :<span class="Apple-tab-span" style="white-space:pre">        </span>lat lon</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>write_grid_description: source lat dims = (447,182)</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>write_grid_description: source lon dims = (447,182)</span></div><div><span style="font-size: 21px;">(0)<span class="Apple-tab-span" style="white-space:pre">        </span><b>write_grid_description: source grid type is 'curvilinear'</b></span></div><div><span style="font-size: 21px;"><b>(0)<span class="Apple-tab-span" style="white-space:pre">        </span>curvilinear_to_SCRIP: Opt@Mask2D is not the correct dimensionality</b></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&nbsp;</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: Mon, 25 Aug 2014 10:49:16 -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;">Please try the modified script.</div><div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">The issue is that you have coordinate arrays I and J attached to your "sit" variable, but these are not lat/lon values, so you don't want to use them.</div>
<div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">You do have "lat" and "lon" arrays on the file, and these are what you want to do. &nbsp;So, I deleted your I/J coordinate arrays, and read in lat and lon for the regridding.</div>
<div class="ecxgmail_default" style="font-size:small;"><br></div><div class="ecxgmail_default" style="font-size:small;">--Mary</div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Sun, Aug 24, 2014 at 10:07 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 class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><font face="Calibri" color="#000000"><div><div><span style="font-size:21px;">Hi Mary,</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">Follows the output:</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">Variable: unnamed</span></div><div><span style="font-size:21px;">Type: file</span></div><div><span style="font-size:21px;">filename:<span style="white-space:pre-wrap;">        </span>sit_OImon_CMCC-CM_decadal1980_r1i1p1_198011-199012</span></div>
<div><span style="font-size:21px;">path:<span style="white-space:pre-wrap;">        </span>sit_OImon_CMCC-CM_decadal1980_r1i1p1_198011-199012.nc</span></div><div><span style="font-size:21px;">&nbsp; &nbsp;file global attributes:</span></div>
<div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; institution : CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici, Bologna, Italy</span></div></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; institute_id : CMCC</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; experiment_id : decadal1980</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; source : CMCC-CM</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; model_id : CMCC-CM</span></div><div>
<span style="font-size:21px;">&nbsp; &nbsp; &nbsp; forcing : Nat,Ant,GHG,SA,TO,Sl</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; parent_experiment_id : N/A</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; parent_experiment_rip : N/A</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; branch_time : &nbsp; &nbsp;0</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; 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;">&nbsp; &nbsp; &nbsp; history : Model output postprocessed with &nbsp;CDO (<a href="https://code.zmaw.de/projects" target="_blank">https://code.zmaw.de/projects</a>) 2012-07-24T13:45:46Z CMOR rewrote data to comply with CF standards and CMIP5 requirements.</span></div>
<div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; comment : Decadal hindcasts/predictions, some extended to 30 years</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; 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><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; initialization_method : 1</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; physics_version : 1</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; tracking_id : a76e8d74-18ad-408f-ae28-d4a228f3eddc</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; product : output</span></div><div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; experiment : 10- or 30-year run initialized in year 1980</span></div></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; frequency : mon</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; creation_date : 2012-07-24T13:45:46Z</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; Conventions : CF-1.4</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; project_id : CMIP5</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; table_id : Table OImon (27 April 2011) f04ba250f3acd5b9e847c21d5752eb85</span></div><div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; title : CMCC-CM model output prepared for CMIP5 10- or 30-year run initialized in year 1980</span></div>
</div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; parent_experiment : N/A</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; modeling_realm : seaIce ocean</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; realization : 1</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; cmor_version : 2.7.1</span></div><div><span style="font-size:21px;">&nbsp; &nbsp;dimensions:</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; time = 122 &nbsp;// unlimited</span></div><div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; j = 149</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; i = 182</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; bnds = 2</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; vertices = 4</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp;variables:</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; double time ( time )</span></div></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bounds :<span style="white-space:pre-wrap;">        </span>time_bnds</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>days since 1980-11-01</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;calendar :<span style="white-space:pre-wrap;">        </span>standard</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;axis :<span style="white-space:pre-wrap;">        </span>T</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>time</span></div><div>
<span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;standard_name :<span style="white-space:pre-wrap;">        </span>time</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; double time_bnds ( time, bnds )</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; integer j ( j )</span></div><div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>1</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>cell index along second dimension</span></div><div><span style="font-size:21px;"><br></span></div></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; integer i ( i )</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>1</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>cell index along first dimension</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; float lat ( j, i )</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;standard_name :<span style="white-space:pre-wrap;">        </span>latitude</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>latitude coordinate</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>degrees_north</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bounds :<span style="white-space:pre-wrap;">        </span>lat_vertices</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; float lon ( j, i )</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;standard_name :<span style="white-space:pre-wrap;">        </span>longitude</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>longitude coordinate</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>degrees_east</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bounds :<span style="white-space:pre-wrap;">        </span>lon_vertices</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; float lat_vertices ( j, i, vertices )</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>degrees_north</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; float lon_vertices ( j, i, vertices )</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>degrees_east</span></div>
<div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; float sit ( time, j, i )</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;standard_name :<span style="white-space:pre-wrap;">        </span>sea_ice_thickness</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;long_name :<span style="white-space:pre-wrap;">        </span>Sea Ice Thickness</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;comment :<span style="white-space:pre-wrap;">        </span>the mean thickness of sea ice in the ocean portion of the grid cell (averaging over the entire ocean portion, including the ice-free fraction). &nbsp;Reported as 0.0 in regions free of sea ice.</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;units :<span style="white-space:pre-wrap;">        </span>m</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;original_name :<span style="white-space:pre-wrap;">        </span>iicethic</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cell_methods :<span style="white-space:pre-wrap;">        </span>time: mean (interval: 1 month) area: mean where sea</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cell_measures :<span style="white-space:pre-wrap;">        </span>area: areacello</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;missing_value :<span style="white-space:pre-wrap;">        </span>1e+20</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_FillValue :<span style="white-space:pre-wrap;">        </span>1e+20</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;associated_files :<span style="white-space:pre-wrap;">        </span>baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile: gridspec_seaIce_fx_CMCC-CM_decadal1980_r0i0p0.nc areacello: areacello_fx_CMCC-CM_decadal1980_r0i0p0.nc</span></div>
<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;coordinates :<span style="white-space:pre-wrap;">        </span>lat lon</span></div><div><span style="font-size:21px;"><br></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: float</span></div><div><span style="font-size:21px;">Total Size: 39266864 bytes</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9816716 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 | 362] x [j | 149] x [i | 182]</span></div><div>
<span style="font-size:21px;">Coordinates:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time: [ &nbsp;15..11002.5]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j: [1..149]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i: [1..182]</span></div>
<div><span style="font-size:21px;">Number Of Attributes: 11</span></div><div><span style="font-size:21px;">&nbsp; standard_name :<span style="white-space:pre-wrap;">        </span>sea_ice_thickness</span></div><div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>Sea Ice Thickness</span></div>
<div><span style="font-size:21px;">&nbsp; comment :<span style="white-space:pre-wrap;">        </span>the mean thickness of sea ice in the ocean portion of the grid cell (averaging over the entire ocean portion, including the ice-free fraction). &nbsp;Reported as 0.0 in regions free of sea ice.</span></div>
<div><span style="font-size:21px;">&nbsp; units :<span style="white-space:pre-wrap;">        </span>m</span></div><div><span style="font-size:21px;">&nbsp; original_name :<span style="white-space:pre-wrap;">        </span>iicethic</span></div><div><span style="font-size:21px;">&nbsp; cell_methods :<span style="white-space:pre-wrap;">        </span>time: mean (interval: 1 month) area: mean where sea</span></div>
<div><span style="font-size:21px;">&nbsp; cell_measures :<span style="white-space:pre-wrap;">        </span>area: areacello</span></div><div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>1e+20</span></div>
<div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>1e+20</span></div><div><span style="font-size:21px;">&nbsp; associated_files :<span style="white-space:pre-wrap;">        </span>baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile: gridspec_seaIce_fx_CMCC-CM_decadal1980_r0i0p0.nc areacello: areacello_fx_CMCC-CM_decadal1980_r0i0p0.nc</span></div>
<div><span style="font-size:21px;">&nbsp; coordinates :<span style="white-space:pre-wrap;">        </span>lat lon</span></div></div><div><br></div></font><div><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&nbsp;</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><hr>Date: Sun, 24 Aug 2014 09:53:12 -0600<div><div class="h5"><br>Subject: Re: [ncl-talk] problems with regriding<br>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><br>
<br><div dir="ltr"><div style="font-size:small;">Sorry, I hit &lt;send&gt; before I was done editing the message. &nbsp;Here's the short script I want you to run, and then send me *all* the output:</div><div style="font-size:small;">

<br></div><div style="font-size:small;">







<font face="courier new, monospace"><span>&nbsp; fils = </span>systemfunc<span>(</span><span>"ls *.nc"</span><span>)<br></span></font><span style="font-family:'courier new',monospace;">&nbsp; f</span><span style="font-family:'courier new',monospace;">&nbsp; </span><span style="font-family:'courier new',monospace;">= </span><span style="font-family:'courier new',monospace;">addfiles</span><span style="font-family:'courier new',monospace;">(fils, </span><span style="font-family:'courier new',monospace;">"r"</span><span style="font-family:'courier new',monospace;">)<br>

</span><span style="font-family:'courier new',monospace;">&nbsp; print</span><span style="font-family:'courier new',monospace;">(f[0])<br></span><span style="font-family:'courier new',monospace;">&nbsp; sit = f[:]-&gt;SST<br>

</span><span style="font-family:'courier new',monospace;">&nbsp; printVarSummary</span><span style="font-family:'courier new',monospace;">(sit)</span><br><span><font face="arial, helvetica, sans-serif">--Mary</font></span><br>

<span style="font-family:'courier new',monospace;"><br></span><br></div></div><div><br><br><div>On Sun, Aug 24, 2014 at 9:50 AM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div style="font-size:small;">I think we need to start at the beginning, because it's confusing about what your variable originally looked like.</div>

<div style="font-size:small;">
<br></div><div style="font-size:small;">Can you run just this short program, and let me know what the output is. &nbsp;I need to know if you even have latitude or longitude values on your file:</div><div style="font-size:small;">


<br></div><div style="font-size:small;">







<span>fils = </span>systemfunc<span>(</span><span>"ls *.nc"</span><span>)<br></span>f&nbsp; = <span>addfiles</span>(fils, <span>"r"</span>)<br>

printVarSummary<span>(f)</span><br>
<br><br>
;ListSetType(f,"join") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
<br><br>
;---Read data&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&nbsp; sit&nbsp; &nbsp; &nbsp; = f[:]-&gt;SST<br>
printVarSummary<span>(sit)</span><br><span><br></span><br></div></div><div><div><div><br><br><div>On Sat, Aug 23, 2014 at 6:02 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"><div><div style="line-height:22.719999313354492px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);"><font color="black" style="line-height:normal;"><font size="3"><span style="line-height:29.81999969482422px;font-size:21px;">fatal:No valid instance of variable lat found in file list</span></font></font></div>


<div><font color="black" style="line-height:normal;"><font size="3"><span style="line-height:29.81999969482422px;font-size:21px;"><br></span></font></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&nbsp;</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><hr>Date: Sat, 23 Aug 2014 18:00:03 -0600<div><div><br>Subject: Re: [ncl-talk] problems with regriding<br>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><br>


<br><div dir="ltr"><div style="font-size:small;">What is the exact error message?</div><div style="font-size:small;"><br></div><div style="font-size:small;">--Mary</div>
<div style="font-size:small;"><br></div></div><div><br><br><div>On Fri, Aug 22, 2014 at 5:13 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 face="Calibri" color="#000000"><div><span style="font-size:21px;">I tried deleting the i and j coordinates, but returns the error that does not recognize lat and lon, already tried everything and nothing works!</span></div>



<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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 [J | 149] x [I | 182]</span></div>



<div><span style="font-size:21px;">Coordinates:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME: [76.5..11002.5]</span></div></div><div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div>



<div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>



<div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div><div><span style="font-size:21px;">&nbsp; 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;">fatal:No valid instance of variable lat found in file list</span></div><div><br></div><div><br></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&nbsp;</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><hr>Date: Fri, 22 Aug 2014 16:07:04 -0600<div><br>Subject: Re: [ncl-talk] problems with regriding<br>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><br>



</div>CC: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><div><div><br><br><div dir="ltr"><div style="font-size:small;">​The problem is that you have those "I" and "J" coordinate arrays attached to your variable. By default, if ESMF_regrid sees coordinate arrays, it will try to use them in regridding.</div>




<div style="font-size:small;"><br></div><div style="font-size:small;">Try deleting them before you do any regridding​:</div><div style="font-size:small;"><br>
</div><div style="font-size:small;">delete(sit&amp;I)</div><div style="font-size:small;">delete(sit&amp;J)</div><div style="font-size:small;"><br></div><div style="font-size:small;">
--Mary</div></div><div><br><br><div>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 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 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>
<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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME: [76.5..11002.5]</span></div>




<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; J: [1..149]</span></div><div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I: [1..182]</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div>
<div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>




<div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div><div><span style="font-size:21px;">&nbsp; 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><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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time: [76.5..11002.5]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [1..149]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [1..182]</span></div>




<div><span style="font-size:21px;">Number Of Attributes: 6</span></div><div><span style="font-size:21px;">&nbsp; lon2d :<span style="white-space:pre-wrap;">        </span>&lt;ARRAY of 546 elements&gt;</span></div><div><span style="font-size:21px;">&nbsp; lat2d :<span style="white-space:pre-wrap;">        </span>&lt;ARRAY of 447 elements&gt;</span></div>




<div><div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>




<div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div><div><span style="font-size:21px;">&nbsp; 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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cannot determine the source grid type.</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&nbsp;</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><hr>Date: Fri, 22 Aug 2014 14:29:44 -0600<div><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><br><br><div dir="ltr"><div style="font-size:small;">D,&nbsp;</div><div style="font-size:small;"><br></div><div style="font-size:small;">My guess is she'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 &nbsp;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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div><div><span style="font-size:21px;">&nbsp; units :<span style="white-space:pre-wrap;">        </span>1</span></div>





<div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>cell index along second dimension</span></div><div><span style="font-size:21px;">&nbsp; point_spacing :<span style="white-space:pre-wrap;">        </span>even</span></div>





<div><span style="font-size:21px;">&nbsp; 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>&nbsp;</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 &nbsp;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&nbsp;</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 "</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:&nbsp;</span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME: [76.5..3636.5]</span></div>






<div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [1..149]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;================<br></span></div><div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [1..182]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;====================<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&nbsp; 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 '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&nbsp; -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;">&nbsp; &nbsp; &nbsp;</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="lat"</span></div><div><span style="font-size:21px;">&gt;var!2="lon"</span></div>






<div><span style="font-size:21px;">&gt;j=var!1</span></div><div><span style="font-size:21px;">&gt;i=var!2 &nbsp;&nbsp;</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") &nbsp; &nbsp;</span></div><div><span style="font-size:21px;"><br></span></div><div><span style="font-size:21px;">new_lon = fspan(0,358, 180) &nbsp; &nbsp;&nbsp;</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" &nbsp;</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" &nbsp; &nbsp; &nbsp; &nbsp;</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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME: [76.5..3636.5]</span></div>






<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [1..149]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [1..182]</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div><div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>






<div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div>






<div><span style="font-size:21px;">&nbsp; 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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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:&nbsp;</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME: [76.5..3636.5]</span></div>






<div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lat: [-87.86..87.86]</span></div><div><span style="font-size:21px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lon: [ 0..358]</span></div><div><span style="font-size:21px;">Number Of Attributes: 4</span></div>






<div><span style="font-size:21px;">&nbsp; missing_value :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div><div><span style="font-size:21px;">&nbsp; _FillValue :<span style="white-space:pre-wrap;">        </span>-9.999999999999999e+33</span></div>






<div><span style="font-size:21px;">&nbsp; long_name :<span style="white-space:pre-wrap;">        </span>TOS[L=3:122]</span></div><div><span style="font-size:21px;">&nbsp; 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&nbsp;</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></div></div></div>                                               </div></div>
</blockquote></div><br></div></div></div></div>                                               </div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>                                               </div></div>
</blockquote></div><br></div></div></div>                                               </div></body>
</html>