Skip to content
Prev 4877 / 29559 Next

readGDAL() and HDF5 files

Hi Sebastian,

When you say the geographic coordinates are not a regular grid - is it 
that the actual grid is Mercator but the NetCDF file stores an X and Y 
vector separately for each unique longitude and latitude? I've seen this 
many times, but never with enough metadata to determine that without 
guessing. I've seen some documents that refer to the source grid as 
being in Mercator, but never any that mention explicitly the method used 
to generate the NetCDF file from those.

If this is the case for your data, I've had success by figuring out an 
offset/scale value that work sufficiently by assuming a Mercator grid

Specifically this one but sometimes with an extra X offset to overcome 
hemisphere shift.

CRSargs(CRS("+proj=merc"))

I don't have the details available today, but I can dig them up if that 
sounds promising. Also, I'd be interested to hear any details you have 
about the grids you are using, whether they use this Mercator-kludge or 
not.

Cheers, Mike.
Sebastian P. Luque wrote: