-
Notifications
You must be signed in to change notification settings - Fork 53
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
Geogrid update for post-processing correction #93
Conversation
@@ -67,6 +67,12 @@ def cmdLineParse(): | |||
help='Input stable surface mask') | |||
parser.add_argument('-fo', '--flag_optical', dest='optical_flag', type=bool, required=False, default=0, | |||
help='flag for reading optical data (e.g. Landsat): use 1 for on and 0 (default) for off') | |||
parser.add_argument('-b', '--buffer', dest='buffer', type=bool, required=False, default=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change type=bool to type=int
help='buffer to add to the starting/end range accounting for all passes from the same relative orbit') | ||
parser.add_argument('-p', '--parse', dest='parse', action='store_true', | ||
default=False, help='Parse the SAFE zip file to get radar image and orbit metadata; no need to run ISCE') | ||
parser.add_argument('--orbit-dir', hep='Directory of Sentinel-1 orbit files') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change --orbit-dir to --orbit_dir
parser.add_argument('-p', '--parse', dest='parse', action='store_true', | ||
default=False, help='Parse the SAFE zip file to get radar image and orbit metadata; no need to run ISCE') | ||
parser.add_argument('--orbit-dir', hep='Directory of Sentinel-1 orbit files') | ||
parser.add_argument('--aux-dir', hep='Directory of Sentinel-1 aux files') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change --aux-dir to --aux_dir
@@ -113,7 +119,7 @@ def getMergedOrbit(product): | |||
return orb | |||
|
|||
|
|||
def loadMetadata(indir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indir to indir_m
@@ -113,7 +119,7 @@ def getMergedOrbit(product): | |||
return orb | |||
|
|||
|
|||
def loadMetadata(indir): | |||
def loadMetadata(indir,buffer=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indir to indir_m
rdr.orbitDir=orbit_dir | ||
rdr.auxDir=aux_dir | ||
rdr.swathNumber=swath | ||
rdr.polarization=get_polarizations(indir)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indir to indir_m
rdr=Sentinel1() | ||
rdr.configure() | ||
# rdr.safe=['./S1A_IW_SLC__1SDH_20180401T100057_20180401T100124_021272_024972_8CAF.zip'] | ||
rdr.safe=[indir] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indir to indir_m
rdr.orbitDir=orbit_dir | ||
rdr.auxDir=aux_dir | ||
rdr.swathNumber=swath | ||
rdr.polarization=get_polarizations(indir)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indir to indir_m
metadata_m = loadMetadata(inps.indir_m) | ||
metadata_s = loadMetadata(inps.indir_s) | ||
if inps.parse: | ||
metadata_m = loadParsedata(inps.indir_m, inps.orbit_dir, inputs.aux_dir, inps.buffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change inputs.aux_dir to inps.aux_dir
metadata_s = loadMetadata(inps.indir_s) | ||
if inps.parse: | ||
metadata_m = loadParsedata(inps.indir_m, inps.orbit_dir, inputs.aux_dir, inps.buffer) | ||
metadata_s = loadParsedata(inps.indir_s, inps.orbit_dir, inputs.aux_dir, inps.buffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change inputs.aux_dir to inps.aux_dir
Closing as a carbon copy of #78. |
No description provided.