Skip to content

Commit

Permalink
removed path extension
Browse files Browse the repository at this point in the history
  • Loading branch information
annajungbluth committed Jul 5, 2024
1 parent 7ea598e commit 67870e6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rs_tools/_src/data/goes/downloader_goes16.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def download(
daily_window_t0=daily_window_t0,
daily_window_t1=daily_window_t1,
time_step=time_step,
save_dir=Path(save_dir).joinpath("goes16"),
save_dir=Path(save_dir), #.joinpath("goes16"),
)
logger.info("Downloading GOES 16 Data...")
goes16_filenames = dc_goes16_download.download()
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/modis/downloader_aqua.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def download(
end_date=end_date,
start_time=start_time,
end_time=end_time,
save_dir=Path(save_dir).joinpath("aqua"),
save_dir=Path(save_dir), #.joinpath("aqua"),
bounding_box=bounding_box,
)
logger.info("Downloading AQUA Data...")
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/modis/downloader_aqua_day.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def download(
end_date=end_date,
start_time=start_time,
end_time=end_time,
save_dir=Path(save_dir).joinpath("aqua"),
save_dir=Path(save_dir), #.joinpath("aqua"),
bounding_box=bounding_box,
)
logger.info("Downloading AQUA Data...")
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/modis/downloader_terra.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def download(
end_date=end_date,
start_time=start_time,
end_time=end_time,
save_dir=Path(save_dir).joinpath("terra"),
save_dir=Path(save_dir), #.joinpath("terra"),
bounding_box=bounding_box,
)
logger.info("Downloading TERRA Data...")
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/modis/downloader_terra_day.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def download(
end_date=end_date,
start_time=start_time,
end_time=end_time,
save_dir=Path(save_dir).joinpath("terra"),
save_dir=Path(save_dir), #.joinpath("terra"),
bounding_box=bounding_box,
)
logger.info("Downloading TERRA Data...")
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/msg/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def msg_download(
if sub_files_list is None:
logger.info(f"Could not find data for time {itime}. Skipping to next time.")
else:
logger.info(f"Successfully downloaded data for time {itime}.")
files += sub_files_list
successful_queries.append(itime)

Expand Down Expand Up @@ -174,7 +175,6 @@ def _msg_data_download(products, save_dir: str):
save_path = os.path.join(save_dir, os.path.basename(fsrc.name))
# Check if file already exists
if os.path.exists(save_path):
print(f"File {save_path} already exists. Skipping download.")
return [save_path]
else:
with open(save_path, mode='wb') as fdst:
Expand Down
2 changes: 1 addition & 1 deletion rs_tools/_src/data/msg/downloader_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def download(
daily_window_t0=daily_window_t0,
daily_window_t1=daily_window_t1,
time_step=time_step,
save_dir=Path(save_dir).joinpath("msg"),
save_dir=Path(save_dir), #.joinpath("msg"),
)
logger.info("Downloading MSG Data...")
msg_filenames = dc_msg_download.download()
Expand Down

0 comments on commit 67870e6

Please sign in to comment.