Skip to content

Connected Components Mask File SNAP #1513

Description

@jschr00

Hello!

I am currently working on a project which has gone well so far. However at the moment I am struggling with processing connected components files. I am having several issues:

For context, I am processing in a Linux environment, specifically on Ubuntu.

  1. The mask generated has values of uniquely 0 as is shown in the photo below:
Image

HERE IS THE CORRESPONDING CODE (stars in paths are done to cover directory names):
Input data seems to be geocoded. Lookup file not needed.

generate_mask.py /home//mint/30mcc_1/inputs/ifgramStack.h5 --nonzero -o /home/**********/mint/30mcc_1/maskConnComp.h5 --update
input ifgramStack file: /home/
/mint/30mcc_1/inputs/ifgramStack.h5

update mode: ON

  1. output file /home/********/mint/30mcc_1/maskConnComp.h5 already exists.
  2. output file is NOT newer than input dataset: connectComponent.
    run or skip: run.
    calculate the common mask of pixels with non-zero connectComponent value
    [==================================================] 24/24 0s / 0s
    delete exsited file: /home//mint/30mcc_1/maskConnComp.h5
    create HDF5 file: /home/********/mint/30mcc_1/maskConnComp.h5 with w mode
    create dataset /mask of bool in size of (1215, 1086) with compression=None
    finished writing to /home/
    /mint/30mcc_1/maskConnComp.h5
    time used: 00 mins 0.2 secs.

Here is the code for the ifgramStack.h5 output
create HDF5 file /home//mint/30mcc_1/inputs/ifgramStack.h5 with w mode
create dataset /unwrapPhase of <class 'numpy.float32'> in size of (24, 1215, 1086) with compression = None
[==================================================] 20171118_20171130 1s / 0s
create dataset /coherence of <class 'numpy.float32'> in size of (24, 1215, 1086) with compression = None
[==================================================] 20171118_20171130 0s / 0s
create dataset /connectComponent of <class 'numpy.int16'> in size of (24, 1215, 1086) with compression = lzf
[==================================================] 20171118_20171130 1s / 0s
create dataset /wrapPhase of <class 'numpy.float32'> in size of (24, 1215, 1086) with compression = None
[==================================================] 20171118_20171130 0s / 0s
create dataset /date of <class 'numpy.bytes_'> in size of (24, 2)
create dataset /bperp of <class 'numpy.float32'> in size of (24,)
create dataset /dropIfgram of <class 'numpy.bool'> in size of (24,)
add extra metadata: {'PROJECT_NAME': '30mcc_1'}
update metadata due to subset
update LENGTH, WIDTH, Y/XMAX
update/add SUBSET_XMIN/YMIN/XMAX/YMAX: 0/0/1086/1215
update Y/X_FIRST
Finished writing to /home/
**/mint/30mcc_1/inputs/ifgramStack.h5

I believe this may be affecting subsequent steps where I have gotten notifications saying that my generated reference point is not in the connected components mask (phase unwrapping error correction step), and also that input reference point is in a masked out area (reference point step).

I have tried doing many things according to other issues opened, though I am still having errors. I was thinking it might have to do with the data type, though I haven't found the information for which files to change.

When running the configuration without connected components, processing fully completes.

Thank you, and I am happy to send over other information for a proper diagnostic.

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