Skip to content

Commit 59cdd2c

Browse files
Virginia Brancatovbrancat
authored andcommitted
GSLC, GCOV, InSAR schema re-organization (#840)
* Make groups with optional options, optional in GSLC schema * Make groups with optional options, optional in GCOV schema * Make groups with optional options, optional in InSAR schema * Removed unused keep_scratch from InSAR schema * Remove excess space at the end of the schemas Co-authored-by: vbrancat <[email protected]>
1 parent 1f296b9 commit 59cdd2c

File tree

8 files changed

+438
-296
lines changed

8 files changed

+438
-296
lines changed

share/nisar/defaults/insar.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ runconfig:
4444

4545
# ADT section - isce3 + pyre workflow
4646
processing:
47-
# flag to keep or delete scratch contents
48-
keep_scratch: True
49-
5047
input_subset:
5148
# Frequencies and polarisations to be processed
5249
list_of_frequencies:

share/nisar/schemas/gcov.yaml

Lines changed: 141 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -49,105 +49,17 @@ runconfig:
4949
# HV and VH), otherwise, the flag is ignored.
5050
symmetrize_cross_pol_channels: bool(required=False)
5151

52-
# Only checked when internet access is available
53-
dem_download:
54-
# s3 bucket / curl URL / local file
55-
source: str(required=False)
56-
top_left:
57-
x: num(required=False)
58-
y: num(required=False)
59-
60-
bottom_right:
61-
x: num(required=False)
62-
y: num(required=False)
63-
64-
# Pre-processing options (before geocoding)
65-
pre_process:
66-
# Number of looks in azimuth
67-
azimuth_looks: int(min=1, required=False)
68-
69-
# Number of looks in range
70-
range_looks: int(min=1, required=False)
71-
72-
rtc: # RTC options
52+
# DEM download options: checked only if internet access is available
53+
dem_download: include('dem_download_options', required=False)
7354

74-
# RTC output type: empty value to turn off the RTC
75-
# The output_type defaults to "gamma0" if the key is absent
76-
output_type: enum('gamma0', 'sigma0', required=False)
77-
78-
algorithm_type: enum('area_projection', 'bilinear_distribution', required=False)
79-
80-
input_terrain_radiometry: enum('beta0', 'sigma0', required=False)
81-
82-
# Minimum RTC area factor in dB
83-
rtc_min_value_db: num(required=False)
84-
85-
# Mechanism to specify output posting and DEM
86-
geocode:
87-
algorithm_type: enum('area_projection', 'sinc', 'bilinear', 'bicubic', 'nearest', 'biquintic', required=False)
55+
# Pre-processing (before geocoding) options
56+
pre_process: include('pre_process_options', required=False)
8857

89-
# Apply RTC
90-
apply_rtc: bool(required=False)
91-
92-
memory_mode: enum('auto', 'single_block', 'blocks_geogrid', 'blocks_geogrid_and_radargrid', required=False)
93-
94-
# Processing upsampling factor on top of the input geogrid
95-
geogrid_upsampling: int(required=False)
96-
97-
# Save the number of looks used to compute GCOV
98-
save_nlooks: bool(required=False)
99-
100-
# Save the RTC area factor used to compute GCOV
101-
save_rtc: bool(required=False)
102-
103-
# Save interpolated DEM used to compute GCOV
104-
save_dem: bool(required=False)
105-
106-
# Absolute radiometric correction factor
107-
abs_rad_cal: num(required=False)
108-
109-
# Clip values above threshold
110-
clip_max: num(required=False)
111-
112-
# Clip values below threshold
113-
clip_min: num(required=False)
114-
115-
# Double sampling of the radar-grid
116-
# input sampling in the range direction
117-
upsample_radargrid: bool(required=False)
118-
119-
# Same as input DEM if not provided.
120-
outputEPSG: int(min=1024, max=32767, required=False)
121-
122-
# Output posting in same units as output EPSG.
123-
# If not provided, spacing values will be taken from provided DEM.
124-
output_posting:
125-
A:
126-
x_posting: num(min=0, required=False)
127-
y_posting: num(min=0, required=False)
128-
B:
129-
x_posting: num(min=0, required=False)
130-
y_posting: num(min=0, required=False)
131-
132-
# To control output grid in same units as output EPSG
133-
x_snap: num(min=0, required=False)
134-
135-
# To control output grid in same units as output EPSG
136-
y_snap: num(min=0, required=False)
137-
138-
top_left:
139-
# Set top-left y in same units as output EPSG
140-
y_abs: num(required=False)
141-
142-
# Set top-left x in same units as output EPSG
143-
x_abs: num(required=False)
144-
145-
bottom_right:
146-
# Set bottom-right y in same units as output EPSG
147-
y_abs: num(required=False)
148-
149-
# Set bottom-right x in same units as output EPSG
150-
x_abs: num(required=False)
58+
# Radiometric Terrain Correction (RTC)
59+
rtc: include('rtc_options', required=False)
60+
61+
# Geocode options: (e.g. output posting)
62+
geocode: include('geocode_options', required=False)
15163

15264
radar_grid_cubes: include('radar_grid_cubes_options', required=False)
15365

@@ -157,23 +69,13 @@ runconfig:
15769

15870
dem_interpolation_method: enum('sinc', 'bilinear', 'bicubic', 'nearest', 'biquintic', required=False)
15971

160-
# If noise correction desired (for ISRO)
161-
noise_correction:
162-
apply_correction: bool(required=False)
163-
164-
correction_type: str(required=False)
165-
166-
# To setup type of worker
167-
worker:
168-
# To prevent downloading DEM / other data automatically. Default True
169-
internet_access: bool(required=False)
170-
171-
# To explicitly use GPU capability if available. Default False
172-
gpu_enabled: bool(required=False)
173-
# Index of the GPU to use for processing, optional. Defaults to the
174-
# first available CUDA device. Ignored if *gpu_enabled* is False.
175-
gpu_id: int(min=0, required=False)
72+
# Noise correction options (for ISRO)
73+
noise_correction: include('noise_correction_options', required=False)
74+
75+
# Worker options (e.g., enable/disable GPU processing, set GPU device ID)
76+
worker: include('worker_options', required=False)
17677

78+
# Quality Assurance software options
17779
QA: include('qa_options', required=False)
17880

17981
# Place holder for user set path to log file.
@@ -216,15 +118,139 @@ radar_grid_cubes_options:
216118
x_abs: num(required=False)
217119

218120
geo2rdr_options:
121+
# Convergence threshold for geo2rdr algorithm
219122
threshold: num(min=1.0e-9, max=1.0e-3, required=False)
123+
124+
# Maximum number of iterations
220125
maxiter: int(min=10, max=50, required=False)
221126

222127
qa_options:
223-
validate: bool(required=False) # enable file format validation
224-
quality: bool(required=False) # produce a data summary
128+
# Enable/disable file format validation
129+
validate: bool(required=False)
130+
131+
# Produce a data summary
132+
quality: bool(required=False)
225133

226134
log_nfo:
227135
# Path to log file
228136
path: str()
137+
229138
# Log file write mode. 'a' for append to existing. 'w' for new or overwrite existing.
230139
write_mode: enum('a', 'w', required=False)
140+
141+
dem_download_options:
142+
# s3 bucket / curl URL / local file
143+
source: str(required=False)
144+
top_left:
145+
# Top-left X coordinate
146+
x: num(required=False)
147+
# Top-left Y coordinate
148+
y: num(required=False)
149+
150+
bottom_right:
151+
# Bottom-right X coordinate
152+
x: num(required=False)
153+
# Bottom-right Y coordinate
154+
y: num(required=False)
155+
156+
pre_process_options:
157+
# Number of looks in azimuth
158+
azimuth_looks: int(min=1, required=False)
159+
160+
# Number of looks in slant range
161+
range_looks: int(min=1, required=False)
162+
163+
rtc_options:
164+
# RTC output type: empty value to turn off the RTC
165+
# The output_type defaults to "gamma0" if the key is absent
166+
output_type: enum('gamma0', 'sigma0', required=False)
167+
168+
algorithm_type: enum('area_projection', 'bilinear_distribution', required=False)
169+
170+
input_terrain_radiometry: enum('beta0', 'sigma0', required=False)
171+
172+
# Minimum RTC area factor in dB
173+
rtc_min_value_db: num(required=False)
174+
175+
geocode_options:
176+
algorithm_type: enum('area_projection', 'sinc', 'bilinear', 'bicubic', 'nearest', 'biquintic', required=False)
177+
178+
# Apply RTC
179+
apply_rtc: bool(required=False)
180+
181+
memory_mode: enum('auto', 'single_block', 'blocks_geogrid', 'blocks_geogrid_and_radargrid', required=False)
182+
183+
# Processing upsampling factor on top of the input geogrid
184+
geogrid_upsampling: int(required=False)
185+
186+
# Save the number of looks used to compute GCOV
187+
save_nlooks: bool(required=False)
188+
189+
# Save the RTC area factor used to compute GCOV
190+
save_rtc: bool(required=False)
191+
192+
# Save interpolated DEM used to compute GCOV
193+
save_dem: bool(required=False)
194+
195+
# Absolute radiometric correction factor
196+
abs_rad_cal: num(required=False)
197+
198+
# Clip values above threshold
199+
clip_max: num(required=False)
200+
201+
# Clip values below threshold
202+
clip_min: num(required=False)
203+
204+
# Double sampling of the radar-grid
205+
# input sampling in the range direction
206+
upsample_radargrid: bool(required=False)
207+
208+
# Same as input DEM if not provided.
209+
outputEPSG: int(min=1024, max=32767, required=False)
210+
211+
# Output posting in same units as output EPSG.
212+
# If not provided, spacing values will be taken from provided DEM.
213+
output_posting:
214+
A:
215+
x_posting: num(min=0, required=False)
216+
y_posting: num(min=0, required=False)
217+
B:
218+
x_posting: num(min=0, required=False)
219+
y_posting: num(min=0, required=False)
220+
221+
# To control output grid in same units as output EPSG
222+
x_snap: num(min=0, required=False)
223+
224+
# To control output grid in same units as output EPSG
225+
y_snap: num(min=0, required=False)
226+
227+
top_left:
228+
# Set top-left y in same units as output EPSG
229+
y_abs: num(required=False)
230+
231+
# Set top-left x in same units as output EPSG
232+
x_abs: num(required=False)
233+
234+
bottom_right:
235+
# Set bottom-right y in same units as output EPSG
236+
y_abs: num(required=False)
237+
238+
# Set bottom-right x in same units as output EPSG
239+
x_abs: num(required=False)
240+
241+
noise_correction_options:
242+
# Enable/disable noise correction
243+
apply_correction: bool(required=False)
244+
245+
correction_type: str(required=False)
246+
247+
worker_options:
248+
# Enable/disable internet connection (e.g. to download DEM)
249+
internet_access: bool(required=False)
250+
251+
# To explicitly use GPU capability if available. Default False
252+
gpu_enabled: bool(required=False)
253+
254+
# Index of the GPU to use for processing, optional. Defaults to the
255+
# first available CUDA device. Ignored if *gpu_enabled* is False.
256+
gpu_id: int(min=0, required=False)

0 commit comments

Comments
 (0)