Base functions#

eocrops.utils.base_functions.save_numpy(path, array, name_array)[source]#

Save a numpy array

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

eocrops.utils.base_functions.get_resampled_periods(start, end, year, days_range=1)[source]#

Get the resampled periods from the resample range

eocrops.utils.base_functions.concatenate_outputs(ds, output, fname_, id_column='path')[source]#

Perform a loop on multiple dataframes on axis=0 and concatenate them