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

Additional options for the stock image #786

Closed
melissaebrooks opened this issue Jul 27, 2016 · 5 comments
Closed

Additional options for the stock image #786

melissaebrooks opened this issue Jul 27, 2016 · 5 comments
Milestone

Comments

@melissaebrooks
Copy link

The current stock_img() call has a single image available to it (a downscaled Natrual Earth 1). It would be good to be able to choose a higher resolution image (x2 and x4 for instance), and from the Grey Earth and Hypsometric Tints images.

@ajdawson
Copy link
Member

The stock_img() method draw a pre-downloaded (actually shipped with cartopy) image, as you say downsampled from Natural Earth 1. I'm not in favour of extending stock_img() to do anything more, as its purpose is for quick-and-easy display of a basemap, and including higher resolution data would swell the size of the cartopy repository to beyond reasonable in my opinion.

However, your point about accessing these other rasters is a good one. I'm not sure our NaturalEarthFeature system is capable of obtaining the rasters right now, but this is the place to extend if any as it would allow users to choose arbitrary style and resolution from the full range of Natural Earth rasters.

@melissaebrooks
Copy link
Author

That sounds interesting. Is there the option to cache the images that the NaturalEarthFeature has produced?

Without caching, then the background image would be a bottleneck for a job plotting a large number of forecast fields, in parallel, over multuiple regions. That is an advantage of preprocessed/downscaled images.

@ajdawson
Copy link
Member

I think there is automatic caching already for the Natural Earth sources we support.

@melissaebrooks
Copy link
Author

This has come up again, and it would be really useful for me to be able to add the grey earth with shaded relief images in the next couple of weeks. I'm happy to do this myself locally, as a temporary measure, via stock image.

Whether or not that would get merged in is another matter. I suspect that it would be quite a popular feature with users and the increase in the data file size wouldn't be that large.

Malcolm

@pelson
Copy link
Member

pelson commented Nov 20, 2017

Fixed by #815.

@pelson pelson closed this as completed Nov 20, 2017
@QuLogic QuLogic added this to the 0.15.0 milestone Nov 20, 2017
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

4 participants