curl --request POST \
--url https://api.eddy.engineer/v1/gp.weather.snapshot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"blob": "<string>",
"bounds": [
123
],
"credit": [
"<string>"
],
"crs": "<string>",
"csv": {},
"fetch": {},
"fetched_at": "<string>",
"include_document": true,
"licence": "<string>",
"name": "<string>",
"payload_base64": "<string>",
"source": {},
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/gp.weather.snapshot"
payload = {
"async": True,
"blob": "<string>",
"bounds": [123],
"credit": ["<string>"],
"crs": "<string>",
"csv": {},
"fetch": {},
"fetched_at": "<string>",
"include_document": True,
"licence": "<string>",
"name": "<string>",
"payload_base64": "<string>",
"source": {},
"text": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
async: true,
blob: '<string>',
bounds: [123],
credit: ['<string>'],
crs: '<string>',
csv: {},
fetch: {},
fetched_at: '<string>',
include_document: true,
licence: '<string>',
name: '<string>',
payload_base64: '<string>',
source: {},
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/gp.weather.snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/gp.weather.snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'async' => true,
'blob' => '<string>',
'bounds' => [
123
],
'credit' => [
'<string>'
],
'crs' => '<string>',
'csv' => [
],
'fetch' => [
],
'fetched_at' => '<string>',
'include_document' => true,
'licence' => '<string>',
'name' => '<string>',
'payload_base64' => '<string>',
'source' => [
],
'text' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/gp.weather.snapshot"
payload := strings.NewReader("{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/gp.weather.snapshot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.weather.snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}A weather document from ERA5, NASA POWER, an EPW, an NSRDB or Solcast CSV or a WAsP grid, minted as an SP snapshot (GP4)
Mints a weather document (ss.gp.weather/1) through SP5’s snapshot contract: the payload stored by its BLAKE3, the snapshot (connector, source, fetch time, licence, bounds, payload address, the derived document’s key) and the document, whose provenance carries the snapshot’s; the same payload and statement give the same keys. Connectors: weather.era5 (the CDS reanalysis-era5-single-levels-timeseries CSV; credited “Contains modified Copernicus Climate Change Service information” with the DOIs on every result), weather.nasa_power (POWER’s hourly point CSV; CC BY 4.0, cited), weather.epw (an EnergyPlus weather file), weather.csv (an NSRDB PSM or Solcast CSV in the csv layout), wind.wrg (a WAsP resource grid, crs its projected CRS). The payload is text, payload_base64 or a stored blob, with source, fetched_at (the engine keeps no clock) and licence as read. Or fetch () runs as a job (202): ERA5 through the CDS with the operator’s key (SS_CDS_KEY; the gateway never reads a .cdsapirc), NASA POWER from its API when the operator lists power.larc.nasa.gov in SS_SPATIAL_FETCH_HOSTS. Answers snapshot_key, weather_key (what the studies take), payload_key, data_key (the document without its fetch provenance), weather (kind, channels, steps, start, step, site, credit) and notes. Refused by name: GP_REQUEST (400: the body, a connector that is not a weather one, not exactly one payload, no source, time or licence), GP_CDS_NOT_CONFIGURED (503: an ERA5 fetch with no operator key), FETCH_DENIED (403: POWER’s host not listed), GP_DOCUMENT_NOT_FOUND (404: no such blob), and the crate’s own (422: PARSE, REQUEST, CDS_LICENCE, FETCH, … with its message).
curl --request POST \
--url https://api.eddy.engineer/v1/gp.weather.snapshot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"blob": "<string>",
"bounds": [
123
],
"credit": [
"<string>"
],
"crs": "<string>",
"csv": {},
"fetch": {},
"fetched_at": "<string>",
"include_document": true,
"licence": "<string>",
"name": "<string>",
"payload_base64": "<string>",
"source": {},
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/gp.weather.snapshot"
payload = {
"async": True,
"blob": "<string>",
"bounds": [123],
"credit": ["<string>"],
"crs": "<string>",
"csv": {},
"fetch": {},
"fetched_at": "<string>",
"include_document": True,
"licence": "<string>",
"name": "<string>",
"payload_base64": "<string>",
"source": {},
"text": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
async: true,
blob: '<string>',
bounds: [123],
credit: ['<string>'],
crs: '<string>',
csv: {},
fetch: {},
fetched_at: '<string>',
include_document: true,
licence: '<string>',
name: '<string>',
payload_base64: '<string>',
source: {},
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/gp.weather.snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/gp.weather.snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'async' => true,
'blob' => '<string>',
'bounds' => [
123
],
'credit' => [
'<string>'
],
'crs' => '<string>',
'csv' => [
],
'fetch' => [
],
'fetched_at' => '<string>',
'include_document' => true,
'licence' => '<string>',
'name' => '<string>',
'payload_base64' => '<string>',
'source' => [
],
'text' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/gp.weather.snapshot"
payload := strings.NewReader("{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/gp.weather.snapshot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.weather.snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"async\": true,\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"credit\": [\n \"<string>\"\n ],\n \"crs\": \"<string>\",\n \"csv\": {},\n \"fetch\": {},\n \"fetched_at\": \"<string>\",\n \"include_document\": true,\n \"licence\": \"<string>\",\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"source\": {},\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
The payload as text (a CSV, EPW or WRG file's contents)
Response
connector, snapshot_key, weather_key, payload_key, data_key, blob_uri, licence, fetched_at, fetch, weather, notes
The response is of type object.