[MITgcm-devel] exf_interp and grib data

Martin Losch Martin.Losch at awi.de
Thu Mar 12 06:18:41 EDT 2015


Hi there

I am trying to convert (on the fly) atmospheric data in grib format into ieee-be so that I can use exf (exf_interp) to read it.
The grb data seems to put the index (i,j) = (1,1) at the top left (NW) corner, whereas we expect (i,j)=(1,1) to be at the bottom right (SW) corner of the gridded data field. For technical reasons, it would be simpler to not have to flip the forcing fields (I would like to use wgrib <http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html>, which can produce ieee-be fields from grib data, but doesn’t seem to be able to do the N to S-flip), so that my data.exf entry would look like this:

${var}_lat0 = 78,
${var}_lat_inc = 39*-4.,

instead of 
${var}_lat0 = -78,
${var}_lat_inc = 39*4.,

Appart from the fact, that the routine exf_interp checks if the forcing grid “encompasses” the model grid (which it does technically), and this fails (because the check also expects lat0 to be the southern-most latitude), can exf_interp handle this situation properly? (a simple test with global_with_exf suggests, that it does not, but why?)

Martin





More information about the MITgcm-devel mailing list