eumap.datasets.eo.s2mosaic.mosaic_helper.GridSystem¶
- class GridSystem(nrows, ncols, transform)[source]¶
Bases:
object
Methods
add_scalar_to_subgrid_masked
add_to_subgrid_inc1_masked
add_to_subgrid_masked
Returns indices that are 4-neighbours of inds_from and are in inds_in1 or inds_in2
Returns mask that indicates pixels from mask_in1 and mask_in2 that are 4-neighbours of at least one pixel from mask_from
get_subgrid_bounds
gind2lrowscols
gmask2lmask
ind2rc
rows, cols – array of rows and cols in local grid gul_row, gul_col – global row,col of local uper left pixel grd_ncols – number of columns in global grid
rc2ind
set_subgrid
set_subgrid_mask
Updates lmask from mask mask – mask of local grid in local grid shape lmask – mask of local grid in global grid shape
update_lmask_clip
- get_neighbours(inds_from, inds_in1, inds_in2)[source]¶
Returns indices that are 4-neighbours of inds_from and are in inds_in1 or inds_in2
- get_neighbours_mask(mask_from, mask_in1, mask_in2)[source]¶
Returns mask that indicates pixels from mask_in1 and mask_in2 that are 4-neighbours of at least one pixel from mask_from