-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixed raster reading and coordinate system #2
Conversation
application/dataset.jl
Outdated
vmag_epsg = dataset.v2016_2017 | ||
# ice_thic, ice_surf, bed_surf = GlacioTools.geom_select("Rhone", "B43-03", "application/datasets/Rhone"; do_save=false) | ||
ice_thic, ice_surf, bed_surf = GlacioTools.geom_select("Aletsch", "B36-26", "datasets/Aletsch"; do_save=false) | ||
ice_thic = reverse(ice_thic[:,:,1], dims=2) # reads it into memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luraess : maybe this is something which should be done in geom_select
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit annoying with those reversed dims, but I find it easier when they are as expected. And all the same. Otherwise you can run into troubles when you just work with the underlying matrix. See eg https://github.com/eth-vaw-glaciology/GlacioTools.jl/blob/4244ee744413efa4cb6be2ae6f32dd90580c00b8/src/Antarctica.jl#L96
Actually, maybe the reversing will not be needed soon with the next major version of Rasters, see: rafaqz/Rasters.jl#545 (but you should still merge this, but then update as needed) |
Closing as addressed in #5 |
Do you have other raster datasets to be read in? If so, let me know asap and I can take a look.
Note, the makie plotting I did not test as I just used Plots (commented code block)