Recent Releases of https://github.com/asfhyp3/hyp3-lib
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v4.0.0
Removed
- Remove code that was moved to
hyp3-gammagetParameter.pymakeAsfBrowse.pysystem.pyand testsbyteSigmaScale.pymake_cogs.pyand testsraster_boundary2shape.pypar_s1_slc_single.pySLC_copy_S1_fullsw.pycreateAmp.pysaa_func_lib.py
- Python
Published by tools-bot about 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.2.0
Added
demsubmodule using an updated version of the HyP3-Gamma COP-30 DEM stitching functionality to facilitate DEM download and stitching for multiple HyP3 workflows.
- Python
Published by tools-bot over 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.1.4
Added
- The
static-analysisGithub Actions workflow now includesmypyfor type checking.
- Python
Published by tools-bot over 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.1.3
Changed
- The
static-analysisGithub Actions workflow now usesruffrather thanflake8for linting.
- Python
Published by tools-bot over 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.1.2
Fixed
- Support Python 3.13 by replacing the
cgimodule with theemail.messagemodule as described in PEP 594. Fixes https://github.com/ASFHyP3/hyp3-lib/issues/300.
- Python
Published by tools-bot over 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.1.1
Fixed
- Pin Python version to
<3.13because the standard librarycgimodule has been removed in Python 3.13. See https://github.com/ASFHyP3/hyp3-lib/issues/300.
- Python
Published by tools-bot over 1 year ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.1.0
Removed
- Support for Python 3.8 and 3.9 has been dropped, 3.10 is now the minimum version.
- The
sixpackage has been dropped as a dependency as it's no longer used since we don't support Python 2 anymore.
- Python
Published by tools-bot about 2 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v3.0.0
Changed
hyp3libnow uses asrclayout per this recommendation.hyp3libnow only usespyproject.tomlfor package creation now thatsetuptoolsrecommends not using setup.py.- Updated GitHub Actions to current HyP3 standards.
- Updated formatting using Ruff to pass flake8 check.
Remove
- Support for Python 3.7 and 3.8 has been dropped in line with NumPy and the larger scientific python ecosystem, as described in NEP-0029 and SEPC-0000
- All hyp3lib functionality not currently being used by one of these GitHub orgs: ASFHyP3, asfadmin, ASFOpenSARLab, access-cloud-based-insar, dbekaert, ASFBinderRecipes, or insarlab. For a full list of the deleted files, see here.
- Removed now unused dependencies from
pyproject.tomlandenvironment.yml.
- Python
Published by tools-bot over 2 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v2.0.2
Fixed
- Install
builddependency to fixdistributeaction.
- Python
Published by tools-bot over 2 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v2.0.1
Fixed
distributeaction to use updated version similar tohyp3-sdk
- Python
Published by tools-bot over 2 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v2.0.0
Added
- Added warning to
README.mdthat use of this repository is no longer recommended until thev3.0.0release. fetch.download_filenow supports Bearer authentication via a newtokenparameter ### Changedget_orb.downloadSentinelOrbitFilenow queries the new Copernicus Data Space Ecosystem for theESAprovider. A newesa_credentialsparameter must be provided when using theESAprovider.
- Python
Published by tools-bot over 2 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.7.0
Removed
- Python 3.6 is no longer supported
Fixed
JSONDecodeErroringet_orb._get_esa_orbit_url
- Python
Published by tools-bot over 4 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.8
Changed
conda-env.ymlhas been renamed toenvironment.ymlin-line with community practicescene.get_download_urlnow returns sentinel1.asf.alaska.edu URLs rather than cloudfront.net URLs
- Python
Published by tools-bot about 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.7
Added
- Optional
authparameter tofetch.download_fileto provide basic auth username/password for the download url
Changed
fetch.download_filenow uses content disposition header when available to determine filenames- The
get_orbmodule now leverages the Copernicus Sentinels POD Data Hub API instead of the deprecated qc.sentinel1.eo.esa.int API
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.6
Changed
- GeoTIFFs generated by
rtc2color.rtc2colornow haveNoData Value=0for each band
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.5
Changed
- COGs generated by
make_cogs.cogify_filenow include overviews and have the sameNoDatavalue as the input file
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.4
Changed
- Enabled multi-threaded compression in
make_cogs.cogify_file
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.3
Changed
ingest_S1_granule.ingest_S1_granule: extent flag parameter of multilookMLI is now set when multi-looking S1 data so that partial edge pixels will be included in the output
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.2
Changed
fetch.download_filewill now retry onHTTP 502responseshyp3lib.get_demis now configured to pull from the ASF DEM heap in the us-west-2 AWS region by default.- Defaults may still be overridden by providing a custom config file at
~/.hyp3/get_dem.cfg.
- Defaults may still be overridden by providing a custom config file at
hyp3lib.apply_wb_maskmask location is now https://asf-dem-west.s3.amazonaws.com/WATER_MASK
- Python
Published by tools-bot over 5 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.1
Changed
- Revised the description of the red band in the RGB Decomposition readme
- Updated
scene.SENTINEL_DISTRIBUTION_URLwith new CloudFront domain name
- Python
Published by tools-bot almost 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.6.0
Added
- Methodology documentation of our RGB Decomposition images created from dual-pol RTC products
- Helper functions for HyP3v2 entrypoints
hyp3lib.awsfor working with AWShyp3lib.fetch.write_credentials_to_netrc_fileto write a set of credentials to a~/.netrcfilehyp3lib.imagefor working with imageshyp3lib.scenefor working with Sentinel-1 sceneshyp3lib.utilfor small utility functions
hyp3lib.system.isce_versionto attempt to determine the ISCE version installed
Fixed
hyp3lib.apply_wb_masknow pulls the base masks from AWS instead of a local directory for portability
Changed
- Water mask "creation" functions have been merged to
hyp3lib.apply_wb_mask.get_water_mask. These are internal helper functions and not expected to impact users
- Python
Published by tools-bot almost 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.5.0
Added
- Documented contribution guidelines in
CONTRIBUTING.md get_dem.get_demhas a newdem_typeparameter with options ofutm(default),latlon, andisce
Changed
- Requires python >= 3.6
S1_OPOD_veccalls to apply S1 state vectors to SLC products are now logged. Logging was already in place for GRD products.- Configuration of the
hyp3lib.get_demmodule has seen the following changes:- The module will attempt to load
~/.hyp3/get_dem.cfg; if not found it will loadhyp3lib/etc/config/get_dem.cfg. get_dem.cfgmust be a space-delimited file of the form<dem_name> <location> <epsg_code><location>may be either a local path (e.g./foo/bar/) or a url prefix (e.g.https://foo.com/bar/). S3 prefixes are no longer supported (e.g.s3://foo/bar/).- Shapefiles describing each DEM's coverage are no longer packaged with hyp3lib. They must now be provided at
<location>/coverage/<dem_name>_coverage.shp.
- The module will attempt to load
Removed
- Removed
hyp3lib.raster_boundary2shape.raster_metadatabecause it was an exact duplicate ofhyp3lib.asf_time_series.rater_metadata - Removed
get_dem.get_ISCE_demandget_dem.get_ll_dem. This functionality is now exposed via the newdem_type='isce'anddem_type='latlon'options inget_dem.get_dem
- Python
Published by tools-bot almost 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.4.1
Added:
get_orb.downloadSentinelOrbitFile: neworbit_typesargument to to specify a tuple of orbit types to search for, e.g.('AUX_POEORB', 'AUX_RESORB')
Changed:
ingest_S1_granule,par_s1_slc_single: errors thrown byS1_OPOD_vecwhen applying orbit files are now raised rather than caught and ignoredget_orb.downloadSentinelOrbitFile: failures fetching orbits are now logged as warnings and do not include a stack traceget_orb.get_orbit_url: removed padding on granule start/end times for ESA API searches per example at https://qc.sentinel1.eo.esa.int/doc/api/
- Python
Published by jhkennedy almost 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.4.0
Added:
hyp3lib.OrbitDownloadErrorexception that will be raised for fetching orbit file problemshyp3lib.fetchmodule with utilities for fetching thing from external endpoints- Provides a generic
download_fileutility for downloading files from URLs
- Provides a generic
orbit_filekeyword argument tohyp3lib.ingest_S1_granuleandhyp3lib.par_s1_slc_singleto skip fetching an already downloaded orbit fileproviderskeyword argument tohyp3lib.downloadSentinelOrbitFileto specify the providers you'd like to check for orbit files, in order of preferencehyp3lib.get_orb.get_orbit_urlwhich will determine the OPOD orbit file url for a granuleget_orb.pyentrypoint now allows you to download to a specific directory and specify the providers to use in order of preference
Changed:
- Unrestricted
gdalfrom2.*inconda-env.ymlbecause there appears to be no GDAL 2 specific code inhyp3lib
Removed:
- Unused
par_s1_slc_single.pyentrypoint hyp3lib.get_orbhelper functions that are unused outside ofget_orb:getPageContentsESA,getOrbitFileESA,getPageContents(ASF),findOrbFile(ASF),getOrbFile(ASF) have all been merged intoget_orbit_urldateStr2dateTimeas been removedfetchOrbitFilehas been eliminated in favor ofhyp3lib.fetch.download_filedownloadSentinelOrbitFileProviderfunctionality has been merged intodownloadSentinelOrbitFile
- Python
Published by jhkennedy almost 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.0.0
This is a significant refactor of hyp3-lib into a pip installable package called hyp3lib.
NOTE: There are significant changes to the overall repository structure and this will break all existing HyP3 workflows!
Removed
- Any official python 2 support (Note: this version will likely still work with python 2, but future versions are not expected to)
Added
- A packaging and testing structure -- now
pipinstallable and testing is done viapytestandtox hyp3lib.draw_polygon_on_rasterhas been included from the depreciatedpython_data_utilshyp3lib.get_asfhas been included from the (now) depreciatedasf_api_assistant- A
mkdir_pfunction has been added tohyp3lib.file_subroutinesthat will create a directory, and all parent directories as needed (works like unixmkdir -p)
Changed
- All python modules have the
from __future__ import print_function, absolute_import, division, unicode_literalsimports added to make python 2 behave more like python 3 (NOTE: Python 2 is not longer officially supported, but it should work for this version) - All of
hyp3-lib/srcis now contained in thehyp3libpackage - Any "script" in in hyp3-lib has been turned into an entrypoint with the same name and should mostly function
identically if
hpy3libin installed. This includes:apply_wb_mask.pybyteSigmaScale.pycopy_metadata.pycreateAmp.pycutGeotiffsByLine.pycutGeotiffs.pydraw_polygon_on_raster.pydem2isce.pyenh_lee_filter.pyextendDateline.pygeotiff_lut.pyget_bounding.pygetDemFor.pyget_asf.pyget_dem.pyget_orb.pyiscegeo2geotif.pymake_arc_thumb.pymakeAsfBrowse.pymakeChangeBrowse.pymake_cogs.pymakeColorPhase.pymakeKml.pyoffset_xml.pypar_s1_slc_single.pyps2dem.pyraster_boundary2shape.pyrasterMask.pyresample_geotiff.pyrtc2colordiff.pyrtc2color.pysimplify_shapefile.pySLC_copy_S1_fullSW.pysubset_geotiff_shape.pytileList2shape.pyutm2dem.pyverify_opod.py
- Config files are packaged and accessible programmatically from
os.path.join(os.path.dirname(hyp3lib.etc.__file__), "config") - The
repackage_into_cogs.shscript has been moved intohyp3lib/etc/binand will be distributed as package data. You can get the location programmatically viaos.path.abspath(os.path.join(os.path.dirname(hyp3lib.etc.__file__), "bin"))
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.1.0
Added
GC_map_modbash script, which is used by a few science codes (this has been translated to bash from tcsh)hyp3lib.systemmodule for getting system information needed by the science codes- includes a
gamma_versionfunction which will attempt to determine and validate the GAMMA software version
- includes a
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.3.0
Changed:
- Requires
pyproj>=2 makeAsfBrowse.py- now only makes a single
.pngfile at the formally_large.pngresolution (by default) as small browse images had little user value - CLI includes a
-n/--nearest-neighborargument to switch from GDAL's cubic interpolation to to nearest neighbor when resampling GeoTIFFs. makeAsfBroseAPI includes awith=2048keyword argument and the CLI includes a-w/--widthto set the browse image width
- now only makes a single
make_cogs.pyno longer includes overviews in cogified files because HyP3's products are packaged in a.zipfile preventing overviews from being accessed over the web. This change reduces our output GeoTIFF's by ~25%make_cogfunction that was only used internally has been renamed tocogify_fileto be inline with thecogify_dirfunction provided
Removed:
get_dem.py'stransform_boundsandtransform_pointfunctions that were only used internally have been removed because they are no longer relevant with thepyprojupgrade
Fixed:
- Coordinate transformations in
get_demnow utilize thepyproj>=2syntax instead of the depreciated and brokenpyproj<2syntax
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.2.3
Fixed:
get_dem.pywill raise an exception if it cannot determine the NoData value for the DEM.
Changed:
get_dem.pywill determine the correct NoData value forSRTMGL3DEMs
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.2.2
Fixed:
rtc2color.pywas applying the cleanup threshold differently to amplitude and power data, causing a loss of blue color, which has now been fixed.
Changed:
rtc2color.pyno longer performs calculations with thefloat16data type, which was selected for memory optimization, and instead uses the nativefloat32type. Similar memory optimizations have been achieved by refactoring and leveraging numpy, with an added benefit of a 6x speedup.
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.2.1
Added:
DemError,ExecuteError, andGeometryError(subclasses of the genericException) for more targeted error handling
Fixed:
- Updated the
ps2dem.pyto handle the GAMMA 2019create_dem_parinterface - Removed GIMP, REMA, and EU DEMs from the default config (Note: they are still available by editing the default config) due to many failures associated with these DEMs
- No library functions will raise a
SystemExitand will some subclass ofException, as would be expected of a library, so that errors can be handled by the calling app - execute raises a
hyp3lib.ExecuteErrorinstead of a genericExceptionfor more targeted error handling get_asf.pywill not fail silently anymore.
- Python
Published by jhkennedy about 6 years ago
https://github.com/asfhyp3/hyp3-lib - HyP3-lib v1.2.0
Added
metadata.add_esa_citationto add aESA_citation.txtfile to a directoryexceptions.GranuleErrorfor raising issues with granules
- Python
Published by jhkennedy about 6 years ago