Skip to content

Releases: chjch/pylusat

v0.5.8

15 Jun 19:33
Compare
Choose a tag to compare

Updated

  • gridify: The function now covers the input GeoDataFrame's extent based on
    a (minimum) bounding box whose horizontal and vertical spans can be divided
    by the cell size (cell_x and cell_y) without remainder.
    Previously, the extent of the output grid is exactly the same as the input
    GeoDataFrame's extent.

v0.5.7

20 Oct 21:20
Compare
Choose a tag to compare

Updated

  • RasterManager: The class can take both a file path and a rasterio.io.DatasetReader as input.
  • combine: Reflects the change in RasterManager.

v0.5.6

03 Oct 02:56
Compare
Choose a tag to compare

0.5.6

Added

  • Add Examples to docstrings, which can be rendered by Sphinx's autodoc.

v0.5.5

02 Sep 22:30
Compare
Choose a tag to compare

Fixed



  • RasterManager: In match_extent method, dtype of the output was fixed as
 'int32' previously.
 Changed to use the dtype of the RasterManager.

v0.5.4

26 Aug 20:34
Compare
Choose a tag to compare

Added

  • combine function to the geotools module.

Updated

  • RasterManager
    • Added a match_extent method that can match the union of
      the extent of the self and the other raster.
    • rescale now returns MemoryFile of Rasterio.
  • gridify has been moved from utils module to geotools module.

v0.5.3

20 Jul 19:43
Compare
Choose a tag to compare

0.5.3

2022-07-20

Updated

  • RasterManager - Added a rescale method that can change the resolution to
    a specified cell size.

Improved

  • RasterManager - Instantiate RasterManager object by passing a rasterio
    dataset, which allows to chain multiple operations, e.g., reproject_vrt and
    rescale.

Added

  • Tests for RasterManager class.

v0.5.2

29 May 18:44
Compare
Choose a tag to compare

Fixed

  • zonal_stats_raster - fixed issues with the function when raster projection
    and GeoDataFrame projection are not the same by fixing the backend class
    RasterManager

Updated

  • Updated the license

v0.5.1

29 May 01:32
Compare
Choose a tag to compare

Improved

  • Change test framework to pytest to work with GitHub Actions for continuous
    integration (CI).

Updated

  • Change RasterManager and distance.to_cell from using gdal methods to
    rasterio methods.

v0.5.0

25 May 03:09
Compare
Choose a tag to compare

Added

  • test for zonal_stats_raster
  • RasterManager - This class is similar to the GeoDataFrameManager in pylusat.base. It manages the basic properties and methods of a raster dataset, such as wkt, srs, reproject(), to_array().

Removed

  • utils.read_raster - This function is replaced by the method in RasterManager.

Improved

  • zonal_stats_raster - This function now will compare the spatial reference system of the zone_gdf and the raster. If they are not the same, the function will attempt to Warp (reproject) the raster to match the spatial reference of zone_gdf.

v0.4.0

26 Apr 21:09
Compare
Choose a tag to compare
add gridify function in utils