cars.data_structures.corresponding_tiles_tools
Contains functions for array reconstructions and crop for multiple tiles
Module Contents
Functions
|
Combine list of tiles (window, overlap, xr.Dataset) as |
|
Find the dataset corresponding to window, in the list of tiles. |
|
Crop full dataset to fit with a given tile dataset |
- cars.data_structures.corresponding_tiles_tools.reconstruct_data(tiles, window, overlap)
Combine list of tiles (window, overlap, xr.Dataset) as one full dataset
- Parameters
tiles (list(tuple)) – list of tiles
window (list) – window of base tile [row min, row max, col min col max]
overlap (list) – overlap of base tile [row min, row max, col min col max]
- Returns
full dataset, row min of combined, col min of combined
- Return type
xr.Dataset, int, int
- cars.data_structures.corresponding_tiles_tools.find_tile_dataset(corresponding_tiles, window)
Find the dataset corresponding to window, in the list of tiles.
- Parameters
corresponding_tiles (list(tuple)) – list of tiles
window (list) – window of base tile [row min, row max, col min col max]
- Returns
dataset corresponding to window
- Return type
xr.Dataset
- cars.data_structures.corresponding_tiles_tools.crop_dataset(full_dataset, in_dataset, window, overlap, row_min, col_min)
Crop full dataset to fit with a given tile dataset
- Parameters
full_dataset (xr.Dataset) – Combined dataset
in_dataset (xr.Dataset) – dataset to use as template dataset
window (list) – window of base tile [row min, row max, col min col max]
overlap (list) – overlap of base tile [row min, row max, col min col max]
row_min (int) – position of row min in full image
col_min (int) – position of col min in full image
- Returns
cropped dataset
- Return type
xr.Dataset