Skip to content

Commit

Permalink
removed duplicate scripts, and reorganized msg folder
Browse files Browse the repository at this point in the history
  • Loading branch information
annajungbluth committed Mar 15, 2024
1 parent 2610ab6 commit f4af022
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 801 deletions.
2 changes: 1 addition & 1 deletion notebooks/dev/multi-sat/1.0-image-visualizations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4064,7 +4064,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.9.undefined"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions rs_tools/_src/data/goes/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _check_input_processing_level(processing_level: str) -> bool:
return True
else:
msg = "Unrecognized processing level"
msg += f"\nNeeds to be 'L1b' or 'L2'. Others are not yet test"
msg += f"\nNeeds to be 'L1b' or 'L2'. Others are not yet tested"
raise ValueError(msg)


Expand Down Expand Up @@ -393,7 +393,7 @@ def _check_save_dir(save_dir: str) -> bool:
return True
else:
try:
os.mkdir(save_dir)
os.makedirs(save_dir)
return True
except:
msg = "Save directory does not exist"
Expand Down
3 changes: 2 additions & 1 deletion rs_tools/_src/data/modis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path
from datetime import datetime


# TODO: Expand mapping to other resolutions (250m, 500m)
MODIS_NAME_TO_ID= dict(
terra="MOD021KM",
terra_geo="MOD03",
Expand All @@ -13,6 +13,7 @@
aqua_cloud="MYD35_L2",
)

# TODO: Expand mapping to other resolutions (250m, 500m)
MODIS_ID_TO_NAME = dict(
MYD021KM="aqua",
MYDO3="aqua_geo",
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/modis/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _check_save_dir(save_dir: str) -> bool:
return True
else:
try:
os.mkdir(save_dir)
os.makedirs(save_dir)
return True
except:
msg = "Save directory does not exist"
Expand Down
Empty file.
File renamed without changes.
Loading

0 comments on commit f4af022

Please sign in to comment.