|
49 | 49 | prep_aria.py -t SanFranSenDT42.txt
|
50 | 50 | prep_aria.py -s ../stack/ -d ../DEM/SRTM_3arcsec.dem -i '../incidenceAngle/*.vrt'
|
51 | 51 | prep_aria.py -s ../stack/ -d ../DEM/SRTM_3arcsec.dem -i '../incidenceAngle/*.vrt' -a '../azimuthAngle/*.vrt' -w ../mask/watermask.msk
|
| 52 | + prep_aria.py -s ../stack/ -d ../DEM/SRTM_3arcsec.dem -i '../incidenceAngle/*.vrt' --set '../stack/setStack.vrt' --tropo '../stack/troposphereTotal/HRRR_stack.vrt' --iono '../stack/ionStack.vrt' |
52 | 53 |
|
53 | 54 | # download / extract / prepare inteferograms stack from ARIA using ARIA-tools:
|
54 |
| - # reference: https://github.com/aria-tools/ARIA-tools |
55 |
| - ariaDownload.py -b '37.25 38.1 -122.6 -121.75' --track 42 |
56 |
| - ariaTSsetup.py -f 'products/*.nc' -b '37.25 38.1 -122.6 -121.75' --mask Download --num_threads 4 --verbose |
| 55 | + ariaDownload.py --track 71 --bbox "34.21 34.31 -118.60 -118.43" --start 20240101 --end 20240301 |
| 56 | + ariaTSsetup.py -f "products/*.nc" --bbox "34.21 34.31 -118.60 -118.43" --mask Download --num_threads 4 --layers "solidEarthTide, troposphereTotal, ionosphere" --tropo_models HRRR |
| 57 | + prep_aria.py -s stack -d DEM/glo_90.dem -i incidenceAngle/*.vrt -a azimuthAngle/*.vrt -w mask/esa_world_cover_2021.msk --set stack/setStack.vrt --tropo stack/troposphereTotal/HRRRStack.vrt --iono stack/ionoStack.vrt |
57 | 58 | """
|
58 | 59 |
|
59 | 60 | def create_parser(subparsers=None):
|
@@ -106,6 +107,16 @@ def create_parser(subparsers=None):
|
106 | 107 | help='Name of the azimuth angle file.')
|
107 | 108 | geom.add_argument('-w','--water-mask', dest='waterMaskFile', type=str,
|
108 | 109 | help='Name of the water mask file')
|
| 110 | + |
| 111 | + # correction layers: troposphereTotal, ionosphere, solidEarthTides |
| 112 | + corr = parser.add_argument_group('corrections') |
| 113 | + corr.add_argument('-ct', '--tropo', dest='tropoFile', type=str, |
| 114 | + help='Name of the Troposhere Delay stack file', default=None) |
| 115 | + corr.add_argument('-ci', '--iono', dest='ionoFile', type=str, |
| 116 | + help='Name of the Ionosphere Delay stack file', default=None) |
| 117 | + corr.add_argument('-cs', '--set', dest='setFile', type=str, |
| 118 | + help='Name of the Solid Earth Tides stack file', default=None) |
| 119 | + |
109 | 120 | return parser
|
110 | 121 |
|
111 | 122 |
|
@@ -146,10 +157,14 @@ def cmd_line_parse(iargs = None):
|
146 | 157 | # search for wildcard pattern
|
147 | 158 | fnames = glob.glob(iDict[key]) if iDict[key] else []
|
148 | 159 |
|
149 |
| - # user the first element if more than one exist |
| 160 | + # return the first element if more than one exist |
| 161 | + # except for tropo, for which multiple inputs could be passed |
150 | 162 | if len(fnames) > 0:
|
151 |
| - iDict[key] = fnames[0] |
152 |
| - print('{k:<{w}} : {f}'.format(k=key, w=max_digit, f=fnames[0])) |
| 163 | + if 'tropo' not in key: |
| 164 | + iDict[key] = fnames[0] |
| 165 | + else: |
| 166 | + iDict[key] = fnames |
| 167 | + print('{k:<{w}} : {f}'.format(k=key, w=max_digit, f=iDict[key])) |
153 | 168 |
|
154 | 169 | elif key in required_ds_keys:
|
155 | 170 | # raise exception if any required DS is missing
|
|
0 commit comments