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

Fixed raster reading and coordinate system #2

Closed
wants to merge 5 commits into from

Conversation

mauro3
Copy link
Collaborator

@mauro3 mauro3 commented Dec 22, 2023

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)

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
Copy link
Collaborator Author

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?

Copy link
Collaborator

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

Copy link
Collaborator Author

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

@mauro3
Copy link
Collaborator Author

mauro3 commented Dec 22, 2023

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)

@luraess
Copy link
Collaborator

luraess commented Jul 31, 2024

Closing as addressed in #5

@luraess luraess closed this Jul 31, 2024
@utkinis utkinis deleted the fix-rasters branch July 31, 2024 14:08
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

Successfully merging this pull request may close these issues.

3 participants