Skip to content

Offset in image #1

Description

@cgmorton

First, thank you for putting these tools together and making them public! This is really helpful.

I was comparing the ERA5 and ERA5-Land image collections and noticed that there seems to be a slight shift or offset in the ERA5 images (https://code.earthengine.google.com/c71edc087f903a9cb61b55e1bfaf0e3f) that seemed to be about a half an ERA5 cell down and to the right.

Looking through these scripts I noticed that you are defining the geotransform is -180.0, 0.25, 0.0, 90.0, 0.0, -0.25 (https://github.com/jwagemann/era5_in_gee/blob/master/era5_in_gee_functions.py#L144). Since the latitude and longitude values in the NetCDF are for the "center" of the cells but the GeoTIFF is expecting the geotransform to be the upper-left corner "edge", shouldn't the geotransform be something like -180.125, 0.25, 0.0, 90.125, 0.0, -0.25?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions