-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a78886
commit a8d9273
Showing
11 changed files
with
104 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# input | ||
|
||
# REGION | ||
region: | ||
lat_min: -130 | ||
lat_max: -90 | ||
lon_min: -15 | ||
lon_max: 5 | ||
|
||
# PERIOD | ||
period: | ||
start_date: '2018-10-01' | ||
start_time: ... | ||
end_date: '2018-10-31' | ||
end_time: ... | ||
|
||
# EXTRAS | ||
cloud_mask: True | ||
|
||
# PATH | ||
save_dir: ./goes | ||
|
||
defaults: | ||
- _self_ | ||
- satellite: goes.yaml | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
__target__: rs_tools.OTHER_WRAPPER_SCRIPT | ||
start_date: ${download.start_date} | ||
end_date: ${download.end_date} | ||
save_dir: ${download.save_dir} | ||
cloud_mask: ${download.cloud_mask} | ||
daily_window_t0: '14:00:00' | ||
daily_window_t1: '20:00:00' | ||
time_step: '4:00:00' | ||
satellite_number: 16 | ||
instrument: 'ABI' | ||
processing_level: 'L1b' | ||
data_product: 'Rad' | ||
domain: 'F' | ||
bands: 'all' | ||
check_bands_downloaded: False |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import hydra | ||
from loguru import logger | ||
from omegaconf import OmegaConf, DictConfig | ||
|
||
|
||
@hydra.main(config_path="../config", config_name="main", version_base="1.3") | ||
def main(cfg): | ||
lib = hydra.utils.instantiate(cfg...) | ||
|
||
logger.debug(f"Choosing stage...") | ||
if cfg.stage == "download": | ||
for satellite in cfg.download.keys(): | ||
# instantiate download function | ||
# pick parameters | ||
# download | ||
logger.debug(f"starting download script...") | ||
raise NotImplementedError() | ||
elif cfg.stage == "preprocess": | ||
logger.debug(f"starting preprocessing script...") | ||
raise NotImplementedError() | ||
# elif cfg.stage == "train": | ||
# logger.debug(f"starting training script...") | ||
# raise NotImplementedError() | ||
# elif cfg.stage == "inference": | ||
# logger.debug(f"starting inference script...") | ||
# raise NotImplementedError() | ||
# elif cfg.stage == "evaluation": | ||
# logger.debug(f"starting evaluation script...") | ||
# raise NotImplementedError() | ||
else: | ||
raise ValueError(f"Unrecognized stage: {cfg.stage}") | ||
|
||
|
||
|
||
def main(config: DictConfig): | ||
pass | ||
|
||
if __name__ == "__main__": | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters