Skip to content

Problem with generate_mask.py #1461

@HN-Jiang

Description

@HN-Jiang

Dear all,

I am working on a study area with low coherence. In the invert_network step, I set mintpy.networkInversion.minTempCoh to 0.25. However, when I use view.py to check the resulting maskTempCoh.h5, it shows all values as 1 (no pixels are masked).

I have tried using generate_mask.py to manually adjust the threshold, but regardless of what I set the -m value to (e.g., 0.01 or 0.4), the output maskTempCoh.h5 remains entirely green (all values = 1). Could you please help me identify what I might be doing wrong?

Thank you for your help. Since GitHub does not support uploading .h5 files, I have uploaded the relevant data to Google Drive here

https://drive.google.com/drive/folders/1UTLs7potViJvi7nkImLovmiIWiqKznYS?usp=drive_link

https://drive.google.com/drive/folders/1UTLs7potViJvi7nkImLovmiIWiqKznYS?usp=drive_link

  • view.py temporalCoherence.h5
Image
  • generate_mask.py avgSpatialCoh.h5 -m 0.2 -o maskTempCoh.h5
  • view.py maskTempCoh.h5
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions