Download
goes_download(start_date, end_date=None, start_time='00:00:00', end_time='23:59:00', daily_window_t0='00:00:00', daily_window_t1='23:59:00', time_step=None, satellite_number=16, save_dir='.', instrument='ABI', processing_level='L1b', data_product='Rad', domain='F', bands='all', check_bands_downloaded=False)
Downloads GOES satellite data for a specified time period and set of bands.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
str
|
The start date of the data download in the format 'YYYY-MM-DD'. |
required |
end_date |
str
|
The end date of the data download in the format 'YYYY-MM-DD'. If not provided, the end date will be the same as the start date. |
None
|
start_time |
str
|
The start time of the data download in the format 'HH:MM:SS'. Default is '00:00:00'. |
'00:00:00'
|
end_time |
str
|
The end time of the data download in the format 'HH:MM:SS'. Default is '23:59:00'. |
'23:59:00'
|
daily_window_t0 |
str
|
The start time of the daily window in the format 'HH:MM:SS'. Default is '00:00:00'. Used if e.g., only day/night measurements are required. |
'00:00:00'
|
daily_window_t1 |
str
|
The end time of the daily window in the format 'HH:MM:SS'. Default is '23:59:00'. Used if e.g., only day/night measurements are required. |
'23:59:00'
|
time_step |
str
|
The time step between each data download in the format 'HH:MM:SS'. If not provided, the default is 1 hour. |
None
|
satellite_number |
int
|
The satellite number. Default is 16. |
16
|
save_dir |
str
|
The directory where the downloaded files will be saved. Default is the current directory. |
'.'
|
instrument |
str
|
The instrument name. Default is 'ABI'. |
'ABI'
|
processing_level |
str
|
The processing level of the data. Default is 'L1b'. |
'L1b'
|
data_product |
str
|
The data product to download. Default is 'Rad'. |
'Rad'
|
domain |
str
|
The domain of the data. Default is 'F' - Full Disk. |
'F'
|
bands |
str
|
The bands to download. Default is 'all'. |
'all'
|
check_bands_downloaded |
bool
|
Whether to check if all bands were successfully downloaded for each time step. Default is False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
list |
A list of file paths for the downloaded files. |
Examples:
=========================
GOES LEVEL 1B Test Cases
=========================
custom day
python scripts/goes-download.py 2020-10-01 --end-date 2020-10-01
custom day + end points
python scripts/goes-download.py 2020-10-01 --end-date 2020-10-01 --start-time 00:00:00 --end-time 23:00:00
custom day + end points + time window
python scripts/goes-download.py 2020-10-01 --end-date 2020-10-01 --start-time 00:00:00 --end-time 23:00:00 --daily-window-t0 08:30:00 --daily-window-t1 21:30:00
custom day + end points + time window + timestep
python scripts/goes-download.py 2020-10-01 --end-date 2020-10-01 --start-time 00:00:00 --end-time 23:00:00 --daily-window-t0 08:30:00 --daily-window-t1 21:30:00 --time-step 06:00:00
===================================
GOES LEVEL 2 CLOUD MASK Test Cases
===================================
python scripts/goes-download.py 2020-10-01 --start-time 10:00:00 --end-time 11:00:00 --processing-level L2 --data-product ACM
====================
FAILURE TEST CASES
====================
python scripts/goes-download.py 2018-10-01 --end-date 2018-10-01 --daily-window-t0 17:00:00 --daily-window-t1 17:14:00 --time-step 00:15:00 --save-dir /home/juanjohn/data/ python scripts/goes-download.py 2018-10-01 --end-date 2018-10-01 --daily-window-t0 17:00:00 --daily-window-t1 17:14:00 --time-step 00:15:00 --save-dir /home/juanjohn/data/ --check-bands-downloaded
Source code in rs_tools/_src/data/goes/download.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|