How can I know which interpolation method was used

Miscellaneous or general questions regarding the WPS
Post Reply
Leriche
Posts: 1
Joined: Fri Jul 31, 2020 4:00 pm

How can I know which interpolation method was used

Post by Leriche » Fri Jul 31, 2020 4:12 pm

is there a way to know which interpolation method was really used (in geogrid or metgrid) for each grid point ?

In the tutorial "wps_advanced", a slide shows this kind of information. I wonder how it was obtained, since the information (number of the interpolation method) is not present in the geogrid or metgrid output files. Is there a means to output this information?

Ming Chen
Posts: 963
Joined: Mon Apr 23, 2018 9:42 pm

Re: How can I know which interpolation method was used

Post by Ming Chen » Tue Aug 04, 2020 4:52 pm

You can always find the interpolation option in GEOGRID.TBL.ARW (for static data) and METGRID.TBL.ARW (for forcing data).
Yes these options can be output as global attributes. It is not our priority to add these information to output. but users are always welcome to modify the codes too output whatever they need.
WRF Help Desk

mgduda
Posts: 337
Joined: Mon Feb 26, 2018 7:35 pm

Re: How can I know which interpolation method was used

Post by mgduda » Thu Aug 06, 2020 9:52 pm

The figures in question (slides 32 and 35 of the Advance WPS tutorial presentation) were produced using a modified version of the metgrid code some years back. Unfortunately, this modified metgrid code wasn't saved, and isn't available as part of any release of the WPS.

In case you'd like to determine which interpolation method is used for each grid cell (and for each field), you could begin in the interp_met_field routine, which is invoked to interpolate each field to the WRF grid. That routine calls the interp_to_latlon routine for each WRF grid point Finally, interp_to_latlon calls the recursive interp_sequence routine, which attempts to apply a list of possible interpolation methods, returning after a method has been successfully applied.

By suitably adding additional arguments to interp_to_latlon and interp_sequence, it should be possible to get the informtion you're looking for.
NCAR/MMM

Post Reply

Return to “Miscellaneous WPS”