Identify optically shallow and deep waters in satellite imagery
Project description
Optically-Shallow-Deep
This python tool delineates optically shallow and deep waters in Sentinel-2 imagery. The tool uses a deep neural network that was trained on a diverse set of global images.
Supported input includes L1C SAFE files and ACOLITE-processed L2R netCDF files. The output geotiff contains probabilities of water pixels being optically shallow and deep.
Output is a 3-band geotiff:
- B1: Binary prediction (OSW/ODW)
- B2: Prediction probability of OSW (100 means most likely OSW, 0 means most likely ODW)
- B3: pixels that are masked out
Originally coded by by Galen Richardson and Anders Knudby, modified and uploaded by Yulun Wu
Installation
1 - Create a conda environment and activate it:
conda create --name opticallyshallowdeep
conda activate opticallyshallowdeep
2 - Install tensorflow
For mac OS:
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
(Optional) To utilize GPUs on mac OS:
python -m pip install tensorflow-metal
For windows:
python3 -m pip install tensorflow
More on installing tensorflow: https://www.tensorflow.org/install
3 - Install other dependencies:
conda install -c conda-forge geopandas rasterio tifffile netCDF4 pyproj
4 - Install opticallyshallowdeep:
python3 -m pip install opticallyshallowdeep
Quick Start
import opticallyshallowdeep as osd
file_in = 'test_folder_in/S2.SAFE'
folder_out = 'folder/test_folder_out'
osd.run(file_in, file_out)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for opticallyshallowdeep-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a227379e5d71912dad7111a011a99fbf1f8767ec5bc7b707e3cd62c369290194 |
|
MD5 | 6e79229d01d850ac0445fde244d13441 |
|
BLAKE2b-256 | acb514ad41f295a61e788666084d508afc191afbd8e11845a6ea4f4c3bd78cb2 |
Hashes for opticallyshallowdeep-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7f78e3863a4bbcdb98c7852c717a548743058bed4309dd5fda7138244f70dc |
|
MD5 | 66d3b7536922ef25267ce9902cd0437d |
|
BLAKE2b-256 | 16ef47b72ee0eaa66ae92cd4b2ddc95567d3db1349d77820470b8db81398893e |