Releases: sentinel-hub/sentinelhub-py
Releases · sentinel-hub/sentinelhub-py
Version 3.8.3
Changelog:
- The properties
bbox
andgeometries
ofBatchRequest
no longer raise an exception and instead returnNone
when not defined. BatchSplitter
adjusted so it also works for batch requests that only havebbox
specified.BBoxCollection
has been marked as deprecated.- The option to construct a
BBox
from strings, otherBBox
objects, andshapely
geometries has been deprecated. - The string representation of a
BBox
was marked to be changed in a future update. It will match therepr
representation. - Many unused minor functions were removed from
io_utils
, howeverread_data
andwrite_data
now support a few more formats. - Some
url
fetching methods ofSHConfig
have been marked as deprecated (with hints for replacement). - Large improvements to test suite.
Version 3.8.2
Changelog:
- Generalized the
CRS
class to acceptfiona.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
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 totypes
- Deprecated
os_utils
module - Various minor code and test improvements
Version 3.8.0
Changelog:
- (codebreaking) Switched to newly deployed Catalog 1.0.0. Main changes:
- Slight changes in structure of results.
- The
query
parameter is replaced withfilter
, 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 newsentinelhub.data_utils
module and requires the user to additionally install thepandas
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
Changelog:
- Official support for Sentinel Hub Batch Statistical API:
- Implemented
SentinelHubBatchStatistical
andBatchStatisticalRequest
classes to serve as an interface for the API. - Implemented
monitor_batch_statistical_job
andmonitor_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.
- Implemented
- 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 toDownloadClient.download
andDataRequest.get_data
methods. It used to provide raw response in bytes but now it provides instances ofDownloadResponse
object containing raw response, response headers, and more information about a response. - Larger changes in the internal structure of download clients.
- Implemented
- Parameter
show_progress
is now available for allDataRequest.get_data
andDataRequest.save_data
method calls. - Added
SHConfig.__eq__
method that compares object values. - Added
BBox.apply
,Geometry.apply
, andBBoxCollection.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
- parameterRequestPayer="requester"
is not hardcoded anymore. - Removed deprecated
DataSource
class, old LandsatDataCollection
names, andbase_url
parameter. - Various minor improvements in code, tests, and documentation.
Version 3.6.4
Changelog:
- Increased minimal
Pillow
version to9.2.0
and removed a fallback torasterio
when decoding JP2 images. - Various minor improvements in docstrings, example notebooks, and tests.
Version 3.6.3
Changelog:
- Fixed and issue with missing
bufferX
andbufferY
parameters inBatchSplitter
. - Updated minimal version of
requests
package in requirements to avoid issues with failedJSONDecodeError
import. - Added
flake8
style checker for code and notebooks andisort
formatting for notebooks.
Version 3.6.2
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
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
Changelog:
- Official support for sharing Sentinel Hub authentication session between parallel Python processes:
- improved interfaces of
SentinelHubSession
andSentinelHubDownloadClient
, - implemented utilities
sentinelhub.download.SessionSharingThread
andsentinelhub.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.
- improved interfaces of
- 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 ofrequests.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