Skip to content

Instantly share code, notes, and snippets.

@raybellwaves
Last active September 6, 2020 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raybellwaves/4dd2f1472468e9f67424b6a148e9ac18 to your computer and use it in GitHub Desktop.
Save raybellwaves/4dd2f1472468e9f67424b6a148e9ac18 to your computer and use it in GitHub Desktop.
from satpy import Scene
import s3fs
import glob
fs = s3fs.S3FileSystem(anon=True)
# Create a folder called 'data'
# Download a folder (which is one time stamp) and contains all 16 channels and 10 segments
fs.get('noaa-himawari8/AHI-L1b-FLDK/2020/09/04/2350/*', 'data')
filenames = glob.glob('data/*')
scn = Scene(reader='ahi_hsd', filenames=filenames)
# See the dataset of the file by running
# scn.available_dataset_names(composites=True)
# Here we'll load channel 4
scn.load(['B04'])
scn.show('B04')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment