Utils supporting the ESA openst-model package for Super-Resolution of Senintel-2 Imagery
Project description
opensr-utils - Supplementary Code for the ESA OpenSR project
This package provides useful functions to perform super-resolution of raw Sentinel-2 tiles.
Funcitonalities:
- Reading and stacking of the 10 and 20m bands of Senitnel-2 .SAFE file format (worrks with Sen2 downloads straight out of the box)
- Patching of input images by selectable size (eg 128x128)
- Super-Resolution of individual patches
- writing of georeferenced output raster
- overlapping and averaging of patches by sleectable quantity to reduce patching artifacts
Usage example:
from main import windowed_SR_and_saving # import package
file_path="/data2/simon/test_s2/S2A_MSIL2A_20230729T100031_N0509_R122_T33TUG_20230729T134559.SAFE/" # define unzipped folder location of .SAFE format
sr_obj = windowed_SR_and_saving(file_path) # create required class object
# perform windowed SR - 10m
sr_obj.start_super_resolution(band_selection="10m",model=None,forward_call="forward")
# perform windowed SR - 20m
sr_obj.start_super_resolution(band_selection="20m",model=None,forward_call="forward")
To start the Super-Resolution, you need to pass a model to the start_super_resolution function. It the call to SR is different than 'forward', you can pass the name of the call as an argument.
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
opensr-utils-0.1.6.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for opensr_utils-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afeb2484bdd57bf82ebd3374545c0d1da14e63e6028464a6bc17357d9ca1ebb0 |
|
MD5 | 5bd7cd67a29f100e9028c19e46d1a75b |
|
BLAKE2b-256 | 67c491ff55d0893ce5e37f98e26aa5e6b298d5c04f1df5fb1259f10dd6772f5d |