Releases: KipCrossing/geotiff
Releases · KipCrossing/geotiff
0.2.10
What's Changed
- Docstring adjustments and pre-commit update, support Python3.11 by @Zeitsperre in #65
- Breaking change with new zarr by @KipCrossing in #64
- Update tifffile>=2023.4.12 in requirements.txt by @doyled-it in #66
- Fix typing by @KipCrossing in #67
New Contributors
- @doyled-it made their first contribution in #66
Full Changelog: 0.2.9...0.2.10
0.2.9
0.2.8
What's Changed
- fix invalid zarr packaging requirement by @fmigneault in #59
New Contributors
- @fmigneault made their first contribution in #59
Full Changelog: 0.2.7...0.2.8
0.2.7
What's Changed
- Add a MANIFEST.in file, docs typo fixes by @Zeitsperre in #47
- Add precommit configuration by @Zeitsperre in #48
- Tifffile fix by @KipCrossing in #51
Full Changelog: 0.2.6...0.2.7
0.2.6
What's Changed
- Add dev recipe and update requirements by @Zeitsperre in #43
Full Changelog: 0.2.5...0.2.6
0.2.5
What's Changed
- add conda installation instructions by @Zeitsperre in #39
- Cheeky print statement by @king-millez in #40
New Contributors
- @Zeitsperre made their first contribution in #39
- @king-millez made their first contribution in #40
Full Changelog: 0.2.4...0.2.5
0.2.4
Bundle LICENSE file in package
What's Changed
- Adamfuller zz patch 1 by @adamfuller-zz in #29
- fixed typo in README.md by @MartinKist in #31
- Update README.md by @RichardScottOZ in #32
- fixed typos, changed some punctuation by @MartinKist in #33
- License bundle by @KipCrossing in #37
- remove cmdclass classes by @KipCrossing in #38
New Contributors
- @adamfuller-zz made their first contribution in #29
- @MartinKist made their first contribution in #31
- @RichardScottOZ made their first contribution in #32
Full Changelog: 0.2.1...0.2.4
0.2.1
Adds aszarr
param to the read_box()
method:
def read_box(
self,
bBox: BBox,
outer_points: Union[bool, int] = False,
aszarr: bool = False,
) -> Union[np.ndarray, zarr.Array]:
"""Reads a boxed sections of the geotiff to a zarr/numpy array
Args:
bBox (BBox): A bounding box
outer_points (Union[bool, int]): Takes an int (n) that gets extra n layers of points/pixels that directly surround the bBox. Defaults to False.
safe (bool): If True, returns a zarr array. If False, forces a returns as a numpy array by putting the data into memory. Defaults to False.
Returns:
np.ndarray: zarr array of the geotiff file
"""
((x_min, y_min), (x_max, y_max)) = self.get_int_box(
bBox, outer_points=outer_points
)
tiff_array = self.read()
boxed_array = tiff_array[y_min:y_max, x_min:x_max]
if aszarr:
return zarr.array(boxed_array)
return np.array(boxed_array)
0.2.0
- new
as_crs
param for specifying the epsg crs to convert into. defaults to 4326 - new
band
param to designate what page/band to query. Defaults to 0. closes #26 - Closed #11
- feature:
get_coord_arrays
method that returns the x_coords and y_coords. Closes #21 - remove pycrs dep
- adds community docs
- updates README with new features
- abstracts many attributes to properties for safety
- update tests with more test files
0.1.9
Enhancement: Support older pyproj versions by using epsg:4326
instead of WGS84
as CRS name.