skmap.tiled_data.TiledDataLoader#
- class TiledDataLoader(catalog, mask_template_path, spatial_aggregation=None, resampling_strategy='GRA_NearestNeighbour', gdal_opts={'CPL_VSIL_CURL_ALLOWED_EXTENSIONS': '.tif', 'GDAL_HTTP_VERSION': '1.0'}, n_threads=4, verbose=True, n_threads_read=None)[source]#
Bases:
TiledDataLoads tiled data in parallel based on a catalog file
- Parameters:
catalog (
DataCatalog) – scikit-map DataCatalogmask_template_path (
str) –strwith a{tile_id}placeholderspatial_aggregation (
bool) – Whether to use spatial aggregation Should be powers of 2?, defaults to Noneresampling_strategy (
str) – _description_, defaults to “GRA_NearestNeighbour”gdal_opts (
Dict[str,str]) – _description_, defaults to { “GDAL_HTTP_VERSION”: “1.0”, “CPL_VSIL_CURL_ALLOWED_EXTENSIONS”: “.tif”, }n_threads (
int) – The number of threads to use for whales, defaults to os.cpu_count()verbose (
bool) – Whether to print output, defaults to Truen_threads_read (int, optional) – Number of threads for GDAL, defaults to n_threads
_summary_
- Parameters:
catalog (
DataCatalog) – _description_mask_template_path (
str) – _description_
Methods
convert_nan_to_medianconvert_nan_to_valueexpand_valid_pixelsfill_otf_constantfilter_valid_pixelsget_pixels_valid_idxload_tile_data