Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdfeos5 file is not created #35

Open
falkamelung opened this issue Nov 21, 2022 · 0 comments
Open

hdfeos5 file is not created #35

falkamelung opened this issue Nov 21, 2022 · 0 comments

Comments

@falkamelung
Copy link
Contributor

falkamelung commented Nov 21, 2022

When you say mintpy.save.hdfEos5 = yes then I get in the run)9 step this error:

******************** step - hdfeos5 ********************
--------------------------------------------

save_hdfeos5.py /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/geo/geo_timeseries_demErr.h5 --tc /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/geo/geo_temporalCoherence.h5 --asc /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/geo/geo_avgSpatialCoh.h5 -m /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/geo/geo_maskTempCoh.h5 -g /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/geo/geo_geometryRadar.h5 -t /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy/network_single_reference/smallbaselineApp.cfg
read options from template file: smallbaselineApp.cfg
Traceback (most recent call last):
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/cli/smallbaselineApp.py", line 213, in <module>
    main(sys.argv[1:])
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/cli/smallbaselineApp.py", line 208, in main
    run_smallbaselineApp(inps)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/smallbaselineApp.py", line 1117, in run_smallbaselineApp
    app.run(steps=inps.runSteps)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/smallbaselineApp.py", line 922, in run
    self.run_save2hdfeos5(sname)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/smallbaselineApp.py", line 862, in run_save2hdfeos5
    mintpy.cli.save_hdfeos5.main(iargs)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/cli/save_hdfeos5.py", line 107, in main
    save_hdfeos5(inps)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/save_hdfeos5.py", line 437, in save_hdfeos5
    meta = prep_metadata(
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/save_hdfeos5.py", line 64, in prep_metadata
    unavco_meta = metadata_mintpy2unavco(meta, ts_obj.dateList, geom_file)
  File "/work2/05861/tg851601/stampede2/code/rsmas_insar/sources/MintPy/mintpy/save_hdfeos5.py", line 118, in metadata_mintpy2unavco
    lons = [meta['LON_REF1'],
KeyError: 'LON_REF1'
Go back to directory: /scratch/05861/tg851601/qunittestGalapagosSenDT128/miaplpy

MintPy does not throw this error.
It turns out that the data.rsc lacks the fields LAT_REF1, etc, whereas the data.rsc generated by mintpy has them:

qunittestGalapagosSenDT128/reference[1089] sdiff data.rsc ../reference_mintpy/data.rsc 
ALOOKS                1					      |	ALOOKS                    5
ANTENNA_SIDE          -1				      |	ANTENNA_SIDE              -1
AZIMUTH_PIXEL_SIZE    15.616065431619585		      |	AZIMUTH_PIXEL_SIZE        78.08032715809793
CENTER_LINE_UTC       42609.0				      |	CENTER_INCIDENCE_ANGLE    33.853077
EARTH_RADIUS          6337323.067122917			      |	CENTER_LINE_UTC           42609.0
HEADING               -167.96908041323653		      |	EARTH_RADIUS              6337323.067122917
HEIGHT                698984.5823960749			      |	FILE_LENGTH               565
NCORRLOOKS            0.5988245993484209		      |	HEADING                   -167.96908041323653
ORBIT_DIRECTION       DESCENDING			      |	HEIGHT                    698984.5823960749
PLATFORM              sen				      |	LAT_REF1                  -0.6879028124910035
POLARIZATION          VV				      |	LAT_REF2                  -0.5250735971614573
PRF                   1717.128973878037			      |	LAT_REF3                  -1.0360017147852283
PROCESSOR             isce				      |	LAT_REF4                  -0.8728346561708716
RANGE_PIXEL_SIZE      2.329562114715323			      |	LENGTH                    565
RLOOKS                1					      |	LON_REF1                  -90.79578040798087
STARTING_RANGE        799547.2189154713			      |	LON_REF2                  -91.55101356159743
WAVELENGTH            0.05546576			      |	LON_REF3                  -90.86902369155685
altitude              698984.5823960749			      |	LON_REF4                  -91.62443101326208
azimuthPixelSize      15.616065431619585		      |	NCORRLOOKS                44.91184495113157
azimuthResolution     22.5				      |	ORBIT_DIRECTION           DESCENDING

The problem is at follows:

LON_REF1, etc is read from the .xml file here. However, the extract_geometry_metadata function is never reached, because it thinks that there are no geom_files. It checks for the existence of e.g. lat.rdr.full here. But the file does not exist. Only lat.rdr.full.vrt exists.

I hope there is an easy fix??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant