Base functions#
- eocrops.utils.base_functions.MetaInfos(saving_path, N)[source]#
Get meta info from a .tif using rasterio. Nodata is set to np.nan
- eocrops.utils.base_functions.WriteTiff(array, saving_path, meta, dim=1)[source]#
Write a tiff file from a numpy array using rasterio
- eocrops.utils.base_functions.check_crs(reference_file_)[source]#
Check crs from a GeoDataFrame and transform it into UTM
- eocrops.utils.base_functions.get_bounding_box(shapefile)[source]#
Get the bounding box of a given polygon for sentinelhub request