{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Quick Start - Point Query\n", "## Your First Query\n", "The most basic Geospatial APIs query is the *point query*, we are going to get you started with the Geospatial APIs SDK by using it to do a point query:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2023-08-15 09:11:40 - paw - INFO - The client authentication method is assumed to be OAuth2.\n", "2023-08-15 09:11:40 - paw - INFO - Legacy Environment is False\n", "2023-08-15 09:11:43 - paw - INFO - Authentication success.\n", "2023-08-15 09:11:43 - paw - INFO - HOST: https://api.ibm.com/geospatial/run/na/core/v3\n", "2023-08-15 09:11:43 - paw - INFO - TASK: submit STARTING.\n", "2023-08-15 09:11:58 - paw - INFO - TASK: submit COMPLETED.\n" ] }, { "data": { "text/html": [ "
\n", " | layer_id | \n", "layer_name | \n", "dataset | \n", "timestamp | \n", "longitude | \n", "latitude | \n", "value | \n", "datetime | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1672531200000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.0464 | \n", "2023-01-01 | \n", "
1 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1672790400000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.03069999999999995 | \n", "2023-01-04 | \n", "
2 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1672963200000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.16830000000000012 | \n", "2023-01-06 | \n", "
3 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1673222400000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.0746 | \n", "2023-01-09 | \n", "
4 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1673395200000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.34330000000000016 | \n", "2023-01-11 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
65 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1687046400000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.02200000000000002 | \n", "2023-06-18 | \n", "
66 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1687219200000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.04310000000000014 | \n", "2023-06-20 | \n", "
67 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1687651200000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.5886 | \n", "2023-06-25 | \n", "
68 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1687910400000 | \n", "-1.483759 | \n", "50.921633 | \n", "0.4386000000000001 | \n", "2023-06-28 | \n", "
69 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "1688083200000 | \n", "-1.483759 | \n", "50.921633 | \n", "-0.01739999999999997 | \n", "2023-06-30 | \n", "
70 rows × 8 columns
\n", "\n", " | layer_id | \n", "layer_name | \n", "dataset | \n", "longitude | \n", "latitude | \n", "value | \n", "aggregation | \n", "alias | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "49464 | \n", "Normalized difference vegetation index | \n", "High res imagery (ESA Sentinel 2) | \n", "-122.4194 | \n", "37.7749 | \n", "0.08440000000000003 | \n", "Max | \n", "49464.1672531200000>1688083200000 | \n", "
1 | \n", "91 | \n", "Daily precipitation | \n", "Daily US weather (PRISM) | \n", "-122.4194 | \n", "37.7749 | \n", "4.467446735076344 | \n", "Mean | \n", "91.1669852800000>1688083200000 | \n", "
2 | \n", "91 | \n", "Daily precipitation | \n", "Daily US weather (PRISM) | \n", "-74.0060 | \n", "40.7128 | \n", "3.035630824596353 | \n", "Mean | \n", "91.1669852800000>1688083200000 | \n", "