Skip to content

Releases: KipCrossing/geotiff

0.2.10

23 Aug 00:48
7a9c079
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.9...0.2.10

0.2.9

01 Mar 04:03
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.8...0.2.9

0.2.8

01 Mar 04:00
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.7...0.2.8

0.2.7

29 Jul 05:08
5968d76
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.6...0.2.7

0.2.6

30 Jun 07:12
257e90b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.5...0.2.6

0.2.5

20 Jun 02:42
ab5d7c7
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.4...0.2.5

0.2.4

06 Dec 17:56
f714771
Compare
Choose a tag to compare

Bundle LICENSE file in package

What's Changed

New Contributors

Full Changelog: 0.2.1...0.2.4

0.2.1

18 Jul 23:01
Compare
Choose a tag to compare

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

15 Jul 12:45
Compare
Choose a tag to compare
  • 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

26 Jun 23:09
Compare
Choose a tag to compare

Enhancement: Support older pyproj versions by using epsg:4326 instead of WGS84 as CRS name.