Tasking¶
The Tasking class enables access to the UP42 tasking functionality.
Use tasking:
tasking = up42.initialize_tasking()
Source code in up42/tasking.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
Functions¶
construct_order_parameters(data_product_id, name, acquisition_start, acquisition_end, geometry)
¶
Helps constructing the parameters dictionary required for the tasking order. Each sensor has additional
parameters that are added to the output dictionary with value None. The potential values for to select from
are given in the logs, for more detail on the parameter use tasking.get_data_product_schema()
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_product_id |
str
|
Id of the desired UP42 data product, see |
required |
name |
str
|
Name of the tasking order project. |
required |
acquisition_start |
Union[str, datetime]
|
Start date of the acquisition period, datetime or isoformat string e.g. "2022-11-01" |
required |
acquisition_end |
Union[str, datetime]
|
End date of the acquisition period, datetime or isoformat string e.g. "2022-11-01" |
required |
geometry |
Union[FeatureCollection, Feature, dict, list, GeoDataFrame, Polygon, Point]
|
Geometry of the area to be captured, default a Polygon. Allows Point feature for specific data products. One of FeatureCollection, Feature, dict (geojson geometry), list (bounds coordinates), GeoDataFrame, shapely.Polygon, shapely.Point. All assume EPSG 4326! |
required |
Returns:
Type | Description |
---|---|
The constructed order parameters dictionary. |
Example
order_parameters = tasking.construct_order_parameters(
data_product_id='647780db-5a06-4b61-b525-577a8b68bb54',
name="My tasking order",
acquisition_start=2022-11-01,
acquisition_end=2022-12-01,
geometry={'type': 'Polygon',
'coordinates': (((13.375966, 52.515068),
(13.375966, 52.516639),
(13.378314, 52.516639),
(13.378314, 52.515068),
(13.375966, 52.515068)),)}
)
Source code in up42/tasking.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|