sentinelapi
Code to download data using the Copernicus OData API. https://documentation.dataspace.copernicus.eu/APIs/OData.html
- get_access_token()
Create account at https://dataspace.copernicus.eu/
- process_sentinel(scenes, variables, time_func, final_fn, post_processors, processor, bb=None)
Process downloaded Sentinel scenes into netCDFs.
- Parameters
scenes (list) – Paths to downloaded nodes.
variables (dict) – Keys are variable names, values are additional settings.
time_func (function) – Function that parses a np.datetime64 from a filename.
final_fn (str) – Path to the file in which to store all the combined data.
post_processors (dict) – Functions to apply when the data has been processed.
processor (function) – Function to apply sensor specific transformations.
bb (list, optional) – Boundingbox to clip to, [xmin, ymin, xmax, ymax], by default None.
- Returns
Ouput data.
- Return type
xr.Dataset
- Raises
ValueError – Invalid value for source_name.