Hello,
I am running MintPy on a stack of ALOS-1 acquisitions processed by stripmapStack in ISCE2. I first (successfully) run prep_isce as follows:
prep_isce.py -f "/volumes/sarmem/ALOS/ascending/Igrams/*/filt_*.unw" -m /Volumes/SARmem/ALOS/ascending/Igrams/20070211_20070814/referenceShelve/data.db -b /volumes/sarmem/ALOS/ascending/baselines/ -g /volumes/sarmem/ALOS/ascending/geom_reference/
though notice that the above takes a metafile from an individual interferogram, since I did not have a referenceShelve/data.dat directory for some reason (??).
After that, I ran:
smallbaselineApp.py alos_ascending.cfg
where alos_ascending.cfg contains the following text:
# vim: set filetype=cfg:
##------------------------------- ISCE/stripmapStack OPTIONS ------------------##
isce.processor = stripmap #[stripmapStack, topsStack]
isce.demSNWE = 19 20 -100 -98 #[S, N, W, E] in degree
isce.demFile = /volumes/sarmem/alos/ascending/dem/demLat_N19_N20_Lon_W100_W098.dem.wgs84
isce.azimuthLooks = 10 # default in stripMapStack
isce.rangeLooks = 10 # they have in template 8 - 10 is default
isce.maxTempBaseline = 400 # ? 10000 is default
isce.maxPerpBaseline = 200 # ? 5000 is default
isce.unwrapMethod = snaphu
isce.filtStrength = 0.8 # 0.8 is default - they have .5 in template
isce.applyWaterMask = yes
##------------------------------- mintpy OPTIONS -------------------------------##
## load_data.py -H to check more details and example inputs.
mintpy.load.processor = isce
##---------for ISCE only:
mintpy.load.metaFile = /Volumes/SARmem/ALOS/ascending/Igrams/20070211_20070814/referenceShelve/data.rsc
mintpy.load.baselineDir = /volumes/sarmem/alos/ascending/baselines
##---------interferogram datasets:
mintpy.load.unwFile = /volumes/sarmem/alos/ascending/Igrams/*/filt_*.unw
mintpy.load.corFile = /volumes/sarmem/alos/ascending/Igrams/*/filt_*.cor
mintpy.load.connCompFile = /volumes/sarmem/alos/ascending/Igrams/*/filt_*.unw.conncomp
##---------geometry datasets:
mintpy.load.demFile = /volumes/sarmem/alos/ascending/geom_reference/hgt.rdr
mintpy.load.lookupYFile = /volumes/sarmem/alos/ascending/geom_reference/lat.rdr
mintpy.load.lookupXFile = /volumes/sarmem/alos/ascending/geom_reference/lon.rdr
mintpy.load.incAngleFile = /volumes/sarmem/alos/ascending/geom_reference/los.rdr
mintpy.load.azAngleFile = /volumes/sarmem/alos/ascending/geom_reference/los.rdr
mintpy.load.shadowMaskFile = /volumes/sarmem/alos/ascending/geom_reference/shadowMask.rdr
mintpy.load.waterMaskFile = /volumes/sarmem/alos/ascending/geom_reference/waterMask.rdr
mintpy.load.bperpFile = None
mintpy.reference.lalo = 19.39, -99.21 # FIXME
mintpy.network.coherenceBased = yes
mintpy.network.keepMinSpanTree = no
mintpy.network.minCoherence = 0.6
mintpy.troposphericDelay.weatherModel = ERA5
mintpy.deramp = linear
but I ran into the following error:
Traceback (most recent call last):
File "/Users/hackettl/miniforge3/envs/iscesent/bin/smallbaselineApp.py", line 10, in <module>
sys.exit(main())
^^^^^^
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/cli/smallbaselineApp.py", line 208, in main
run_smallbaselineApp(inps)
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/smallbaselineApp.py", line 1117, in run_smallbaselineApp
app.run(steps=inps.runSteps)
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/smallbaselineApp.py", line 889, in run
self.run_network_inversion(sname)
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/smallbaselineApp.py", line 384, in run_network_inversion
mintpy.cli.ifgram_inversion.main(iargs)
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/cli/ifgram_inversion.py", line 257, in main
run_ifgram_inversion(inps)
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/ifgram_inversion.py", line 1098, in run_ifgram_inversion
ts, ts_cov, inv_quality, num_inv_obs = run_ifgram_inversion_patch(**data_kwargs)[:-1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/ifgram_inversion.py", line 654, in run_ifgram_inversion_patch
weight_sqrt = calc_weight_sqrt(stack_obj, box,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hackettl/miniforge3/envs/iscesent/lib/python3.11/site-packages/mintpy/ifgram_inversion.py", line 520, in calc_weight_sqrt
L = int(stack_obj.metadata['ALOOKS']) * int(stack_obj.metadata['RLOOKS'])
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'ALOOKS'
In trying to diagnose this I have verified that the version of ISCE2 being used by mintpy is the same as the version used to create the input data. (ISCE version = 2.6.3).
Is the problem not having a stack-level referenceShelve/data.dat? If so, how can I generate this? Or if not, how can I avoid this error?
Thank you!
Lucy Hackett