Utilities supporting the ESA opensr-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.8.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for opensr_utils-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a583077fadd11bcd9a3398437c71108c8c41f4dedf52d176f69c27952f808026 |
|
MD5 | ab49ceb8be07f4cd7a798089805b0971 |
|
BLAKE2b-256 | 1fad210eec2b69d598cafcad69944dfebd8f001e5ed21644c3fa886d5783e24d |