This commit is contained in:
nuknal
2024-08-19 18:05:55 +08:00
parent 85f9f44653
commit ea23839bf2
6 changed files with 116 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ type Config struct {
Radiation RadiationConfig `yaml:"radiation" mapstructure:"radiation"`
BrowserImg BrowserImgConfig `yaml:"browser_img" mapstructure:"browser_img"`
Log LogConfig `yaml:"log" mapstructure:"log"`
Dem DemConfig `yaml:"dem" mapstructure:"dem"`
}
type LogConfig struct {
@@ -39,6 +40,12 @@ type RadiationConfig struct {
HFBandStopWidth int `yaml:"hf_band_stop_width" mapstructure:"hf_band_stop_width"`
}
type DemConfig struct {
DemType string `yaml:"dem_type" mapstructure:"dem_type"`
DemDir string `yaml:"dem_dir" mapstructure:"dem_dir"`
Dem1Km string `yaml:"dem_1km" mapstructure:"dem_1km"`
}
type BrowserImgConfig struct {
Enhancement map[string]string `yaml:"enhancement" mapstructure:"enhancement"`
CumulativeCutLower float64 `yaml:"cumulative_cut_lower" mapstructure:"cumulative_cut_lower"`
@@ -82,5 +89,10 @@ func init() {
CumulativeCutLower: 0.01,
CumulativeCutUpper: 0.99,
},
Dem: DemConfig{
DemType: "SRTM",
DemDir: "dem/SRTM",
Dem1Km: "dem/gdlebm.tif",
},
}
}