Brian Blaylock
January 13, 2021

Download GOES Data: Timerange#

For all options, refer to the GOES-2-go Reference Guide: goes2go.data.goes_timerange

[1]:
from goes2go.data import goes_timerange

from datetime import datetime
import pandas as pd

Example 1:#

Download an ABI file from GOES-East for an hour period. Data is returned as a file list.

[2]:
## Dates may be specified as datetime, pandas datetimes, or string dates
## that pandas can interpret.

## Specify start/end time with datetime object
#start = datetime(2021, 1, 1, 0, 30)
#end = datetime(2021, 1, 1, 1, 30)

## Specify start/end time as a panda-parsable string
start = '2021-01-01 00:30'
end = '2021-01-01 01:30'

g = goes_timerange(start, end,
                   satellite='goes16',
                   product='ABI',
                   return_as='filelist')
 _______________________________
 | Satellite: noaa-goes16      |
 |   Product: ABI-L2-MCMIPC    |
 |    Domain: C                |
πŸ“¦ Finished downloading [12] files to [/p/home/blaylock/data/noaa-goes16/ABI-L2-MCMIPC].
[3]:
g
[3]:
file start end creation
0 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:31:17.600 2021-01-01 00:33:56.100 2021-01-01 00:34:10.300
1 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:36:17.600 2021-01-01 00:38:55.500 2021-01-01 00:39:09.900
2 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:41:17.600 2021-01-01 00:43:56.100 2021-01-01 00:44:09.200
3 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:46:17.600 2021-01-01 00:48:56.100 2021-01-01 00:49:09.600
4 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:51:17.600 2021-01-01 00:53:55.500 2021-01-01 00:54:10.500
5 noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... 2021-01-01 00:56:17.600 2021-01-01 00:58:55.500 2021-01-01 00:59:09.000
6 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:01:17.600 2021-01-01 01:03:54.900 2021-01-01 01:04:10.200
7 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:06:17.600 2021-01-01 01:08:56.100 2021-01-01 01:09:09.400
8 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:11:17.600 2021-01-01 01:13:55.500 2021-01-01 01:14:10.300
9 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:16:17.600 2021-01-01 01:18:56.100 2021-01-01 01:19:09.600
10 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:21:17.600 2021-01-01 01:23:54.900 2021-01-01 01:24:10.200
11 noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... 2021-01-01 01:26:17.600 2021-01-01 01:28:55.500 2021-01-01 01:29:09.000
[4]:
g.attrs
[4]:
{'satellite': 'noaa-goes16',
 'product': 'ABI-L2-MCMIPC',
 'start': Timestamp('2021-01-01 00:30:00'),
 'end': Timestamp('2021-01-01 01:30:00'),
 'filePath': PosixPath('/p/home/blaylock/data')}

Show the files on my home drive…#

[5]:
%%bash
tree ~/data
/p/home/blaylock/data
└── noaa-goes16
    └── ABI-L2-MCMIPC
        └── 2021
            └── 001
                β”œβ”€β”€ 00
                β”‚Β Β  β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010031176_e20210010033561_c20210010034103.nc
                β”‚Β Β  β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010036176_e20210010038555_c20210010039099.nc
                β”‚Β Β  β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010041176_e20210010043561_c20210010044092.nc
                β”‚Β Β  β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010046176_e20210010048561_c20210010049096.nc
                β”‚Β Β  β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010051176_e20210010053555_c20210010054105.nc
                β”‚Β Β  └── OR_ABI-L2-MCMIPC-M6_G16_s20210010056176_e20210010058555_c20210010059090.nc
                └── 01
                    β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010101176_e20210010103549_c20210010104102.nc
                    β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010106176_e20210010108561_c20210010109094.nc
                    β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010111176_e20210010113555_c20210010114103.nc
                    β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010116176_e20210010118561_c20210010119096.nc
                    β”œβ”€β”€ OR_ABI-L2-MCMIPC-M6_G16_s20210010121176_e20210010123549_c20210010124102.nc
                    └── OR_ABI-L2-MCMIPC-M6_G16_s20210010126176_e20210010128555_c20210010129090.nc

6 directories, 12 files
[ ]: