opera-adt / disp-s1

OPERA Displacement workflows
Other
5 stars 7 forks source link

Browse image #22

Closed LiangJYu closed 9 months ago

LiangJYu commented 10 months ago

This PR adds the the ability to generate png files for the datasets in an unw.nc file. browse_image.py can now by either function call or command line (argparse help below).

$ python browse_image.py -h
usage: browse_image.py [-h] [-o OUT_FNAME] [-i IN_FNAME] [-n DATASET_NAME] [-m MAX_IMG_DIM]

Create browse images for displacement products from command line

options:
  -h, --help            show this help message and exit
  -o OUT_FNAME, --out-fname OUT_FNAME
                        Optional path to output png file (default: None)
  -i IN_FNAME, --in-fname IN_FNAME
                        Path to input NetCDF file (default: None)
  -n DATASET_NAME, --dataset-name DATASET_NAME
                        Name of dataset to plot from NetCDF file (default: None)
  -m MAX_IMG_DIM, --max-img-dim MAX_IMG_DIM
                        Maximum dimension allowed for either length or width of browse image (default: 2048)

Sample products from 20221119_20221201.unw.nc from /u/aurora-r0/staniewi/dev/beta-delivery/delivery_data_full/golden_output/historical: unwrapped phase 20221119_20221201 unw unwrapped_phase connected components 20221119_20221201 unw connected_component_labels temporal coherence 20221119_20221201 unw temporal_coherence interferometric correlation 20221119_20221201 unw interferometric_correlation persistent scatterer mask 20221119_20221201 unw persistent_scatterer_mask