Skip to content

Commit

Permalink
miniset patching, added xrpatcher to requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
lillif committed May 3, 2024
1 parent 0da4cba commit fad9a59
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config/miniset/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defaults:
- download
- geoprocess
# - patch
- patch
- satellite: goes

stage: download
8 changes: 4 additions & 4 deletions config/miniset/patch.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# PATH WITH GEOPROCESSED DATA
read_path: data
read_path: /mnt/disks/data/miniset/

# PATH FOR SAVING PATCHES
save_path: data
save_path: /mnt/disks/data/miniset/

# PATCH PARAMETERS
patch_size: 256
stride_size: 256

# NAN CUTOFF
nan_cutoff: 0.5
# NAN CUTOFF: maximum allowed ratio of nan values to nonan values in a patch
nan_cutoff: 0.1

# FILETYPE TO SAVE [nc = netcdf, np = numpy]
save_filetype: nc
Expand Down
16 changes: 8 additions & 8 deletions config/miniset/satellite/goes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ geoprocess:

# preprocess:

# patch:
# _target_: rs_tools._src.preprocessing.prepatcher.prepatch
# read_path: ${read_path}/goes16/geoprocessed
# save_path: ${save_path}/goes16/analysis
# patch_size: ${patch_size}
# stride_size: ${stride_size}
# nan_cutoff: ${nan_cutoff}
# save_filetype: ${save_filetype}
patch:
_target_: rs_tools._src.preprocessing.prepatcher.prepatch
read_path: ${read_path}/goes16/geoprocessed
save_path: ${save_path}/goes16/analysis
patch_size: ${patch_size}
stride_size: ${stride_size}
nan_cutoff: ${nan_cutoff}
save_filetype: ${save_filetype}
16 changes: 8 additions & 8 deletions config/miniset/satellite/msg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ geoprocess:

# preprocess:

# patch:
# _target_: rs_tools._src.preprocessing.prepatcher.prepatch
# read_path: ${read_path}/msg/geoprocessed
# save_path: ${save_path}/msg/analysis
# patch_size: ${patch_size}
# stride_size: ${stride_size}
# nan_cutoff: ${nan_cutoff}
# save_filetype: ${save_filetype}
patch:
_target_: rs_tools._src.preprocessing.prepatcher.prepatch
read_path: ${read_path}/msg/geoprocessed
save_path: ${save_path}/msg/analysis
patch_size: ${patch_size}
stride_size: ${stride_size}
nan_cutoff: ${nan_cutoff}
save_filetype: ${save_filetype}
3 changes: 2 additions & 1 deletion environments/environment_iti.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# name: rs_tools
name: rs_tools_iti
channels:
- conda-forge
dependencies:
Expand Down Expand Up @@ -62,4 +62,5 @@ dependencies:
- hydra-core
- hydra-zen
- wandb
- xrpatcher

0 comments on commit fad9a59

Please sign in to comment.