Open
Conversation
The issue was opened by Dani-Lindsay, at first cmd_3.sh fails during alosStack/ion_check.py because imagemagick was not installed. After installing imagemagick by conda install -c conda-forge imagemagick, I got another error message:
convert-im6.q16: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1396.
The error message can be fixed by changing line 106 in ion_check.py from
runCmd("montage -pointsize {} -label 'original' {} -label 'ionosphere' {} -label 'corrected' {} -geometry +{} -compress LZW{} {}.tif".format(
to
runCmd("montage -font DejaVu-Sans -pointsize {} -label 'original' {} -label 'ionosphere' {} -label 'corrected' {} -geometry +{} -compress LZW{} {}.tif".format(
Fix a bug while running `cuDenseOffsets.py --full/out-geom` on topsApp.py products by: + setting `lat` as the first geometry dataset, instead of `hgt`, because the former is shared between topsApp and topsStack products + add `z` from topsApp, in addition to `hgt` from topsStack, as the input geometry dataset
Added orbit data type
The arclist file in the more complete ODR orbit files downloaded from http://www.deos.tudelft.nl/AS/pieter/Local/ERS/index.html (contains ERS-2 orbit files beyond 2003) has slight format change and the original hard coded line parser no longer works. The updated version should work both for the new and old versions of arclist.
6d3c180 to
f226619
Compare
…sce2-symlink-in-docker add symlink in dockerfile
+ ignore the non-numeric foldres in the data download directory, similar to stripmapStack, in the following scripts:
- StackPublic
- create_cmds
- read_data
+ create_cmds: print out the number of acquisitions and pairs
+ create_cmds: ignore empty input of `insar.bbox` arg, in addition to the existing None input, otherwise, it causes the following err
```
Traceback (most recent call last):
File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <module>
bbox = [float(x) for x in bbox.split('/')]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <listcomp>
bbox = [float(x) for x in bbox.split('/')]
^^^^^^^^
ValueError: could not convert string to float: ''
```
`alosStack/ion_check`: specify font for while calling `montage`
hfattahi
reviewed
Apr 8, 2024
Collaborator
hfattahi
left a comment
There was a problem hiding this comment.
Thanks @yjzhenglamarmota. The changes look fine to me. Would you please just remove the commented codes. Also would you please confirm this is the latest and greatest that worked for you in processing the large stack of ERS data?
Comment on lines
66
to
81
| # #### computation of "poly" adapted from line 339 - line 353 of Components/isceobj/Sensor/ERS_EnviSAT_SLC.py ### | ||
| ####### removed this section and added obj.extractDoppler() above instead. Doesn't seem to change anything in the processing. The latter is required for cropFrame. | ||
| # coeffs = obj.dopplerRangeTime | ||
| # dr = obj.frame.getInstrument().getRangePixelSize() | ||
| # rref = 0.5 * Const.c * obj.rangeRefTime | ||
| # r0 = obj.frame.getStartingRange() | ||
| # norm = 0.5 * Const.c / dr | ||
|
|
||
| # dcoeffs = [] | ||
| # for ind, val in enumerate(coeffs): | ||
| # dcoeffs.append( val / (norm**ind)) | ||
|
|
||
| # poly = Poly1D.Poly1D() | ||
| # poly.initPoly(order=len(coeffs)-1) | ||
| # poly.setMean( (rref - r0)/dr - 1.0) | ||
| # poly.setCoeffs(dcoeffs) |
Collaborator
There was a problem hiding this comment.
please remove commented code.
components/isceobj/Orbit/ODR.py
Outdated
Comment on lines
191
to
196
| ###### commented the following because it is not always present in the new arclist file ############ | ||
| # arc.slrResidual = line[34:38] # Satellite laser ranging residual in cm | ||
| # arc.crossOver = line[39:43] | ||
| # arc.altimeter = line[45:49] | ||
| # arc.repeat = line[51:57] # Repeat cycle in days | ||
| # arc.version = line[58:61] # Version number |
Collaborator
There was a problem hiding this comment.
Please remove the commented code.
`alosStack`: easy data preparation + ignore non-numeric folders in the data/download dir
Added gdal2isce_xml when running multilook gdal in mergeBursts.py
* Update fetchOrbit.py for new Copernicus data source * Move username/password assignment outside loop Avoid reentering when downloading multiple files * Use persistent copernicus auth token saved to file Co-authored-by: Eric Lindsey <ericlindsey@users.noreply.github.com> * Read username/password from .netrc file when needed --------- Co-authored-by: Eric Lindsey <ericlindsey@users.noreply.github.com>
…ork#852) * Update estimateIono.py * Update runDispersive.py * Added Lutan-1 support * Added revision for Lutan-1 * Added Lutan 1 in SConscript and CMakeLists.txt * Fixed Lutan-1 name * Bug fixes for Lutan-1 reader * Added 128k on the Fortran code * Added the ability to ingest annotation file orbit info * Added warning for using orbit info from annotation file * Update README.md --------- Co-authored-by: bjmarfito <bjmarfito@github.com> Co-authored-by: Zhang Yunjun <yunjunz@outlook.com>
…framework#600) * removing azimuth burst ramps caused by ionosphere in topsStack These updates are for removing azimuth burst ramps caused by ionosphere in the ionospheric correction in topsStack. The updates are only within this module. * Update Stack.py * update argument for s1_select_ion.py * Update runFrameOffset.py * Update contrib/stack/topsStack/README.md Co-authored-by: Zhang Yunjun <yunjunz@outlook.com> * Update contrib/stack/topsStack/stackSentinel.py Co-authored-by: Zhang Yunjun <yunjunz@outlook.com> * Update contrib/stack/topsStack/stackSentinel.py Co-authored-by: Zhang Yunjun <yunjunz@outlook.com> * Update contrib/stack/topsStack/stackSentinel.py Co-authored-by: Zhang Yunjun <yunjunz@outlook.com> * Update contrib/stack/topsStack/stackSentinel.py Co-authored-by: Zhang Yunjun <yunjunz@outlook.com> --------- Co-authored-by: Zhang Yunjun <yunjunz@outlook.com>
fix some incorrect pointer types as required by newer gcc compilers
Update README.md for topsStack ionospheric phase screen module
* Update plotIonDates.py * Update plotIonPairs.py
bugfix in `cuDenseOffsets.py --full/out-geom` for `topsApp` product
Added orbit data type
The arclist file in the more complete ODR orbit files downloaded from http://www.deos.tudelft.nl/AS/pieter/Local/ERS/index.html (contains ERS-2 orbit files beyond 2003) has slight format change and the original hard coded line parser no longer works. The updated version should work both for the new and old versions of arclist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have been processing ERS1/2 data from ESA (http://esar-ds.eo.esa.int/socat/SAR_IMS_1P/) and thought it would be helpful to add the following script to stripmapStack before we can run stackStripMap.py for ERS data.
unpackFrame_ERS_ENV.py
I have also updated ODR.py because the updated Delft orbits have some format changes, and the original hard-coded line https://github.com/yjzhenglamarmota/isce2/blob/7fcf2c5662627842a788e5954778d98e2b3ca3e7/components/isceobj/Orbit/ODR.py#L185parser no longer works. The updated version work for both the old arclist files and the new ones.