Files
UAV-CO2/web_api_data/uploads/0d7e6302-3b5a-4a2d-81b4-e5c9693d5e00/gasflux_config.yaml
2026-02-25 11:50:30 +08:00

67 lines
3.3 KiB
YAML

# Required columns and their maximum valid ranges
required_cols:
latitude: [-90, 90]
longitude: [-180, 180]
height_ato: [0, 60] # meters above takeoff
windspeed: [0, 50] # m/s
winddir: [0, 360] # degrees
temperature: [-50, 60] # degrees Celsius
pressure: [800, 1100] # hPa/mb
# Optional gas columns and their maximum ppm concentration ranges.
# Relative concentrations are used, so absolute offset can be incorrect as long as gain and linearity are correct.
gases:
CO2: [400, 450]
strategies:
background: "algorithm" # Currently only algorithmic baseline correction (via pybaselines) is supported
sensor: "insitu" # Currently only in-situ sensor data is supported
spatial: "spiral" # Spatial processing mode: "curtain" and "spiral" are supported
interpolation: "kriging" # Currently only kriging interpolation is supported
# Baseline correction algorithm settings
algorithmic_baseline_settings:
algorithm: fastchrom
fastchrom: {
"half_window": 6,
"threshold": "custom", #
"min_fwhm": ~,
"interp_half_window": 3,
"smooth_half_window": 3,
"weights": ~,
"max_iter": 100,
"min_length": 2}
fabc : {
"lam": 10000, # The smoothing parameter. Larger values will create smoother baselines. Default is 1e6.
"scale": 10, # The scale at which to calculate the continuous wavelet transform. Should be approximately equal to the index-based full-width-at-half-maximum of the peaks or features in the data. Default is None, which will use half of the value from optimize_window(), which is not always a good value, but at least scales with the number of data points and gives a starting point for tuning the parameter.
"diff_order": 2} # The order of the differential matrix. Must be greater than 0. Default is 2 (second order differential matrix). Typical values are 2 or 1.
dietrich : {
"poly_order": 5,
"smooth_half_window": 5,}
golotvin : {
"half_window": 2,
"sections": 10}
# Kriging settings - aggressively optimized for Spiral mode
semivariogram_settings:
model: exponential # Changed to exponential model for better circular data fitting
estimator: cressie # Robust estimator for variogram calculation
n_lags: 50 # Further increased to 50 for better variogram resolution
bin_func: even # Even binning function
fit_method: lm # Least squares fitting method
### Aggressively increased search ranges for circular/spiral data distribution
maxlag: 5000 # Dramatically increased to 5000m for comprehensive coverage
tolerance: 180 # Increased to 180° to allow full circular search
azimuth: 0 # Horizontal direction maintained
bandwidth: 300 # Further increased to 300m for maximum search bandwidth
# fit_sigma: linear # this should allow for a spatial uncertainty but currently producing bugs
ordinary_kriging_settings:
min_points: 1 # Reduced to 1 to allow interpolation even with sparse data
max_points: 20 # Further reduced to 20 to minimize computational load
grid_resolution: 100 # Increased density to 100 for finer interpolation grid
min_nodes: 20 # Increased to 20 to ensure sufficient grid nodes
y_min: ~ # Automatically determine minimum y value
cut_ground: False # Keep ground cutting disabled