Skip to content

Instantly share code, notes, and snippets.

@thuitaw
Created September 19, 2023 05:37
Show Gist options
  • Save thuitaw/6d9ba5ddf2c950a91d6d50b8718ebe14 to your computer and use it in GitHub Desktop.
Save thuitaw/6d9ba5ddf2c950a91d6d50b8718ebe14 to your computer and use it in GitHub Desktop.
calculate bounding box
lat, lon = -1.019229839313624, 35.00213001168837
buffer_lat, buffer_lon = 0.05, 0.05
time_period = ('2020')
output_crs = 'epsg:6933'
#join lat,lon,buffer to get bounding box
lon_range = (lon - buffer_lon, lon + buffer_lon)
lat_range = (lat + buffer_lat, lat - buffer_lat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment