add dem
This commit is contained in:
@@ -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",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user