Skip to main content

Retrieve GOES-16/17 data from AWS. Also proves some RGB recipes.

Project description

Download and display GOES-East and GOES-West data

DOI Code style: black

GOES-East and GOES-West satellite data are made available on Amazon Web Services through NOAA's Big Data Program. GOES-2-go is a python package that makes it easy to find and download the files you want to your local computer with some additional helpers to look at and understand the data.



📔 GOES-2-go Documentation



Capabilities

Download Data

Download GOES ABI or GLM NetCDF files to your local computer. Files can also be read with xarray.

First, create a GOES object to specify the satellite, data product, and domain you are interested in. The example below downloads the Multi-Channel Cloud Moisture Imagery for CONUS.

from goes2go import GOES

# ABI Multi-Channel Cloud Moisture Imagry Product
G = GOES(satellite=16, product="ABI-L2-MCMIP", domain='C')

# Geostationary Lightning Mapper
G = GOES(satellite=17, product="GLM-L2-LCFA", domain='C')

# ABI Level 1b Data
G = GOES(satellite=17, product="ABI-L1b-Rad", domain='F')

A complete listing of the products available are available here.

There are methods to do the following:

  • List the available files for a time range
  • Download data to your local drive for a specified time range
  • Read the data into an xarray Dataset for a specific time
   # Produce a pandas DataFrame of the available files in a time range
   df = G.df(start='2022-07-04 01:00', end='2022-07-04 01:30')
   # Download and read the data as an xarray Dataset nearest a specific time
   ds = G.nearesttime('2022-01-01')
   # Download and read the latest data as an xarray Dataset
   ds = G.latest()
   # Download data for a specified time range
   G.timerange(start='2022-06-01 00:00', end='2022-06-01 01:00')

   # Download recent data for a specific interval
   G.timerange(recent='30min')

RGB Recipes

The rgb xarray accessor creates an RGB product for a GOES ABI multichannel xarray.Dataset. See the demo for more examples of RGB products.

import matplotlib.pyplot as plt
ds = GOES().latest()
ax = plt.subplot(projection=ds.rgb.crs)
ax.imshow(ds.rgb.TrueColor(), **ds.rgb.imshow_kwargs)
ax.coastlines()

Field of View

The FOV xarray accessor creates shapely.Polygon objects for the ABI and GLM field of view. See notebooks for GLM and ABI field of view.

from goes2go.data import goes_latest
G = goes_latest()
# Get polygons of the full disk or ABI domain field of view.
G.FOV.full_disk
G.FOV.domain
# Get Cartopy coordinate reference system
G.FOV.crs

GOES-West is centered over -137 W and GOES-East is centered over -75 W. When GOES was being tested, it was in a "central" position, outlined in the dashed black line. Below is the ABI field of view for the full disk: field of view image

The GLM field of view is slightly smaller and limited by a bounding box. Below is the approximated GLM field of view: field of view image

Installation

The easiest way to install is within a Conda environment. I provided environment.yml for you to start from.

# Download environment file
wget https://github.com/blaylockbk/goes2go/raw/main/environment.yml

# Modify that file if you wish.

# Create the environment
conda env create -f environment.yml

# Activate the environment
conda activate goes2go

GOES-2-go is published on PyPI and you can install it with pip, but it requires some additional dependencies that you will have to install yourself:

When those are installed within your environment, then you can install GOES-2-go with pip.

# Latest published version
pip install goes2go

# ~~ or ~~

# Most recent changes
pip install git+https://github.com/blaylockbk/goes2go.git

Useful Links

What if I don't like the GOES-2-go or Python?

As an alternative you can use rclone to download GOES files from AWS. I quite like rclone. Here is a short rclone tutorial.



I hope you find this makes GOES data easier to retrieve and display. Enjoy!

- Brian Blaylock

👨🏻‍💻 Contributing Guidelines
💬 GitHub Discussions
🚑 GitHub Issues
🌐 Personal Webpage

P.S. If you like GOES-2-go, check out my Herbie package to download weather model data and SynopticPy to download mesonet data from the Synoptic API.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goes2go-2022.10.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

goes2go-2022.10.0-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file goes2go-2022.10.0.tar.gz.

File metadata

  • Download URL: goes2go-2022.10.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.13

File hashes

Hashes for goes2go-2022.10.0.tar.gz
Algorithm Hash digest
SHA256 559ef5162958f5d9b294cd1244969228ca28aaf3a8ea749e9de262d80dc10cb1
MD5 83d137546ea14a70fd5799428bff933c
BLAKE2b-256 10fde850ab926d7e928bf5745d1d8da1c5e30d17714aafa18728e3a1dffd8b95

See more details on using hashes here.

File details

Details for the file goes2go-2022.10.0-py3-none-any.whl.

File metadata

  • Download URL: goes2go-2022.10.0-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.13

File hashes

Hashes for goes2go-2022.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca4a1e2ca78f759dab6f8214747758092a58070b8ed85f4ff8ae6c3f68d4892
MD5 ffb7a16d2cc5b10ee5dfc0a04c0d11da
BLAKE2b-256 8c6a2b6968684dde281695d1bd969a0aa8caa775aca8e1b6aa5b1845aaa20754

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page