[gradsusr] Comparing data baases with different resolution

Michael Fiorino mfiorino at gmu.edu
Wed Dec 21 03:49:06 EST 2022

hi Steven,

if you are using opengrads.org (has both 'user defined functions and commands') then I would recommend using the 're' function which is the C version of my original regrid2.f 'user defined function'

re() offers more options for doing the regrid and will automatically use a 3rd order bessel interpolator going from large -> small grids, but an area-weighted integral preserving method for small->large grids.  suppose the 2.5 is in file 1 and the 2.0 is in file 2, then you could:

slpdiff=re(slp.1,2.5)-re(slp.2,2.5)  # regrid to a common 2.5 degree grid. or re(slp.1,2.0)-re(slp.2,2.0) or re(slp.1,1.0)-re(slp.2,1.0)...

I'd also check the global mean using

'd aave(slp.1,g)'
and the diffs ('d aave(slpdiff,g)')

hope this help
Best /R Mike
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Steven Young <shy9 at earthlink.net>
Sent: Sunday, December 18, 2022 17:33
To: gradsusr at gradsusr.org <gradsusr at gradsusr.org>
Subject: [gradsusr] Comparing data baases with different resolution

I am looking at two SLP databases with different resolution, one is 2.5 x 2.5 and the other is 2.0 x 2.0.  Is there a way to calculate/plot the difference between the two?


Steven Young
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20221221/605a9f3b/attachment.html>

More information about the gradsusr mailing list