Skip to content

Fix InSAR Product Spec Issue #304 - #361

Open
xhuang-jpl wants to merge 33 commits into
isce-framework:developfrom
xhuang-jpl:fix_prod_spec_345
Open

Fix InSAR Product Spec Issue #304#361
xhuang-jpl wants to merge 33 commits into
isce-framework:developfrom
xhuang-jpl:fix_prod_spec_345

Conversation

@xhuang-jpl

Copy link
Copy Markdown
Contributor

Fix the InSAR product spec issue #304

Xiaodong Huang added 30 commits September 19, 2023 20:40
@hfattahi hfattahi added this to the R05.03.0 milestone Aug 24, 2026

@hfattahi hfattahi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor comment.

Comment on lines 52 to 55
if raster.datatype() == gdal.GDT_Float64:
stats_obj = isce3.math.compute_raster_stats_float64(raster)[0]
else:
stats_obj = isce3.math.compute_raster_stats_float32(raster)[0]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhawkins brought up that this function may not cover 32 bits integer datasets. Let's make sure we are safe

Suggested change
stats_obj = isce3.math.compute_raster_stats_float32(raster)[0]
if raster.datatype() == gdal.GDT_Float32:
stats_obj = isce3.math.compute_raster_stats_float32(raster)[0]
else:
stats_obj = isce3.math.compute_raster_stats_float64(raster)[0]

We still may need to raise an exception for int 64 bits.

@hfattahi
hfattahi self-requested a review September 8, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants