raphaelquast/EOmaps: EOmaps v4.0
Description
A new major release that brings some nice new features, a lot of updates and some outstanding api-changes.
🌩 changes
❗ There are breaking changes to EOmaps v3.x ❗
🌞 For a quick-guide on how to port existing scripts to v4.x see: ⚙️ port script from v3.x to v4.x
🌳 NEW
- ⭐ The Sentinel-2 cloudless WebMap service can now be used via
m.add_wms.s2_cloudless -
🌟 It is now possible to set "coordinate-only" datasets!
- This is particularly useful if you want to manually assign colors
### 🚀 there's a new plot shape!m.set_data(None, [1,2,3], [1,2,3]) m.plot_map(fc=["r", "g", "b"])m.set_shape.rasterA fast way to plot 2D datasets. <details><summary>[click to show] 🔸 details </summary>
- This is particularly useful if you want to manually assign colors
-
it's quite similar to
plt.imshow(e.g. a QuadMesh is used to speed up plotting of 2D datasets) - the differences to
shade_rasterare:- the whole dataset is always plotted (so for very very large datasets
shade_rasteris much faster!) - it supports manual color specifications (
shade_rasterdoes not)
- the whole dataset is always plotted (so for very very large datasets
- the differences between
rectanglesandrasterare:rasterdoes not take the curvature of the edges into accountrasterdetermines the pixel-size based on neighboring pixels,rectanglesallows arbitrary pixel-dimensions
🌈 there have been some major improvements for manual color specifications!
Checkout the 🌎 Customizing the plot section of the docs for details!
Colors can now be set manually with all shapes (except shade shapes) using m.plot_map(fc=[...]) (or facecolor= or color=)!
☁️ minor (non-breaking) changes
- the default
radius_crsfor themarkcallback is now determined based on theradius_crsassigned in the plot-shape ... this definition allows usingm.cb.pick.attach.mark(buffer=3)directly without having to worry about the crs (previouslyin, e.g. the input-crs was used by default) - the background patch of the compass is now by default set to
None
🔨 fixes
- fix issues with manual color specifications for various plot-shapes (e.g. when providing explicit color-arrays via
m.plot_map(color=[...])) - fix issues with shapes close to crs-bounds
- support estimation of different x- and y- radius for 2D datasets
- warn if datapoints are masked or if datapoints are outside the CRS-bounds
- cache shape transformers (so they are not re-initialized all the time)
Files
raphaelquast/EOmaps-v4.0.zip
Files
(29.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:6dba6c2c1523bf6d24036bb53058afab
|
29.6 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/raphaelquast/EOmaps/tree/v4.0 (URL)