Step 3: Import dataset and view it in Sift
Overview
As in Step 3 of the first tutorial, where we imported the dataset using the UI, in this step we will import the dataset programmatically, in particular using the REST API.
We'll use the CreateDataImportFromUrl
endpoint instead of the CreateDataImportFromUpload
endpoint.
This approach allows us to provide a URL to the dataset rather than uploading a local file, simplifying the process for this tutorial.
Import data
Run the cURL command below to import the dataset. The url
parameter in the request specifies the location of the dataset, which has been provided at that URL for the purposes of this tutorial.
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_asset
andfl_demo_run
) with your initials.
A successful response
View imported data in Sift
Now that we have imported the dataset using the REST API, let's view the imported data in Sift.
- In Sift, click .
- In the Run name or description box, enter the name of the Run.
- Click the name of the Run.
Asset ID: Before viewing the imported data in Sift, copy and save the Asset ID, as it will be needed in Step 4 to create a Calculated Channel. Hover over the Asset ID field and, in the popup box, click Copy to copy the Asset ID.
Run ID: Before viewing the imported data in Sift, copy and save the Run ID, as it will be needed in Step 5 to generate a Report. In the Run ID field, click Copy.
- Click Explore 2 (Beta).
- In the Channels tab, click the following Channels:
- min_ground_temp(C)
- max_air_temp(C)
- max_ground_temp(C)
- min_air_temp(C)
- weather
