Spaces:
Build error
Build error
File size: 1,577 Bytes
c00748e ed53036 c00748e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
from typing import List, Optional
from dataclasses import dataclass, field
@dataclass
class Config:
"""
Wildfire Occurrence data configuration class (embedded with OmegaConf).
"""
# Directory to store output files
working_dir: str
# WPS path
wps_path: str
# WRF path
wrf_path: str
# Multinode option
multi_node: Optional[bool] = False
# Container path
container_path: Optional[str] = None
# Container mounting directories
container_mounts: Optional[list] = None
# Dictionary to store WPS configuration file options
wps_config: Optional[dict] = field(
default_factory=lambda: {'interval_seconds': 10800})
# Dictionary to store WRF configuration file options
wrf_config: Optional[dict] = field(
default_factory=lambda: {
'interval_seconds': 10800, 'num_metgrid_levels': 27})
# Output filename from WRF to extract variables from
wrf_output_filename: Optional[str] = 'wrfout_d02_*_00:00:00'
# List for posprocessing of variables
wrf_output_variables: Optional[List[str]] = field(
default_factory=lambda: [
'CFTotal', 'CFLow', 'CFMed', 'CFHigh',
'DZ700_850',
'GPZ500', 'GPZ700', 'GPZ750', 'GPZ850',
'Helicity',
'LCL',
'PLI', 'PW',
'RAINTotal',
'RH2', 'RH500', 'RH700', 'RH800', 'RH850',
'SHOW',
'SLP',
'TD2', 'TD500',
'TT', 'T2', 'T500', 'T750', 'T850',
'W500', 'WA500'
]
)
|