Skip to content

Allow plotting with non-polar stereographic projections (EPSG other than 3031 or 3413)#324

Merged
mdtanker merged 31 commits intomainfrom
epsg
Feb 7, 2026
Merged

Allow plotting with non-polar stereographic projections (EPSG other than 3031 or 3413)#324
mdtanker merged 31 commits intomainfrom
epsg

Conversation

@mdtanker
Copy link
Owner

@mdtanker mdtanker commented Feb 3, 2026

Enable plotting functions for grids of other projections than just EPSG 3031 and 3413. This will add an additional parameter epsg to all user-facing functions, so users can provide either the hemisphere or the EPSG code directly. For all private functions, all hemisphere parameters will be replaced with the epsg parameter. This shouldn't break anything, as hemisphere can be provided as in the past, but internally will be converted to the relevant EPSG code.

This allows plotting functions such as add_coastline, add_simple_basemap, and add_inset to work with other regions.

PolarToolkit will still be focused on polar regions, but allowing some of these plotting functions to work with other regions means the convenient and quick plotting from PolarToolkit can be used in other regions.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 5.18234% with 494 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.48%. Comparing base (1198b33) to head (0c381ba).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/polartoolkit/maps.py 0.00% 282 Missing ⚠️
src/polartoolkit/utils.py 17.91% 110 Missing ⚠️
src/polartoolkit/fetch.py 0.00% 83 Missing ⚠️
src/polartoolkit/profiles.py 0.00% 16 Missing ⚠️
src/polartoolkit/__init__.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #324      +/-   ##
==========================================
- Coverage   13.77%   13.48%   -0.30%     
==========================================
  Files           7        7              
  Lines        4145     4376     +231     
==========================================
+ Hits          571      590      +19     
- Misses       3574     3786     +212     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdtanker mdtanker merged commit 7f56e72 into main Feb 7, 2026
16 of 18 checks passed
@mdtanker mdtanker deleted the epsg branch February 7, 2026 20:11
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.

Offset with non polar stereographic projections Add Scooby for generating user environment and hardware reports

1 participant