Published
Edited
Jan 10, 2022
Insert cell
Insert cell
Insert cell
Insert cell
// Fix use of & in the XML
xml1 = xml.replaceAll("&", "&")
Insert cell
layersArray = xmlToJSON(xml1).WMS_Capabilities.Capability.Layer.Layer.Layer.map(
(d) => d.Name
)
Insert cell
Insert cell
xmlResponse = fetch(
"https://www.globalcarbonatlas.org:8443/thredds/wms/Atlas/Flux_Transcom/Inversions-2013/monthlymean/fco2_C13-CCAM-law_June2018-ext3_1992-2008_monthlymean_XYT.nc?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
).then((response) => {
return response.text();
//return response;
})
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more