diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cb73c1d..fbacede8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.11.2] + +### Fixed +* Patch [227](hyp3_autorift/vend/CHANGES-227.diff) was applied to align the S1 granules velocity description with the + optical products + ## [0.11.1] ### Fixed diff --git a/hyp3_autorift/vend/CHANGES-227.diff b/hyp3_autorift/vend/CHANGES-227.diff new file mode 100644 index 00000000..53202d5f --- /dev/null +++ b/hyp3_autorift/vend/CHANGES-227.diff @@ -0,0 +1,15 @@ +diff --git netcdf_output.py netcdf_output.py +--- netcdf_output.py ++++ netcdf_output.py +@@ -639,10 +639,7 @@ def netCDF_packaging(VX, VY, DX, DY, INTERPMASK, CHIPSIZEX, CHIPSIZEY, SSM, SSM1 + var = nc_outfile.createVariable('v', np.dtype('int16'), ('y', 'x'), fill_value=NoDataValue, + zlib=True, complevel=2, shuffle=True, chunksizes=ChunkSize) + var.setncattr('standard_name', 'land_ice_surface_velocity') +- if pair_type == 'radar': +- var.setncattr('description', 'velocity magnitude from radar range and azimuth measurements') +- else: +- var.setncattr('description', 'velocity magnitude') ++ var.setncattr('description', 'velocity magnitude') + var.setncattr('units', 'meter/year') + var.setncattr('grid_mapping', mapping_var_name) + diff --git a/hyp3_autorift/vend/README.md b/hyp3_autorift/vend/README.md index c6eaf42d..f0f9defd 100644 --- a/hyp3_autorift/vend/README.md +++ b/hyp3_autorift/vend/README.md @@ -66,3 +66,7 @@ We've replaced it with `hyp3_autorift.io.get_topsinsar_config`. from Sentinel-1 pairs that were created using HyP3 autoRIFT versions < 0.9.0, which was released November 2, 2022 9. The changes listed in `CHANGES-223.diff` were applied in [ASFHyP3/hyp3-autorift#223](https://github.com/ASFHyP3/hyp3-autorift/pull/223) were applied to the S1 correction workflow so that the scene's polarization was set correctly +10. The changes listed in `CHANGES-227.diff` were applied in [ASFHyP3/hyp3-autorift#227](https://github.com/ASFHyP3/hyp3-autorift/pull/227) + were applied to align the S1 granules velocity description with the optical products. These changes have been + [proposed upstream](https://github.com/nasa-jpl/autoRIFT/pull/87) and should be applied in the next + `nasa-jpl/autoRIFT` release. diff --git a/hyp3_autorift/vend/netcdf_output.py b/hyp3_autorift/vend/netcdf_output.py index 08060edc..d12a8882 100755 --- a/hyp3_autorift/vend/netcdf_output.py +++ b/hyp3_autorift/vend/netcdf_output.py @@ -639,10 +639,7 @@ def netCDF_packaging(VX, VY, DX, DY, INTERPMASK, CHIPSIZEX, CHIPSIZEY, SSM, SSM1 var = nc_outfile.createVariable('v', np.dtype('int16'), ('y', 'x'), fill_value=NoDataValue, zlib=True, complevel=2, shuffle=True, chunksizes=ChunkSize) var.setncattr('standard_name', 'land_ice_surface_velocity') - if pair_type == 'radar': - var.setncattr('description', 'velocity magnitude from radar range and azimuth measurements') - else: - var.setncattr('description', 'velocity magnitude') + var.setncattr('description', 'velocity magnitude') var.setncattr('units', 'meter/year') var.setncattr('grid_mapping', mapping_var_name)