-
Notifications
You must be signed in to change notification settings - Fork 87
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
Flipped SpatRaster
map when reading NetCDF
file created by raster
#1459
Comments
A similar case with map flipped in y direction just using terra download any file from this page for use in this example, I used April
Any clue why this happens? |
Maybe this will help: |
Many thanks for pointing me to #1289. Reading the nc file worked correctly with rast without any workaround. When I create a spatraster with terra the only workaround that worked was the last: flip vertical. |
For what it is worth, @elgabbas' example seems to work with the lon/lat CRS.
It is unfortunate that it does not work correctly with other CRSs, but that would have to be fixed in "raster" (but that is not likely to happen anymore). I do not really understand @mablmabl comment. That is, since
"gives correct map"; terra would appear to be working as expected. |
Hello,
I want to read a netCDF file created by
raster::writeRaster
usingterra::rast()
.Create and save netCDF file
Reading netCDF using
raster
Reading netCDF using
terra
I am unsure if this issue is linked to this issue.
Your feedback is appreciated.
The text was updated successfully, but these errors were encountered: