<div dir="ltr">Jennifer and Endalkachew,<div><br></div><div>Thank you! I didn't realize this was another situation where lterp could be used. What is the advantage of using lterp over the regrid function though?</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 2:40 PM, Jennifer M Adams <span dir="ltr"><<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Yes, I recommend using lterp() instead of regrid(). But more importantly, your sdfwrite command is writing out the wrong variable — you want to write newgrid not prectot. —Jennifer
<div><br>
<div><div><div class="h5"><br>
<div><br>
</div>
<div>On Jul 21, 2016, at 1:16 PM, Endalkachew Bekele - NOAA Affiliate <<a href="mailto:endalkachew.bekele@noaa.gov" target="_blank">endalkachew.bekele@noaa.gov</a>> wrote:</div>
</div></div><div><div><div class="h5">
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hi Justin,<br>
<br>
</div>
If you are using GrADS 2.0.0 or later, you may try the lterp function (<a href="http://cola.gmu.edu/grads/gadoc/gradfunclterp.html" target="_blank">http://cola.gmu.edu/grads/gadoc/gradfunclterp.html</a>).<br>
<br>
</div>
Endalk<br>
<div><br>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jul 21, 2016 at 11:22 AM, Justin Hicks <span dir="ltr">
<<a href="mailto:jhicks2014@gmail.com" target="_blank">jhicks2014@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Users,
<div><br>
</div>
<div>I am trying to convert 0.625x0.5 degree gridded MERRA2 precipitation data to 1 degree gridded data. There wasn't much help online as how to do this, but the 1 degree file I made does seem to spit out data that is different from the original. I'll post
the commands I used to do this. The variable name is 'prectot':</div>
<div><br>
</div>
<div>open MERRA2_Monthly_1980-1991_Flx</div>
<div>set t 1 last</div>
<div>define prectot=prectot</div>
<div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif;font-size:13px;background-color:rgb(250,250,250)">newgrid=regrid2(prectot,1.0)</span><br clear="all">
<div>set sdfwrite /data2/control/MERRA2_Monthly_1980-1991_Flx_1Deg_TotalPrecipitation.nc</div>
<div>sdfwrite prectot</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm not sure if this was the correct way to do this or not. The contents of ncdump for the new file still suggest that it's not 1 degree, yet the values are different between the two files. I also tried to set the lat/lon for the new file to a small, fixed
value to see the grid sizes, but there was an error with the grid limits, so all values showed undefined. </div>
<div><br>
</div>
<div>Any help would be appreciated; I just want to double check to see if I converted to 1 degree correctly. <span><font color="#888888"><br>
-- </font></span></div>
<span><font color="#888888">
<div data-smartmail="gmail_signature">
<div dir="ltr">
<div data-smartmail="gmail_signature">
<div dir="ltr">
<div><span style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font><b>Justin</b></font></span></span><br>
</div>
<div><i style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font>Undergraduate<br>
Atmospheric Sciences Major</font></span></i></div>
<div><i style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font>GIS Minor<br>
University of Maryland-College Park</font></span></i><font face="arial, helvetica, sans-serif" size="2"><b><br>
</b></font></div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div><br>
<div> </div>
<br>
</div>
<div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-size:12px">--</div>
<div style="font-size:12px">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font color="#000000"><b>Justin</b></font></span></span><br></div><div><i style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font color="#000000">Undergraduate<br>Atmospheric Sciences Major</font></span></i></div><div><i style="font-size:12.8px"><span style="font-size:10pt;font-family:"Times New Roman",serif;background-image:initial;background-repeat:initial"><font color="#000000">GIS Minor<br>University of Maryland-College Park</font></span></i><font color="#000000" face="arial, helvetica, sans-serif" size="2"><b><br></b></font></div></div></div></div></div>
</div></div>