Skip to content

Releases: sentinel-hub/sentinelhub-py

Version 3.8.3

16 Feb 10:20
c320ff6
Compare
Choose a tag to compare

Changelog:

  • The properties bbox and geometries of BatchRequest no longer raise an exception and instead return None when not defined.
  • BatchSplitter adjusted so it also works for batch requests that only have bbox specified.
  • BBoxCollection has been marked as deprecated.
  • The option to construct a BBox from strings, other BBox objects, and shapely geometries has been deprecated.
  • The string representation of a BBox was marked to be changed in a future update. It will match the repr representation.
  • Many unused minor functions were removed from io_utils, however read_data and write_data now support a few more formats.
  • Some url fetching methods of SHConfig have been marked as deprecated (with hints for replacement).
  • Large improvements to test suite.

Version 3.8.2

31 Jan 13:08
27fff20
Compare
Choose a tag to compare

Changelog:

  • Generalized the CRS class to accept fiona.crs.CRS as input.
  • Added warning to SentinelHubBatch.reprocess_tile, because the service endpoint will be removed.
  • Deprecation warning is triggered for single request input to DownloadClient.download. In future versions only sequences of requests will be supported. A single request will need to be passed as a singleton list or tuple.
  • Deprecated PackageProps class, will be removed in future version.
  • Various improvements to code and tests.

Version 3.8.1

18 Jan 09:51
db020ec
Compare
Choose a tag to compare

Changelog:

  • Added Harmonized Landsat Sentinel collection
  • Due to recent changes the aws module no longer works reliably. We decided to stop maintaining it, but we updated the AWS example notebook on workarounds for issues.
  • Updated BYOC example notebook with information on manual configuration of collections.
  • Updated Large area utilities notebook to show how one can use the obtained BBoxes to download data.
  • Improved BBoxSplitter to allow splitting by size, contributed by @ColinMoldenhauer.
  • Added dataFilter defaults to Batch Statistical (to match regular Statistical requests)
  • Fixed OGC bug with parameters being encoded twice
  • Module type_utils renamed to types
  • Deprecated os_utils module
  • Various minor code and test improvements

Version 3.8.0

06 Oct 10:31
2fbc1d0
Compare
Choose a tag to compare

Changelog:

  • (codebreaking) Switched to newly deployed Catalog 1.0.0. Main changes:
    • Slight changes in structure of results.
    • The query parameter is replaced with filter, which uses the CQL2 language for querying/filtering results.
  • Added utility function statistical_to_dataframe for transforming results of (batch) statistical API to a dataframe. It is located in the new sentinelhub.data_utils module and requires the user to additionally install the pandas package.
  • Fixed conditionals in batch client that caused issues when requesting tiling grid with id 0.
  • Included an example notebook that describes how to obtain response headers. This can be used to access information about PU.
  • Added pre-commit hooks to repository for easier development.
  • Various minor improvements.

Version 3.7.0

16 Aug 12:20
Compare
Choose a tag to compare

Changelog:

  • Official support for Sentinel Hub Batch Statistical API:
    • Implemented SentinelHubBatchStatistical and BatchStatisticalRequest classes to serve as an interface for the API.
    • Implemented monitor_batch_statistical_job and monitor_batch_statistical_analysis utility functions for monitoring batch statistical jobs.
    • Implemented AwsBatchResults utility class for efficient loading of batch results from an S3 bucke.
    • Prepared a tutorial notebook.
    • Various minor improvements of batch-related functionalities and added more tests.
  • Upgrade of download procedure to support better access to information about responses:
    • Implemented DownloadResponse object.
    • Changed the structure of response.json files in cached data to include info about response.
    • Changed the effect of decode_data=False parameter that is passed to DownloadClient.download and DataRequest.get_data methods. It used to provide raw response in bytes but now it provides instances of DownloadResponse object containing raw response, response headers, and more information about a response.
    • Larger changes in the internal structure of download clients.
  • Parameter show_progress is now available for all DataRequest.get_data and DataRequest.save_data method calls.
  • Added SHConfig.__eq__ method that compares object values.
  • Added BBox.apply, Geometry.apply, and BBoxCollection.apply methods.
  • Improved handling of User-Agent headers - SentinelHubDownloadClient now always includes them.
  • Removed references to rate limit headers that don't exist anymore from SentinelHubRateLimit.
  • Changed how the request payer is configured in AwsDownloadClient - parameter RequestPayer="requester" is not hardcoded anymore.
  • Removed deprecated DataSource class, old Landsat DataCollection names, and base_url parameter.
  • Various minor improvements in code, tests, and documentation.

Version 3.6.4

27 Jul 11:04
Compare
Choose a tag to compare

Changelog:

  • Increased minimal Pillow version to 9.2.0 and removed a fallback to rasterio when decoding JP2 images.
  • Various minor improvements in docstrings, example notebooks, and tests.

Version 3.6.3

21 Jun 08:41
Compare
Choose a tag to compare

Changelog:

  • Fixed and issue with missing bufferX and bufferY parameters in BatchSplitter.
  • Updated minimal version of requests package in requirements to avoid issues with failed JSONDecodeError import.
  • Added flake8 style checker for code and notebooks and isort formatting for notebooks.

Version 3.6.2

13 Jun 11:25
Compare
Choose a tag to compare

Changelog:

  • BatchSplitter is now returning bounding boxes with a correct buffer and without numerical errors. This change is code-breaking.
  • Fixed an issue where failed authentication to Sentinel Hub would raise a misleading MissingTokenError. Now a correct error is being raised.
  • Improved parsing of error messages obtained from Sentinel Hub.
  • A few minor improvements.

Version 3.6.1

03 Jun 13:22
Compare
Choose a tag to compare

Changelog:

  • Improvements of Sentinel Hub authentication session sharing:
    • sentinelhub.download.SessionSharingThread can now handle previously undeleted shared memory files and warn about them.
    • Added a high-level utility sentinelhub.download.SessionSharing that ensures thread joining at the end. The tutorial notebook has been updated accordingly.
  • Minor Pylint updates.

Version 3.6.0

27 May 14:32
Compare
Choose a tag to compare

Changelog:

  • Official support for sharing Sentinel Hub authentication session between parallel Python processes:
    • improved interfaces of SentinelHubSession and SentinelHubDownloadClient,
    • implemented utilities sentinelhub.download.SessionSharingThread and sentinelhub.download.collect_shared_session for sharing session with standard Python multiprocessing,
    • added a tutorial notebook explaining the process and providing prototype implementations for different parallelization frameworks.
  • The package is now fully typed and mypy checks are performed in CI.
  • Refactored internal functionalities of SHConfig class.
  • DownloadFailedException now carries an optional instance of requests.RequestException.
  • Removed support for an old prototype EOCloud deployment of Sentinel Hub OGC services.
  • Documentation build improvements - package content pages are now being auto-generated. Some documentation links changed because of that.
  • Various minor improvements and fixes. Contributions by @sebastianclarke and @apazga