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

Add scale bar to bounding box maps in dataset documentation #5

Open
pont-us opened this issue Oct 13, 2022 · 1 comment
Open

Add scale bar to bounding box maps in dataset documentation #5

pont-us opened this issue Oct 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@pont-us
Copy link
Member

pont-us commented Oct 13, 2022

Currently, the datasetdocgen.py script produces maps with a grid and longitude/latitude labels, but no scale bar. In the discussion on #3, @AliceBalfanz suggested adding a scale bar. I think this is a good idea but it's not entirely trivial to implement: currently the map uses a Mercator projection, so the horizontal scale varies significantly with latitude and we therefore can't produce a scale bar which will apply to a whole plot. If we're going to have a scale bar we should instead use projections which minimize distance error -- maybe a locally centred Lambert azimuthal equal-area for local/regional data sets, and Mollweide for any bounding box big enough to be shown on a map of the whole Earth. Cartopy supports both of these. Dropping Mercator is probably a good idea in any case because of the notorious vertical distortion at high latitudes.

@pont-us pont-us added the enhancement New feature or request label Oct 13, 2022
pont-us added a commit that referenced this issue Oct 14, 2022
Change the map projection in the dataset information pages from
Mercator to Lambert azimuthal equal-area. Pre-requisite for implementing
Issue #5.
@pont-us
Copy link
Member Author

pont-us commented Oct 14, 2022

Commit 323a57d switched from Mercator to LAEA, so the remaining tasks are:

  1. Decide what to do about very large (up to global) areas, since LAEA isn't very good for these.
  2. Implement whatever was decided.
  3. Actually add the scale bars to the plots.

Items 1 and 2 could be postponed until we actually have a dataset which requires them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant