generated from fastai/nbdev_template
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend GOES data retrieval to include NOAA's CLAss archive (#249)
* added new function for archive data * added new function for archive data * added statellite range code * added new test file * minor fix
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 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
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,22 @@ | ||
from datetime import datetime | ||
from satip.goes_download_manager import GOESDownloadManager | ||
|
||
|
||
# Test case for downloading GOES-15 data from CLAss | ||
def test_download_goes_15_data(): | ||
# Initialize GoesDownloadManager | ||
download_manager = GOESDownloadManager(data_dir="data") | ||
|
||
# Define time range | ||
start_date = datetime(2010, 3, 1) | ||
end_date = datetime(2018, 3, 2) | ||
|
||
# Specify satellite (GOES-15) | ||
satellite = "15" | ||
|
||
# Download archival GOES-15 data | ||
download_manager.download_archival_goes_data(start_date, end_date, satellite) | ||
|
||
# Run the test case | ||
if __name__ == "__main__": | ||
test_download_goes_15_data() |