π updates
β EOmaps now properly handles encoded datasets!
- This saves a lot of memory and provides a huge speedup when plotting integer-encoded datasets!
- If you plot GeoTIFFs or NetCDFs with the functions `Maps.read_data`, `Maps.from_file` or `m.new_layer_from_file`, the data is now kept in the encoded dtype and conversions are only performed "on demand" (e.g. when adding colorbars or in pick-callbacks)
- (if you really want to immediately convert all data-values, use `mask_and_scale=True` )
- The encoding information can be get/set via `m.data_specs.encoding` or `m.set_data_specs(encoding=...)`
python
m = Maps()
m.set_data(data=[1,2,3], xcoord=[1,2,3], ycoord=[1,2,3], encoding=dict(scale_factor=0.01, add_offset=1))
the "decoding" of the values is evaluated via "add_offset" + "scale_factor" * x