Skip to content

Releases: ACCESS-Cloud-Based-InSAR/dem-stitcher

dem-stitcher v2.5.2

22 Nov 19:24
9ad04e8
Compare
Choose a tag to compare

Changed

  • Updated environment.yml and pyproject.toml for modern build of wheels
  • Updated github actions to tie to specific version of ASF resuable workflows
  • Included dependabot.yml

dem-stitcher v2.5.1

22 Nov 19:02
59d8763
Compare
Choose a tag to compare

Changed

  • Update merge_tile_datasets_within_extent (formely named merged_tile_datasets) to only read data within provided extents
    • Requires extent (i.e. list[float]) as input now.
  • Internally, swap use of m x n arrays (with total dimensions 2) to the 3 dimensional arrays c x m x n. Specifically, use
    band interleaved by pixel (BIP) format where c is the number of channels. Although the API remains
    unchanged (outputs 2 dimensional array), the intermediate functions are slightly more general and applicable.
    • merged.py - all functions now accept BIP (3d arrays) and return them
    • geoid.py - all functions return and expect BIP (3d arrays) including the input dem array.
  • Improved performance of merge by reading only the extent that is required.
  • Typing for 3.9+
  • Use pyproject.toml for installation.

Added

  • Support for 1/3 arc second 3Dep
  • Tests using golden datasets and mocked tiles/geoid - ensures correctness of transformations

Removed

  • Support for NED1 and 3Dep 1 arcsecond
  • Support for Python 3.7 and 3.8
  • setup.py

dem-stitcher v2.5.0

22 Nov 18:58
831f2c2
Compare
Choose a tag to compare

Added

  • The function get_dem_tile_paths to extract urls or local paths to dem tiles specifying bounds and dem names.
  • Notebook illustrating how to create a vrt file using get_dem_tile_paths.
  • Utilizes get_dem_tile_paths in main stitch_dem for easier testing.
  • Caches dem tile extents loaded from compressed geojson.

Removed

  • driver keyword in stitch_dem.

dem-stitcher v2.4.0

13 Feb 20:18
6168eec
Compare
Choose a tag to compare

Added

  • Included feature for extracting DEMs across datelines
  • Updated merge apis with more descriptive names for more general usage
  • Exceptions to determine valid extents and ensure single dateline crossing
  • Added functions for dateline in dateline.py
  • Tests for added and changed functionality.
  • Integration tests for notebooks.
  • Clarity about driver keyword in stitch_dem in readme, docstrings
  • Ensure overlap of tiles is non-trivial AND polygonal (excludes point and line intersections)
  • Similar check of polygonal type for window reading for better error handling
  • Add merge_nodata_value to merge_tile_datasets, merge_and_transform_dem_tiles, and stitch_dem to allow for fill value of 0. As such, nodata areas within DEM tiles when converted to Ellipsoidal height will be filled in with geoid values. No other values outside of np.nan or 0 permitted.

Changed

  • Moved functions into more logical python file including merge calls into merge.py and tile functions into datasets.py
  • Renamed internal functions for greater clarity and better description of tasks
  • Ensures window reading checks bounds of src raster and does intersection if required to ensure no unexpected rasterio errors. Further, raises error if no overlap.

dem-stitcher v2.3.1

28 Nov 20:58
8dd88fa
Compare
Choose a tag to compare

Fixed

  • Fixed tile urls for glo* and srtm_v3.
  • Include directions in readme for future dem tile updates.
  • Support python 3.11

dem-stitcher v2.3.0

08 Jul 00:18
a325664
Compare
Choose a tag to compare

Added

  • Included Copernicus GLO-90 (as glo_90) and the missing GLO-30 tiles that are available as GLO-90 tiles as glo_90_missing
  • Demonstration on how to fill in glo-30 tiles that are missing with glo-90 tiles.
  • Exceptions that catch: a) no available tiles of specifed DEM as a NoDEMCoverage exception, b) badly specified dem_name as a DEMNotSupported exception and c) extent/bounds not of the form xmin, ymin, xmax, ymax as a ValueError
  • API keyword argument fill_in_glo_30 to fill in glo_30 tiles that are missing, but whose corresponding glo_90 tiles are not.
  • Tests for Exceptions and added datasets
  • Python 3.10 support with matrix in actions added back.

Changed

  • Since AWS registry removed zip, the glo_30 and glo_90 geojsons have precisely the tiles that are available (had to traverse bucket)
  • Notebooks to organize data have been updated

Fixed

  • Fixed #33 i.e. missing glo_30 rasters over Azerbaijan and Armenia by filling in with available glo_90.

dem-stitcher v2.2.0

28 Jun 23:56
4a2f9e0
Compare
Choose a tag to compare

Added

  • Added dst_resolution to specify resolution of output DEM; does not alter origin; can be used to enforce square dimensions if desired
  • Added tests for rio_window.py, stitcher.py, geoid.py, and rio_tools.py; including integration test which is marked
  • Added notebooks related to issues #31 and #32

Changed

  • Returned API to original form such that stitch returns tuple: (dem_array, dem_metadata_dictionary)
  • Github actions now run on tests that are not "integration" tests, so no internet connectivity required
  • Function remove_geoid updated to use non-resampling windowing and warns user if user does not properly set resolution buffer
  • Removed gdal python bindings unrelated to rasterio
  • Updated ISCE notebook

Fixed

  • Fix issues #31 and #32: resampling/translation bug - do not resample unless specified in dst_resolution

dem-stitcher v2.1.1

05 Apr 01:45
f41f2c7
Compare
Choose a tag to compare

Changed

  • dem_sticher can now be installed in a Python 3.7 environment. Support for Python 3.7
    is unlikely to remain long term as most upstream packages have dropped support for it
    and Python 3.7 End Of Life is slated for 27 Jun 2023.

dem-stitcher v2.1.0

31 Mar 06:26
70c91ba
Compare
Choose a tag to compare

Changed

  • dem_sticher.sticher.stitch_dem no longer returns the raster profile and data
    array and instead writes the output stitched DEM to a file as specified by the
    new filepath argument.

Fixed

  • Pixel shifts sometimes seen in stitched output DEMs (see #18)
  • Package data is again included with python wheel distributions,
    which was missing in v2.0.1
  • Properly handle no-data values and geoid bounds.

dem-stitcher v2.0.1

13 Mar 06:24
d879c69
Compare
Choose a tag to compare

Fixed

  • Square dimensions for DEM pixels are now enforced to prevent distorted along polar regions.