Skip to content

Instantly share code, notes, and snippets.

@willrayeo
Last active May 12, 2021 07:59
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 willrayeo/79ecf17642434f7a2c4ba42b5995c6a4 to your computer and use it in GitHub Desktop.
Save willrayeo/79ecf17642434f7a2c4ba42b5995c6a4 to your computer and use it in GitHub Desktop.
# Setup xcube
s2_cube_config = CubeConfig(dataset_name='S2L2A',
band_names=['B02', 'B03', 'B04', 'B08'],
bbox=tewkesbury_uk_bbox,
spatial_res=0.000089,
time_range=['2020-12-01', '2021-02-28'],
time_tolerance='30M')
# Open cube (on the fly)
s2_cube = open_cube(s2_cube_config, **sh_credentials)
# Display contents
s2_cube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment