{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "**Brian Blaylock** \n", "*January 13, 2021*\n", "\n", "# Download GOES Data: Timerange\n", "For all options, refer to the GOES-2-go Reference Guide: [goes2go.data.goes_timerange](https://goes2go.readthedocs.io/en/latest/reference_guide/index.html#goes2go.data.goes_timerange)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from goes2go.data import goes_timerange\n", "\n", "from datetime import datetime\n", "import pandas as pd" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---\n", "### Example 1: \n", "Download an ABI file from GOES-East for an hour period. Data is returned as a file list." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " _______________________________\n", " | Satellite: noaa-goes16 |\n", " | Product: ABI-L2-MCMIPC |\n", " | Domain: C |\n", "📦 Finished downloading [12] files to [/p/home/blaylock/data/noaa-goes16/ABI-L2-MCMIPC]. \n" ] } ], "source": [ "## Dates may be specified as datetime, pandas datetimes, or string dates\n", "## that pandas can interpret.\n", "\n", "## Specify start/end time with datetime object\n", "# start = datetime(2021, 1, 1, 0, 30)\n", "# end = datetime(2021, 1, 1, 1, 30)\n", "\n", "## Specify start/end time as a panda-parsable string\n", "start = \"2021-01-01 00:30\"\n", "end = \"2021-01-01 01:30\"\n", "\n", "g = goes_timerange(start, end, satellite=\"goes16\", product=\"ABI\", return_as=\"filelist\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | file | \n", "start | \n", "end | \n", "creation | \n", "
---|---|---|---|---|
0 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:31:17.600 | \n", "2021-01-01 00:33:56.100 | \n", "2021-01-01 00:34:10.300 | \n", "
1 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:36:17.600 | \n", "2021-01-01 00:38:55.500 | \n", "2021-01-01 00:39:09.900 | \n", "
2 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:41:17.600 | \n", "2021-01-01 00:43:56.100 | \n", "2021-01-01 00:44:09.200 | \n", "
3 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:46:17.600 | \n", "2021-01-01 00:48:56.100 | \n", "2021-01-01 00:49:09.600 | \n", "
4 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:51:17.600 | \n", "2021-01-01 00:53:55.500 | \n", "2021-01-01 00:54:10.500 | \n", "
5 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/00/OR_ABI-L... | \n", "2021-01-01 00:56:17.600 | \n", "2021-01-01 00:58:55.500 | \n", "2021-01-01 00:59:09.000 | \n", "
6 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:01:17.600 | \n", "2021-01-01 01:03:54.900 | \n", "2021-01-01 01:04:10.200 | \n", "
7 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:06:17.600 | \n", "2021-01-01 01:08:56.100 | \n", "2021-01-01 01:09:09.400 | \n", "
8 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:11:17.600 | \n", "2021-01-01 01:13:55.500 | \n", "2021-01-01 01:14:10.300 | \n", "
9 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:16:17.600 | \n", "2021-01-01 01:18:56.100 | \n", "2021-01-01 01:19:09.600 | \n", "
10 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:21:17.600 | \n", "2021-01-01 01:23:54.900 | \n", "2021-01-01 01:24:10.200 | \n", "
11 | \n", "noaa-goes16/ABI-L2-MCMIPC/2021/001/01/OR_ABI-L... | \n", "2021-01-01 01:26:17.600 | \n", "2021-01-01 01:28:55.500 | \n", "2021-01-01 01:29:09.000 | \n", "