You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And these properties are not defined as such for the API:
Vector.ds,
All of additional SatelliteImage attributes,
Raster.crs and Raster.transform.
Also, looking at our geospatial tools, looks like we could add:
Vector.simplify() to simplify/degrade resolution of a Vector.
Make indexing [] possible with boolean ndarrays.
Allow to pass a Mask in Raster.set_mask(),
Make "in_value" and "target_value" attribute name consistent between polygonize and proximity.
Make equal_raster and georeferenced_grid_equal naming more consistent (start with equal for both?)
Automatically load data when calling arithmetic, logical or NumPy operation? (remove some load_data=True in the docs due to this)
Make show() plot on top of same ax by default.
Add clip option to Vector.crop().
A subsample wrapper function directly in the Raster class (allow to return coordinates).
Ensure support of Ufuncs through np.ufunc.reduce and other similar operations,
Rename cropGeom into crop_geom for consistency with other argument syntax,
Streamline main description of Raster and Vector methods and attributes,
Add tests for Mask logical operations and overloaded methods,
Change nodata from list to tuple (needs to be immutable as a property),
Add tests for untested functions (Raster.shift(), Raster.to_xarray(), etc),
Improve general test coverage, in particular checking warnings raised directly by GeoUtils.
Added as_array option to create_mask, as it nows returns a Mask by default. The shape is also always 2D to avoid the squeeze previously used everywhere.
Fixed loading multi-band raster explicitly after instantiation with load(), failed because of how out_shape was defined.
Bug found:
Maximum recursion depth calling np.ma.mean on a Raster.
In doc, array interface: isclose is returning a masked_array instead of Mask?
Cast from Mask to Raster does not work in Mask.proximity, need to modify Raster.from_array?
Fixed coords(grid=True): add more tests
Changed (need to add tests in the test suite):
Defined Raster.__repr__, modified __str__ to be consistent with NumPy,
Set load_data=False as default,
Loading data by default if stats=True is passed to Raster.info(),
Cast array to float automatically in get_nanarray(), otherwise was raising error,
Added overload for proximity and polygonize for Mask,
Changed default parameter of polygonize to "all".
The text was updated successfully, but these errors were encountered:
It looks like we are missing these functions:
Vector.save()
Vector.show()
Vector.__str__()
Vector.__repr__()
And these properties are not defined as such for the API:
Vector.ds
,SatelliteImage
attributes,Raster.crs
andRaster.transform
.Also, looking at our geospatial tools, looks like we could add:
Vector.simplify()
to simplify/degrade resolution of aVector
.[]
possible with booleanndarrays
.Mask
inRaster.set_mask()
,polygonize
andproximity
.equal_raster
andgeoreferenced_grid_equal
naming more consistent (start with equal for both?)load_data=True
in the docs due to this)clip
option toVector.crop()
.subsample
wrapper function directly in theRaster
class (allow to return coordinates).np.ufunc.reduce
and other similar operations,cropGeom
intocrop_geom
for consistency with other argument syntax,Raster
andVector
methods and attributes,Mask
logical operations and overloaded methods,nodata
fromlist
totuple
(needs to be immutable as a property),Raster.shift()
,Raster.to_xarray()
, etc),as_array
option tocreate_mask
, as it nows returns aMask
by default. The shape is also always 2D to avoid thesqueeze
previously used everywhere.load()
, failed because of howout_shape
was defined.Bug found:
np.ma.mean
on aRaster
.isclose
is returning amasked_array
instead ofMask
?Mask
toRaster
does not work inMask.proximity
, need to modifyRaster.from_array
?coords(grid=True)
: add more testsChanged (need to add tests in the test suite):
Raster.__repr__
, modified__str__
to be consistent with NumPy,load_data=False
as default,stats=True
is passed toRaster.info()
,get_nanarray()
, otherwise was raising error,proximity
andpolygonize
forMask
,polygonize
to"all"
.The text was updated successfully, but these errors were encountered: