eumap.qc.Test¶
- class Test(bounds, crs=None, verbose=False)[source]¶
Bases:
object
Class for performing QC against GH datasets.
- Parameters
Examples
>>> from eumap.qc import Test >>> >>> bounds = (4751935.0, 2420238.0, 4772117.0, 2444223.0) >>> test = Test(bounds, verbose=True) >>> dataset_url = 'https://s3.eu-central-1.wasabisys.com/eumap/lcv/lcv_landcover.hcl_lucas.corine.rf_p_30m_0..0cm_2019_eumap_epsg3035_v0.1.tif' >>> >>> available = test.availability(dataset_url) >>> coverage_fraction = test.raster_land_coverage(dataset_url, include_ice=True, include_wetlands=True)
Methods
Check if a remote resource is available.
metadata_consistency
- rtype
Check completeness of a remote raster resource against land mask derived from [1].
- raster_land_coverage(dataset_path, include_ice=False, include_wetlands=False)[source]¶
Check completeness of a remote raster resource against land mask derived from [1].
- Parameters
- Return type
- Returns
Fraction of pixels which are not nodata accross the landmask
References
[1] Pan-European land cover map 2015 (Pflugmacher et al., 2019)