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

Plotting #37

Merged
merged 3 commits into from
Dec 3, 2020
Merged

Plotting #37

merged 3 commits into from
Dec 3, 2020

Conversation

atedstone
Copy link
Member

Add a .show() method.

This method thinly wraps rasterio.plot.show.
@atedstone
Copy link
Member Author

n.b. there's only one commit in this PR to look at, 30484cf. I branched from #36 .

Copy link
Member

@adehecq adehecq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious how rshow works underneath. Since the rasterio ds does not have any data associated with it, does it mean that rshow loads the data again in memory?

@atedstone
Copy link
Member Author

Interesting point. I'll look into this. Sometimes the rasterio ds does actually have data associated with it, most notably if using the classmethod from_array.

@atedstone atedstone linked an issue Nov 18, 2020 that may be closed by this pull request
Copy link
Contributor

@rhugonnet rhugonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Seems some package names were already changed by a previous PR, will see if there is conflict when merging.

@adehecq
Copy link
Member

adehecq commented Dec 3, 2020

@rhugonnet have you looked at my earlier comment? I'm concerned that using rasterio's plotting function might load the data a second time, which is not ideal for large data set...

@rhugonnet
Copy link
Contributor

@rhugonnet have you looked at my earlier comment? I'm concerned that using rasterio's plotting function might load the data a second time, which is not ideal for large data set...

So should we plot using something else instead? Cartopy?

@rhugonnet
Copy link
Contributor

rhugonnet commented Dec 3, 2020

I think the idea for now is to have some plotting capability in order to rapidly check the function outputs and move forward. I can open an issue on this and work towards a better solution?

@atedstone
Copy link
Member Author

I'm inclined to agree with @rhugonnet , we can change the code underneath the plot method later if/when we find there to be a problem.

@rhugonnet
Copy link
Contributor

Thanks Amaury, I have linked an issue from your comment to check the data loading of rio plotting.

@adehecq
Copy link
Member

adehecq commented Dec 3, 2020

Sounds good!

@atedstone atedstone deleted the plotting branch February 18, 2021 09:36
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.

Plotting capability
3 participants