<div dir="ltr"><div>Hi Chatu,</div><div><br></div><div>ESMF regridding works fine for 3 dimensional data. What makes you think it does not? <br></div><div><br></div><div>Likely you would need to attach the 2d coordinate arrays with the variables, e.g.:</div><div><br></div><div>varb1@lat2d = infile1->latitude <br></div><div>varb1@lon2d = infile1->longitude</div><div><br></div><div><div>varb2@lat2d = infile2->latitude <br></div><div>varb2@lon2d = infile2->longitude</div></div><div><br></div><div>If this does not work, then share a full script (and any error messages you get).</div><div><br></div><div>HTH</div><div>Rashed<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 24, 2021 at 4:28 PM Chathurika via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="font-family:Arial">
<span style="font-size:16px">Dear All,</span>
</p>
<p style="font-family:Arial">
<br>
</p>
<p style="font-family:Arial">
<span style="font-size:16px">Thank you so much for reading my email and helping me out to solve this issue.</span>
</p>
<p style="font-family:Arial">
<br>
</p>
<p style="font-family:Arial">
<span style="font-size:16px">I want to perform the significance test (ttest) over time dimension for the differences of two datasets which have lat[:,:] and lon[:,:] (two dimensional, like WRF). </span>
</p>
<p style="font-family:Arial">
<span style="font-size:16px"><br>
</span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px"> differences = (high resolution - low resolution). </span></span>
</p>
<p style="font-family:Arial">
<span style="font-size:16px"><br>
</span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">However, the dimensions of lat and lon are not same. The variable summary is;</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px"><br>
</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">Low resolution:</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">
</span></span></p><p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Type: float</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Total Size: 54067200 bytes</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>13516800 values</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 3</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes: [time | 240] x [j | 220] x [i | 256]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Coordinates:<span> </span></span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>time: [52975.5..60249.5]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>j: [0..219]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>i: [0..255]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 11</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>standard_name : sea_surface_height_above_geoid</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>long_name : Sea Surface Height Above Geoid</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>comment : This is the dynamic sea level, so should have zero global area mean. It should not include inverse barometer depressions from sea ice.</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>units : m</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>original_name : zos</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>cell_methods : area: mean where sea time: mean</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>cell_measures : area: areacello</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>history : 2019-09-04T15:31:31Z altered by CMOR: replaced missing value flag (-9e+33) and corresponding data with standard missing value (1e+20).</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>missing_value : 1e+20</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>_FillValue : 1e+20</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>coordinates : latitude longitude</span>
</p>
<br>
<p></p>
<p>
<span style="font-size:16px;font-family:Arial">High resolution:</span>
</p>
<p>
<span style="font-size:16px;font-family:Arial"><br>
</span>
</p>
<p>
<span style="font-size:16px;font-family:Arial">
</span></p><p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Type: float</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Total Size: 311047680 bytes</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>77761920 values</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 3</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes: [time | 240] x [j | 404] x [i | 802]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Coordinates:<span> </span></span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>time: [52975.5..60249.5]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>j: [0..403]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>i: [0..801]</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 11</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>standard_name : sea_surface_height_above_geoid</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>long_name : Sea Surface Height Above Geoid</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>comment : This is the dynamic sea level, so should have zero global area mean. It should not include inverse barometer depressions from sea ice.</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>units : m</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>original_name : zos</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>cell_methods : area: mean where sea time: mean</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>cell_measures : area: areacello</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>history : 2019-08-25T07:38:10Z altered by CMOR: replaced missing value flag (-9e+33) and corresponding data with standard missing value (1e+20).</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>missing_value : 1e+20</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>_FillValue : 1e+20</span>
</p>
<p style="margin-bottom:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;white-space:normal">
<span style="font-variant-ligatures:no-common-ligatures"><span> </span>coordinates : latitude longitude</span>
</p>
<p>
<span style="font-size:16px;font-family:Arial"><br>
</span>
</p>
*latitude and longitude have two dimensions.
<p></p>
<p>
<span style="font-size:16px;font-family:Arial"><br>
</span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">I cannot do ESMF regridding as per it is not allowed to use the all three dimensions (time, lat, lon). I am little confused here, How can I use ESMF regridding and keep the time dimension also. If so, after regridding, I can perform the ttest for the resolution difference.</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px"><br>
</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">Please help me and Many many thanks.</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px"><br>
</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">Best regards,</span></span>
</p>
<p>
<span style="font-family:Arial"><span style="font-size:16px">Chathu</span></span>
</p>
<br>
<span style="font-family:Arial">
<hr style="margin:0.5em 0px;width:10em;height:1px;background-color:rgb(153,153,153);border:medium none" align="left">
<blockquote style="margin:0px 0px 0px 40px;padding:0px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:small;font-variant-ligatures:normal;border:medium none">
<span style="font-style:italic;font-size:medium"><br>
</span>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;padding:0px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:small;font-variant-ligatures:normal;border:medium none">
<span style="font-style:italic;font-size:medium"><br>
</span>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;padding:0px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-variant-ligatures:normal;border:medium none">
<span style="font-style:italic"><span style="font-size:x-small">Wickramage Chathurika Hemamali</span></span>
<div>
<span style="font-style:italic"><span style="font-size:x-small">Msc in Physical Oceanography</span></span>
</div>
<div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2251">
<span style="font-style:italic"><span style="font-size:x-small">State Key Laboratory of Tropical Oceanography</span></span>
</div>
</div>
<div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252">
<span style="font-style:italic"><span style="font-size:x-small">South China Sea Institute of Oceanology</span></span>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252">
<span style="font-style:italic"><span style="font-size:x-small">University of Chinese Academy of Science</span></span>
</div>
</div>
<div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264">
<span style="font-style:italic"><span style="font-size:x-small">China</span></span>
</div>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<span style="font-style:italic;font-size:medium"><br>
</span>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<i><span style="font-size:xx-small">Specialized in Oceanography and Marine Geology (Bachelor)</span></i>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<i><span style="font-size:xx-small">University of Ruhuna</span></i>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<i><span style="font-size:xx-small">Matara</span></i>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<i><span style="font-size:xx-small">Sri Lanka</span></i>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<span style="font-style:italic;font-size:medium"><br>
</span>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<span style="font-style:italic;font-size:medium">Email : <a>wickramagechathurika@rocketmail.com</a></span>
</div>
<div id="gmail-m_-5845112258846473730ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="font-size:small">
<span style="font-style:italic;font-size:medium"><a>chatu@scsio.ac.cn</a></span>
</div>
</blockquote>
</span>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>