eumap.datasets.eo.s2mosaic.s2tiler.S2Tiler¶
- class S2Tiler(source, band, tile_name, satimgs, bucket, tmp_folder, data_folder, out_parent_folder, out_folder_prefix, debug=False, verbose=False, **kwargs)[source]¶
Bases:
objectClass that calculates one s2 tile of mosaic
param: source: Source of images param: band: Band name (‘B02’,’B03’, …) param: tile_name: Name of tile thats going to be mosaicked param: satimgs: Pandas DataFrame with all images to be mosaicked param: bucket: name of the bucket where result will be saved param: tmp_folder: temporary folder param: data_folder: folder for downloading source images param: out_arent_folder: param: out_folder_prefix: param: debug: If true then there is no uploading to AWS S3 param: verbose: param: kwargs: Additional arguments
returns:
Methods
Read geolocation of source image from metadata.xml
Read information on relative orbit from “tileInfo”
logMain procedure to make tile
Read mask raster from SCL file
Move result image from temporary folder to S3
s3_pathtmp_pathAttributes
LOGbdoutput_filenames3_path_cntscl_masked_valuestile_nodatatmp_path_cntverbose- geolocation_from_metadata(fn_metadata, resolution=None)[source]¶
Read geolocation of source image from metadata.xml
- static get_relative_orbit_tileInfo(fn_tileInfo)[source]¶
Read information on relative orbit from “tileInfo”