[gradsusr] Convert 0.625x0.5 degree data to 1 degree gridded

Justin Hicks jhicks2014 at gmail.com
Thu Jul 21 15:03:57 EDT 2016


Jennifer and Endalkachew,

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?



On Thu, Jul 21, 2016 at 2:40 PM, Jennifer M Adams <jadams21 at gmu.edu> wrote:

> 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
>
>
>
> On Jul 21, 2016, at 1:16 PM, Endalkachew Bekele - NOAA Affiliate <
> endalkachew.bekele at noaa.gov> wrote:
>
> Hi Justin,
>
> If you are using GrADS 2.0.0 or later, you may try the lterp function (
> http://cola.gmu.edu/grads/gadoc/gradfunclterp.html).
>
> Endalk
>
>
> On Thu, Jul 21, 2016 at 11:22 AM, Justin Hicks <jhicks2014 at gmail.com>
> wrote:
>
>> Users,
>>
>> 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':
>>
>> open MERRA2_Monthly_1980-1991_Flx
>> set t 1 last
>> define prectot=prectot
>> newgrid=regrid2(prectot,1.0)
>> set sdfwrite
>> /data2/control/MERRA2_Monthly_1980-1991_Flx_1Deg_TotalPrecipitation.nc
>> sdfwrite prectot
>>
>>
>>
>> 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.
>>
>> Any help would be appreciated; I just want to double check to see if I
>> converted to 1 degree correctly.
>> --
>> *Justin*
>>
>> *Undergraduate Atmospheric Sciences Major*
>>
>> *GIS Minor University of Maryland-College Park*
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
*Justin*

*UndergraduateAtmospheric Sciences Major*

*GIS MinorUniversity of Maryland-College Park*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160721/291d6eb1/attachment-0001.html 


More information about the gradsusr mailing list