Skip to main content

HYDrologic Remote sensing Analysis for Floods

Project description

hydra-floods

docs

Introduction

HYDrologic Remote sensing Analysis for Floods (HydraFloods) is a Python application for downloading, processing, and delivering flood maps derived from remote sensing data. This is backend behind the HYDRAViewer Geospatial tool which utilizes many remote sesnsing dataset as possible to provide daily (sometime twice daily) flood maps.

hydrafloodviewer

IMAGE ALT TEXT HERE

Installation

  1. Create a new conda environment with the required dependencies and activate the environment
$ conda create -n hydra -c conda-forge python=3.6 numpy scipy pandas requests yaml xmltodict gdal shapely pyproj netCDF4 xarray pyresample geopandas earthengine-api fire

$ conda activate hydra
  1. Install additional packages via pip that are not on conda-forge
$ pip install git+git://github.com/KMarkert/simple-cmr.git
  1. Authenticate the Earth Engine API
$ earthengine authenticate
  1. Install Google Storage Utility command-line interface (gsutil) and the setup the gsutil environment
$ gcloud init

$ gcloud auth application-default login

NOTE:

Make sure your initialize the ee and gsutil APIs with Google accounts that have permissions to read and write to Google Cloud Storage and Google Earth Engine assets.


  1. Download the hydrafloods source code and install the package
  • COMING SOON: the hydrafloods package will be on PyPI in the near future to prevent installing from source
$ git clone https://github.com/servir-mekong/hydra-floods.git
$ cd hydra-floods/py pkg
$ python setup.py install
  1. Test to see if the installation was successful
$ hydrafloods run_tests

How-to

To initiate the HydraFloods process use the command below.

$hydrafloods process atms 2015-07-19 --configuration myconf.yaml

NOTE: Details regarding the command

  • hydrafloods --- call the hydrafloods process to begin

  • process --- start the hydraflood process

  • atms --- specify sensor (see processing.py for details options include: Sentinel2, Landsat, Modis, Viirs, Atms, Sentinel1)

  • 2015-07-19 --- specify the date of intrest

  • --configuration --- use the configuration file

  • myconf.yaml --- call the .yaml file that specifies the ROI etc. (see the exampl.yaml for details)

config example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydrafloods-0.1.0.tar.gz (32.6 kB view hashes)

Uploaded Source

Built Distribution

hydrafloods-0.1.0-py3-none-any.whl (38.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page