rs_workflows/on_demand/adf/convert_adf_set.md¶
Convert a set of ADF data.
adf_conversion_scheduled(env, adf_type, cql2_filter_without_date, period, auxiliary_product_to_collection_identifier)
async
¶
Flow to convert ADF data for a scheduled period. The period is defined by the scheduling rule of the flow and
the period parameter, which defines the length of the period to convert starting from the flow run start time.
Source code in docs/rs-client-libraries/rs_workflows/on_demand/adf/convert_adf_set.py
compute_cql2(cql2_query_name, dta, dtb, satellite)
¶
Compute the CQL2 filter content by reading the configuration file and substituting the values.
Source code in docs/rs-client-libraries/rs_workflows/on_demand/adf/convert_adf_set.py
convert_adf_group(period_start_datetime, period_end_datetime, configuration, owner='copernicus')
async
¶
Convert ADF format¶
Convert a set of ADF (Auxiliary Data Files) retrieved from ADGS or rs-catalog.
Workflow Steps¶
- Download — Retrieves the old format of ADF files from ADGS or rs-catalog.
- Convert — Immediately performs the conversion for past periods.
- Schedule — Schedules a conversion flow for future periods.
Parameters¶
| Parameter | Type | Default | Description |
|---|---|---|---|
period_start_datetime |
datetime |
required | Period start in UTC |
period_end_datetime |
datetime |
required | Period end in UTC |
configuration |
dict |
required | JSON configuration (see format below) |
owner |
str |
copernicus |
Name of the user triggering the flow |
Note: If a period traverses the current period, the part of the period in the past is processed immediately, the part of the period in the future is scheduled for later execution.
Configuration Format example¶
{
"satellite": "all",
"aux-to-be-generated": [
{
"product_type": "S00__ADF_ECMWA",
"cql2_query_name": "ValIntersect",
"dTa": 43200,
"dTb": 43200,
"period_in_hours": 24
}
],
"auxiliary-product-to-collection-identifier": [
{
"product_type": "AX___MA1_AX",
"collection_name": "adfs_old_format",
"source": "catalog"
},
{
"product_type": "ADF_ECMWA",
"collection_name": "adfs_new_format"
}
]
}
By default
sourceis set toAUXIPand it is only taken into account for input data.
Source code in docs/rs-client-libraries/rs_workflows/on_demand/adf/convert_adf_set.py
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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
past_adf_conversion(owner_identifier, product_type, cql2_query_name, dta, dtb, period_in_hours, period_start, period_end, auxiliary_product_to_collection_identifier, satellite)
async
¶
Convert ADF data for a period in the past by splitting it into
sub-periods of length period_in_hours and running the conversion flow on each of them.
If period_in_hours is equal to 0, then the conversion is run on the whole period at once.
Source code in docs/rs-client-libraries/rs_workflows/on_demand/adf/convert_adf_set.py
schedule_adf_conversion(owner_identifier, product_type, cql2_query_name, dta, dtb, period_in_hours, period_start, period_end, auxiliary_product_to_collection_identifier, satellite)
async
¶
Convert a single ADF data. - product_type: type of the product to convert. - start: start datetime of the period to convert. - stop: end datetime of the period to convert.
Source code in docs/rs-client-libraries/rs_workflows/on_demand/adf/convert_adf_set.py
schedule_conversion_flow(owner_identifier, rule, cql2_filter_without_date, product_type, period, auxiliary_product_to_collection_identifier)
async
¶
Schedule the conversion flow with the given parameters and scheduling rule.