Created
March 5, 2021 11:01
-
-
Save mraspaud/938e1e9dd47c757cf3363f40b056f027 to your computer and use it in GitHub Desktop.
Create a SAR-ICE-Log composite image and save to disk from EW, GRD Sentinel 1 data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a SAR-ICE-Log composite image and save to disk from EW, GRD Sentinel 1 data. | |
from datetime import datetime | |
from satpy.scene import Scene | |
from satpy import find_files_and_readers | |
if __name__ == '__main__': | |
files = find_files_and_readers( | |
base_dir="/data/satellite/Sentinel-1/", | |
# Gulf of bothnia | |
start_time=datetime(2021, 3, 5, 4, 46, 0), | |
end_time=datetime(2021, 3, 5, 4, 58, 0), | |
reader='sar-c_safe') | |
scn = Scene(filenames=files) | |
composite = 'sar-ice-log' | |
scn.load([composite]) | |
scn.save_dataset(composite, fformat='tiff', filename=composite + '.tiff', compress='JPEG', fill_value=0, tiled=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment