Skip to main content

No project description provided

Project description

flood-mapper

Detect flood extents on Sentinel-1 satellite imagery using the recommended method from United Nations UN-SPIDER Knowledge Portal.

Installation

pip install flood-mapper

Usage

import ee
from flood_mapper import derive_flood_extents

ee.Initialize()
ee.Authenticate()

# Define a start and end date between to select imagery before the flooding event
before_start = '2020-10-01'
before_end = '2020-10-15'

# Define a start and end date between to select imagery after the flooding event
after_start = '2020-11-04'
after_end = '2020-11-15'

# Define a geographic region where the flooding occurred.
region = ee.Geometry.Polygon([[[-85.93, 16.08],
                               [-85.93, 15.69],
                               [-85.40, 15.69],
                               [-85.40, 16.08]]])

# Change the export flag to 'False' if you do not wish to export the results to Google Drive
detected_flood_vector, detected_flood_raster, before_imagery, after_imagery = derive_flood_extents(region,
                                                                                                   before_start,
                                                                                                   before_end,
                                                                                                   after_start,
                                                                                                   after_end,
                                                                                                   export=True,
                                                                                                   export_filename='my_filename')

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

flood-mapper-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flood_mapper-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file flood-mapper-0.1.2.tar.gz.

File metadata

  • Download URL: flood-mapper-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0

File hashes

Hashes for flood-mapper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ce3bc2c15531ce43a253e64b67e083fe8f54934f2a744fd6d07ad449369b9166
MD5 fe84b17061a247a65a840114764f22a2
BLAKE2b-256 4f016396cab3f29213fb30e5bf8850a766ff0f8af716cf2e41938f63a7e7ac4c

See more details on using hashes here.

File details

Details for the file flood_mapper-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: flood_mapper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0

File hashes

Hashes for flood_mapper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4579c2df40e3e567898fe81ad2fa5acb927947bb4616fe7ff91d938c4f507790
MD5 ce875fab4243310b805bb29455fe10cd
BLAKE2b-256 053806727497286430c45097fbd09fc1b0b6371a9239cac2ca91c597254cc14d

See more details on using hashes here.

Supported by

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