40 lines
1.4 KiB
Go
40 lines
1.4 KiB
Go
package config
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
type Config struct {
|
|
CRConfig CoRegistrationConfig `yaml:"cr_config" mapstructure:"cr_config"`
|
|
LogLevel logrus.Level `yaml:"log_level" mapstructure:"log_level"`
|
|
}
|
|
|
|
type CoRegistrationConfig struct {
|
|
MssBands int `yaml:"mss_bands" mapstructure:"mss_bands"`
|
|
PixelBytes int `yaml:"pixel_bytes" mapstructure:"pixel_bytes"`
|
|
MssWidth int `yaml:"mss_width" mapstructure:"mss_width"`
|
|
PanWidth int `yaml:"pan_width" mapstructure:"pan_width"`
|
|
CRBlockNW int `yaml:"cr_block_nw" mapstructure:"cr_block_nw"`
|
|
CRBlockNH int `yaml:"cr_block_nh" mapstructure:"cr_block_nh"`
|
|
OverlappedBlockLines int `yaml:"overlapped_block_lines" mapstructure:"overlapped_block_lines"`
|
|
CRResampleMethod string `yaml:"cr_resample_method" mapstructure:"cr_resample_method"`
|
|
FUSBandOrder string `yaml:"fu_band_order" mapstructure:"fu_band_order"`
|
|
}
|
|
|
|
var GCONFIG Config
|
|
|
|
func init() {
|
|
GCONFIG = Config{
|
|
LogLevel: logrus.DebugLevel,
|
|
CRConfig: CoRegistrationConfig{
|
|
MssBands: 4,
|
|
PixelBytes: 2,
|
|
PanWidth: 9344,
|
|
MssWidth: 2336,
|
|
OverlappedBlockLines: 3000,
|
|
CRBlockNW: 8,
|
|
CRBlockNH: 4,
|
|
CRResampleMethod: "down_sample_pan",
|
|
FUSBandOrder: "RGB",
|
|
},
|
|
}
|
|
}
|