Skip to content

Commit

Permalink
docs/dir_structure: add iono example for topsStack & alosStack
Browse files Browse the repository at this point in the history
+ docs/dir_structure:
   - add example file directory structure and corresponding template input file patterns for isce2/topsStack
   - add example template input file patterns for isce2/alosStack & isce2/stripmapStack

+ modify_network: ignore "," in the input --ex-date(12) options, as copied from the template file
  • Loading branch information
yunjunz committed Oct 9, 2024
1 parent d4593b5 commit 20faaa0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
38 changes: 32 additions & 6 deletions docs/dir_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@ $DATA_DIR/GalapagosSenDT128
│   ├── 20141213_20141225
│   │   └── 20141213_20141225.txt
│   └── ...
├── reference
│ ├── data.rsc #generated by prep_isce.py
│   ├── IW1
│   ├── IW1.xml
│   ├── IW2
│   └── IW2.xml
├── ion
│   ├── 20141213_20141225
| │   ├── ion_cal
| | | ├── filt.ion
| | | ├── filt.ion.vrt
| | | ├── filt.ion.xml
| | | ├── raw_no_projection.cor
| | | ├── raw_no_projection.cor.vrt
| | | ├── raw_no_projection.cor.xml
| | | ├── ...
| | └── ...
| ├── 20141213_20150307
| └── ...
├── ion_dates
| ├── 20141213.ion
| ├── 20141213.ion.vrt
| ├── 20141213.ion.xml
| └── ...
├── merged
│   ├── geom_reference
│   │   ├── hgt.rdr
Expand Down Expand Up @@ -55,6 +67,12 @@ $DATA_DIR/GalapagosSenDT128
│   │   ├── ...
│   ├── 20141213_20150307
│ └── ...
├── reference
│ ├── data.rsc #generated by prep_isce.py
│   ├── IW1
│   ├── IW1.xml
│   ├── IW2
│   └── IW2.xml
├── secondarys
│ ├── 20141225
│ │   ├── IW1
Expand All @@ -78,6 +96,9 @@ mintpy.load.baselineDir = $DATA_DIR/GalapagosSenDT128/baselines
mintpy.load.unwFile = $DATA_DIR/GalapagosSenDT128/merged/interferograms/*/filt_*.unw
mintpy.load.corFile = $DATA_DIR/GalapagosSenDT128/merged/interferograms/*/filt_*.cor
mintpy.load.connCompFile = $DATA_DIR/GalapagosSenDT128/merged/interferograms/*/filt_*.unw.conncomp
##---------ionosphere stack (optional):
mintpy.load.ionUnwFile = $DATA_DIR/GalapagosSenDT128/ion/*/ion_cal/filt.ion
mintpy.load.ionCorFile = $DATA_DIR/GalapagosSenDT128/ion/*/ion_cal/raw_no_projection.cor
##---------geometry datasets:
mintpy.load.demFile = $DATA_DIR/GalapagosSenDT128/merged/geom_reference/hgt.rdr
mintpy.load.lookupYFile = $DATA_DIR/GalapagosSenDT128/merged/geom_reference/lat.rdr
Expand Down Expand Up @@ -187,6 +208,8 @@ mintpy.load.baselineDir = $DATA_DIR/KirishimaAlosAT424/baselines
mintpy.load.unwFile = $DATA_DIR/KirishimaAlosAT424/Igrams/*/filt_*.unw
mintpy.load.corFile = $DATA_DIR/KirishimaAlosAT424/Igrams/*/filt_*.cor
mintpy.load.connCompFile = $DATA_DIR/KirishimaAlosAT424/Igrams/*/filt_*.unw.conncomp
##---------ionosphere stack (optional):
mintpy.load.ionUnwFile = $DATA_DIR/KirishimaAlosAT424/ionosphere/*/iono*.filt
##---------geometry datasets:
mintpy.load.demFile = $DATA_DIR/KirishimaAlosAT424/geom_reference/hgt.rdr
mintpy.load.lookupYFile = $DATA_DIR/KirishimaAlosAT424/geom_reference/lat.rdr
Expand Down Expand Up @@ -294,6 +317,9 @@ mintpy.load.baselineDir = $DATA_DIR/NCalAlos2DT169/baseline
mintpy.load.unwFile = $DATA_DIR/NCalAlos2DT169/pairs/*-*/insar/filt_*-*_5rlks_28alks.unw
mintpy.load.corFile = $DATA_DIR/NCalAlos2DT169/pairs/*-*/insar/*-*_5rlks_28alks.cor
mintpy.load.connCompFile = $DATA_DIR/NCalAlos2DT169/pairs/*-*/insar/filt_*-*_5rlks_28alks.unw.conncomp
##---------ionosphere stack (optional):
mintpy.load.ionUnwFile = $DATA_DIR/NCalAlos2DT169/pairs_ion/*-*/ion/ion_cal/filt_ion_*.ion
mintpy.load.ionCorFile = $DATA_DIR/NCalAlos2DT169/pairs_ion/*-*/ion/ion_cal/diff_*.cor
##---------geometry datasets:
mintpy.load.demFile = $DATA_DIR/NCalAlos2DT169/dates_res*/150408/insar/*_5rlks_28alks.hgt
mintpy.load.lookupYFile = $DATA_DIR/NCalAlos2DT169/dates_res*/150408/insar/*_5rlks_28alks.lat
Expand Down
5 changes: 4 additions & 1 deletion src/mintpy/cli/modify_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,12 @@ def cmd_line_parse(iargs=None):
inps.excludeIfgIndex = read_input_index_list(inps.excludeIfgIndex, stackFile=inps.file)

# check: --ex-date(12) options
# and ignore , in the inputs
if inps.excludeDate:
inps.exlcudeDate = ptime.yyyymmdd(inps.excludeDate)
inps.excludeDate = [x.replace(',', '') for x in inps.excludeDate]
inps.excludeDate = ptime.yyyymmdd(inps.excludeDate)
if inps.excludeDate12:
inps.excludeDate12 = [x.replace(',', '') for x in inps.excludeDate12]
inps.excludeDate12 = ptime.yyyymmdd_date12(inps.excludeDate12)

# check: -t / --template option
Expand Down
4 changes: 2 additions & 2 deletions src/mintpy/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ def check_map_projection(inps, metadata, print_msg=True):
msg = 'initiate cartopy map projection: '
if inps.coord_unit.startswith('deg'):
inps.map_proj_obj = ccrs.PlateCarree()
vprint(msg + 'PlateCarree')
print(msg + 'PlateCarree')

elif inps.coord_unit.startswith('meter'):
if 'UTM_ZONE' in metadata.keys():
utm_zone = metadata['UTM_ZONE']
inps.map_proj_obj = ccrs.UTM(utm_zone)
vprint(msg + f'UTM zone {utm_zone}')
print(msg + f'UTM zone {utm_zone}')

# check --lalo-label (works for PlateCarree only)
if inps.lalo_label:
Expand Down

0 comments on commit 20faaa0

Please sign in to comment.