-
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 #78
base: master
Are you sure you want to change the base?
Conversation
…e radar image and orbit metadata without the need to run ISCE thru the topo step
info.orbit = getMergedOrbit(frames) | ||
|
||
return info | ||
|
||
def loadParsedata(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.
def loadParsedata(indir,buffer=0): | |
def loadParsedata(indir, orbit_dir, aux_dir, buffer=0): |
rdr.orbitDir='/Users/yanglei/orbit/S1A/precise' | ||
rdr.auxDir='/Users/yanglei/orbit/S1A/aux' |
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.
rdr.orbitDir='/Users/yanglei/orbit/S1A/precise' | |
rdr.auxDir='/Users/yanglei/orbit/S1A/aux' | |
rdr.orbitDir=orbit_dir | |
rdr.auxDir='aux_dir |
These are hard-coded to your system, so they'll need to be input parameters.
metadata_m = loadParsedata(inps.indir_m,inps.buffer) | ||
metadata_s = loadParsedata(inps.indir_s,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.
metadata_m = loadParsedata(inps.indir_m,inps.buffer) | |
metadata_s = loadParsedata(inps.indir_s,inps.buffer) | |
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) |
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') |
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.
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('-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') |
rdr.orbitDir='/Users/yanglei/orbit/S1A/precise' | ||
rdr.auxDir='/Users/yanglei/orbit/S1A/aux' | ||
rdr.swathNumber=swath | ||
rdr.polarization='hh' |
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.
This is also hard-coded and should be parsed from the SLC name. Can use a function like:
from typing import Tuple
from pathlib import Path
def get_polarizations(s1_safe: str) -> Tuple[str]:
mapping = {
'SH': ('hh',),
'SV': ('vv',),
'DH': ('hh', 'hv'),
'DV': ('vv', 'vh'),
}
key = Path(s1_safe).name[14:16]
return mapping[key]
and selected like:
rdr.polarization='hh' | |
rdr.polarization=get_polarizations(indir)[0] |
update Geogrid to support parsing the S1 SAFE zip file and getting the radar image and orbit metadata without the need to run ISCE thru the topo step