The simulation report of a non-sequential scene: units, sources, detectors in lumens / lux / candela with chromaticity and CCT, the energy accounting (OP6)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.report \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.report"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/optics.report', 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/optics.report",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/optics.report"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
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/optics.report")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyOptics
The simulation report of a non-sequential scene: units, sources, detectors in lumens / lux / candela with chromaticity and CCT, the energy accounting (OP6)
The same body as `/v1/solve.illumination` (the run is content-addressed and shared). The scene's `units` {source_units: Watts | Lumens (Joules names OP6.b), source_prefix, analysis_units: WattsPerMMSq | WattsPerCMSq | WattsPerinSq | WattsPerMSq | WattsPerftSq, analysis_prefix, observer: CIE1931 | CIE1964} and a source's `spectrum` {kind: blackbody (temperature_k) | monochromatic (wavelength_um) | sampled (rows [[λ µm, power]]) | d65 | uniform} feed every photometric number: lumens convert to watts by the spectrum's luminous efficacy (683 lm/W · Σ w V(λ)), every detector answers luminous_flux_lm, illuminance_lux (or the polar detector's candela bins), the tristimulus XYZ, chromaticity xy / u′v′ and McCamy's CCT from its per-wavelength fluxes. The sky sources SourceSkyOvercast (the CIE standard overcast, L(θ)/L_z = (1 + 2 cos θ)/3) and SourceSkyUniform are domes of params [radius, zenith radiance] about the object's origin whose flux follows their law (the power column is not used). Answers {result_id, cached, units, photometric, observer, sources, detectors, energy, rays, rse}.
POST
/
v1
/
optics.report
The simulation report of a non-sequential scene: units, sources, detectors in lumens / lux / candela with chromaticity and CCT, the energy accounting (OP6)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.report \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.report"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/optics.report', 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/optics.report",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/optics.report"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
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/optics.report")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyBody
application/json
The body is of type object.
Response
the report