1. Overview
2. Installation
3. Scope of functionalities
4. Examples of use
5. Technologies
The aim is to download data from servers and transfer it to the SST and NDVI processes. The function /F0020/ Collections of the functional specification is implemented.
There also exists a Docker Repository, which is linked with this one and from which the service can be obtained as an image. And can then be used locally as a container.
The installation and execution is possible exclusively provided within the framework of the docker-compose.yml.docker-compose up
create_Collection()
for creating the Collectionsload_Collection()
for loading the collections.
create_Collection()
includes the parameters:
collection
"Sentinel" or "SST".params
a list with the required parameters:-
params for Sentinel:
directory
path to the workspace (must end with /)timeframe
A touple with two values: (startdate, enddate). The dates must be in the ISO 8601 format yyyy-mm-ddThh:mm:ssZ (e.g. '2020-06-15T23:59:59Z').cloud
Min and max value for cloud coverusername
username for the Copernicus Open Acess Hubpassword
Password for the Copernicus Open Acess Hubname
Name under which the cube is stored
-
params for SST:
start
First year of the cubeend
Last year of the cubedirectory
Path to the workspace (must end with /)name
Name under which the cube is saved
-
The function includes the automated download of the files as Zip- btw. netCDF-file, the processing of the Zip- to netCDF-files, the conversion of these to xArray Datasets, the linking of individual datasets to a complete file, and the saving of this file.
load_Collection()
includes the parameters:
collection
"Sentinel" or "SST".start
First day of the cube. The date must be in the ISO 8601 format yyyy-mm-dd (e.g. '2020-06-15').end
Last day of the cube. The date must be in the ISO 8601 format yyyy-mm-dd (e.g. '2020-06-15').
The function includes the loading of the stored cube, a temporal selection, and the return of the cube for further use.
create_Collection()
'''Params Sentinel'''
directorySentinel = "C:/example/SentinelData/"
nameSentinel = "Sentinel_datacube"
timeframeSentinel = ('2020-06-01T00:00:00Z', '2020-06-15T23:59:59Z')
cloud = (0, 30)
username = "xyz"
password = "xyz"
paramsSentinel = [directorySentinel, timeframeSentinel, cloud, username, password, nameSentinel]
'''Params SST'''
directorySST = "C:/example/SSTData/"
nameSST = 'SST_datacube'
SST_start = 2013
SST_end = 2018
paramsSST = [SST_start, SST_end, directorySST, nameSST]
'''Setup'''
create_collection("Sentinel2", paramsSentinel)
create_collection("SST", paramsSST)
load_Collection
Sentinel = load_collection("Sentinel2",'2020-06-01', '2020-06-13')
SST = load_collection("SST",'2013-06-01', '2018-06-03')
POST /doJob/{job_id}
Accepts a job which is being processed.GET /jobstatus
Returns a JSON with the job status.
Software | Version |
---|---|
numpy | 1.19.3 |
scipy | |
netCDF4 | |
pandas | 1.1.5 |
xarray | 0.16.2 |
sentinelsat | 0.14 |
rasterio | 1.1.8 |
dask[complete] | 2.30.0 |