Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset in image #1

Open
cgmorton opened this issue Mar 22, 2021 · 0 comments
Open

Offset in image #1

cgmorton opened this issue Mar 22, 2021 · 0 comments

Comments

@cgmorton
Copy link

cgmorton commented Mar 22, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant