Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 14, 2021 05:10
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 amankharwal/e801352f6323a4d2b60788147684f27f to your computer and use it in GitHub Desktop.
Save amankharwal/e801352f6323a4d2b60788147684f27f to your computer and use it in GitHub Desktop.
from glob import glob
import earthpy as et
import earthpy.spatial as es
import earthpy.plot as ep
import rasterio as rio
from rasterio.plot import plotting_extent
from rasterio.plot import show
from rasterio.plot import reshape_as_raster, reshape_as_image
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import ListedColormap
import plotly.graph_objects as go
np.seterr(divide='ignore', invalid='ignore')
S_sentinel_bands = glob("/content/drive/MyDrive/Satellite_data/sundarbans_data/*B?*.tiff")
S_sentinel_bands.sort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment