All Projects → dlr-eoc → ukis-pysat

dlr-eoc / ukis-pysat

Licence: other
The ukis-pysat package provides generic classes and functions to query, access and process multi-spectral and SAR satellite images

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ukis-pysat

Felicette
Satellite imagery for dummies.
Stars: ✭ 1,710 (+8900%)
Mutual labels:  gis, satellite-data
GeoConvert
Converting between Geojson and GIS file formats
Stars: ✭ 32 (+68.42%)
Mutual labels:  gis
actinia core
Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231)
Stars: ✭ 41 (+115.79%)
Mutual labels:  gis
Offroad-routing-engine
Off-road Navigation System
Stars: ✭ 16 (-15.79%)
Mutual labels:  gis
registrant
Python package used for generating HTML reports about the contents of Esri geodatabases.
Stars: ✭ 44 (+131.58%)
Mutual labels:  gis
polyline ex
No description or website provided.
Stars: ✭ 20 (+5.26%)
Mutual labels:  gis
tailormap
B3partners Tailormap repository
Stars: ✭ 26 (+36.84%)
Mutual labels:  gis
dvhcvn
Bộ dữ liệu các đơn vị hành chính Việt Nam (3 cấp)
Stars: ✭ 84 (+342.11%)
Mutual labels:  gis
NodeMICMAC
A Lightweight REST API to Access MICMAC Photogrammetry and SFM Engine.
Stars: ✭ 54 (+184.21%)
Mutual labels:  gis
covid hospitals demographics
COVID-19 relevant data on hospital location / capacity, nursing home location / capacity, county demographics
Stars: ✭ 21 (+10.53%)
Mutual labels:  gis
open-impact
To help quickstart impact work with Satellogic [hyperspectral] data
Stars: ✭ 21 (+10.53%)
Mutual labels:  gis
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (+142.11%)
Mutual labels:  gis
mago3djs
3D Rendering Library
Stars: ✭ 114 (+500%)
Mutual labels:  gis
g3d
Realtime WebGL rendering maps and big data visualizations based on MXFramework and Three.js.
Stars: ✭ 52 (+173.68%)
Mutual labels:  gis
geowarp
Super Low-Level Raster Reprojection and Resampling Library
Stars: ✭ 20 (+5.26%)
Mutual labels:  gis
accessibility-cloud
👩🏽‍🦯🦮👩🏻‍🦽👩🏿‍🦼 the platform to exchange physical accessibility data in a standardized, future-proof, easy-to-use way.
Stars: ✭ 37 (+94.74%)
Mutual labels:  gis
geoos
A library provides spatial data and geometric algorithms
Stars: ✭ 504 (+2552.63%)
Mutual labels:  gis
xyz-qgis-plugin
Plugin for QGIS to connect to the HERE XYZ Hub API
Stars: ✭ 22 (+15.79%)
Mutual labels:  gis
shadow-accrual-maps
Accumulated shadow data computed for New York City
Stars: ✭ 15 (-21.05%)
Mutual labels:  gis
geoblaze
Blazing Fast JavaScript Raster Processing Engine
Stars: ✭ 80 (+321.05%)
Mutual labels:  gis

UKIS UKIS-pysat

ukis-pysat codecov Upload Python Package PyPI version Documentation Status GitHub license Code Style DOI

The UKIS-pysat package provides generic classes and functions to query, access and process multi-spectral and SAR satellite images.

data

Download satellites data from different sources (currently Earth Explorer, SciHub, STAC), deal with and structure metadata.

file

Work with you local satellite data files and read information out of file names and metadata files. Currently, focusing on Sentinel-1.

raster

Reading satellite data and performing simple, but cumbersome tasks. This is just a layer on top of rasterio for stuff we often need. It can very well be that using rasterio directly is often the better choice.

Read the documentation for more details: https://ukis-pysat.readthedocs.io.

Example

Here's an example about some basic features, it might also help to read through the tests. ###Sentinel Dataset

# import all the required libraries
from ukis_pysat.data import Source
from ukis_pysat.file import get_sentinel_scene_from_dir
from ukis_pysat.members import Datahub, Platform
from ukis_pysat.raster import Image

# connect to Copernicus Open Access Hub  and query metadata
src = Source(Datahub.Scihub)
meta = src.query_metadata(
    platform=Platform.Sentinel2,
    date=("20200101", "NOW"),
    aoi=(11.90, 51.46, 11.94, 51.50),
    cloud_cover=(0, 50),
)
for item in meta:  # item is now a PySTAC item
    print(item.id)
    uuid = item.properties["srcuuid"]

    # download geocoded quicklook and image
    src.download_quicklook(product_uuid=uuid, target_dir="/users/username/tmp")
    src.download_image(product_uuid=uuid, target_dir="/users/username/tmp")
    
    break

# get sentinel scene from directory
with get_sentinel_scene_from_dir("/users/username/tmp") as (full_path, ident):
    with Image(full_path.join("pre_nrcs.tif")) as img:
        # scale the image array, having one band
        img.arr = img.arr * 0.3

For working with the Landsat we need an item id for downloading the product Check Pystac documentation for more functionality on STAC.

Environment variables to configure Datahub credentials

To use ukis_pysat.data and to download from the respective Datahub you need to set the credentials as environment variables.

For EarthExplorer that's:
EARTHEXPLORER_USER=your_username
EARTHEXPLORER_PW=your_password

For SciHub that's:
SCIHUB_USER=your_username
SCIHUB_PW=your_password

Installation

The easiest way to install pysat is through pip. Be aware, that Rasterio requires GDAL >= 1.11, < 3.1.

Most users will want to do this:

pip install ukis-pysat[complete]  # install everything

There's also some lighter versions with less dependencies:

pip install ukis-pysat  # only install core dependencies (ukis_pysat.file can be used)

pip install ukis-pysat[data]  # also install dependencies for ukis_pysat.data

pip install ukis-pysat[raster]  # also install dependencies for ukis_pysat.raster

Some helper functions might need additional dependencies like pandas, dask[array] or utm. If this is the case you will receive an ImportError.

Dependencies

For the latest list of dependencies check the requirements.

Contributors

The UKIS team creates and adapts libraries which simplify the usage of satellite data. Our team includes (in alphabetical order):

  • Boehnke, Christian
  • Fichtner, Florian
  • Mandery, Nico
  • Martinis, Sandro
  • Riedlinger, Torsten
  • Wieland, Marc

German Aerospace Center (DLR)

Licenses

This software is licensed under the Apache 2.0 License.

Copyright (c) 2020 German Aerospace Center (DLR) * German Remote Sensing Data Center * Department: Geo-Risks and Civil Security

Changelog

See changelog.

Contributing

The UKIS team welcomes contributions from the community. For more detailed information, see our guide on contributing if you're interested in getting involved.

What is UKIS?

The DLR project Environmental and Crisis Information System (the German abbreviation is UKIS, standing for Umwelt- und Kriseninformationssysteme aims at harmonizing the development of information systems at the German Remote Sensing Data Center (DFD) and setting up a framework of modularized and generalized software components.

UKIS is intended to ease and standardize the process of setting up specific information systems and thus bridging the gap from EO product generation and information fusion to the delivery of products and information to end users.

Furthermore, the intention is to save and broaden know-how that was and is invested and earned in the development of information systems and components in several ongoing and future DFD projects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].