Step 6: Create Calculated Channel and view it in Sift
Overview
As in Step 6 of the first tutorial, let's create a Calculated Channel that computes the difference between max_air_temp(C)
and min_air_temp(C)
to capture the daily air temperature swing. This time, we will do it using the REST API instead of the UI. The endpoint we will use to create the Calculated Channel is CreateCalculatedChannel
.
Create Calculated Channel
Run the cURL command below to create the Calculated Channel.
Placeholders
- Replace
YOUR_REST_API_URL_HERE
with your REST API URL obtained in the previous step. - Replace
YOUR_API_KEY_HERE
with your API key obtained in the previous step. - Replace
fl
(infl_demo_calculated_channel
) with your initials. - Replace
ASSET_ID
with the ASSET ID you copied in Step 3.
A successful response
Plot Calculated Channel in Sift
Now that we have created the Calculated Channel using the REST API, let's view the created Calculated Channel in Sift.
- In Sift, click .
- Click the Runs tab.
- In the Run name or description box, enter the name of the created Run.
- Click your Run from the search results to open it.
- Click Explore 2.
- In the Channels tab, click the following Channels:
- max_air_temp(C)
- min_air_temp(C)
- Click the Calculated Channels tab.
- In the Calculated Channels tab, click the name of the created Calculated Channel.
