{"openapi":"3.0.3","info":{"title":"IMPC models service","description":"Service that allows querying IMPC models on demand","termsOfService":"https://impc.dlr.de/about/terms-of-use","contact":{"name":"IMPC UserHelpDesk","email":"impc-uhd@dlr.de"},"license":{"name":"IMPC License Agreement","url":"https://impc.dlr.de/about/license-agreement"},"version":"0.5.8"},"servers":[{"url":"https://impc.dlr.de/services/models/"}],"paths":{"/api/v1/nedm":{"post":{"tags":["NEDM"],"operationId":"get_nedm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.nedm.Request"},"example":{"f10p7_sfu":100,"receiver":{"alt_km":0.0,"lat_deg":50.0,"lon_deg":15.0},"satellite":{"alt_km":20000.0,"lat_deg":50.0,"lon_deg":15.0},"time":"2024-06-26T14:00:00.000Z"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/geojson.FeatureCollection"},"example":{"features":[{"geometry":{"coordinates":[15.0,50.0,0.0],"type":"Point"},"properties":{"electron_density_10^12/m^3":0.00783505159786806,"radius_km":6365.631517537282,"s_km":0.0},"type":"Feature"},{"geometry":{"coordinates":[15.0,50.0,10.0],"type":"Point"},"properties":{"electron_density_10^12/m^3":0.012122907710447446,"radius_km":6375.63146286499,"s_km":10.0},"type":"Feature"}],"type":"FeatureCollection"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ntcm_g":{"post":{"tags":["NTCM-G"],"operationId":"get_ntcmg","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.ntcm_g.Request"},"example":{"broadcast_parameters":{"ai0":236.831641,"ai1":-0.393629,"ai2":0.004028},"carrier_frequency_hz":1575420000.0,"receiver":{"alt_km":0.0,"lat_deg":-25.033142,"lon_deg":152.007299},"satellite":{"alt_km":20000.0,"lat_deg":-25.033142,"lon_deg":152.007299},"time":"2024-06-26T14:00:00.000Z"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/geojson.FeatureCollection"},"example":{"features":[{"geometry":{"coordinates":[152.007299,-25.033141999999998,450.0],"type":"Point"},"properties":{"vertical_tec_tecu":12.444746490551124},"type":"Feature"},{"geometry":{"coordinates":[[152.007299,-25.033142,0.0],[152.007299,-25.033142,20000.0]],"type":"LineString"},"properties":{"delay_m":2.0206839463370927,"slant_tec_tecu":12.444746490551124},"type":"Feature"}],"type":"FeatureCollection"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"oneOf":[{"type":"object","required":["error_type","reason"],"properties":{"error_type":{"type":"string","enum":["deserialization"]},"reason":{"type":"string","description":"Any kind of error related to decoding / deserializing the user given input"}}},{"type":"object","required":["error_type","reason"],"properties":{"error_type":{"type":"string","enum":["validation"]},"reason":{"type":"object","description":"Any kind of error related to validating the user given input"}}},{"type":"object","required":["error_type","reason"],"properties":{"error_type":{"type":"string","enum":["input"]},"reason":{"type":"string"}}},{"type":"object","required":["error_type","reason"],"properties":{"error_type":{"type":"string","enum":["upstream"]},"reason":{"type":"string"}}},{"type":"object","required":["error_type"],"properties":{"error_type":{"type":"string","enum":["internal"]}}}],"description":"Enumeration representing possible errors returned by the API","discriminator":{"propertyName":"error_type"}},"Point":{"type":"object","title":"utils.Point","description":"Position expressed in geographic coordinate system (latitude, longitude, altitude)","required":["lat_deg","lon_deg","alt_km"],"properties":{"alt_km":{"type":"number","format":"double","description":"Altitude in kilometers"},"lat_deg":{"type":"number","format":"double","description":"Latitude in degrees"},"lon_deg":{"type":"number","format":"double","description":"Longitude in degrees"}}},"geojson.Feature":{"allOf":[{"$ref":"#/components/schemas/geojson.GeoJsonObject"},{"type":"object","required":["geometry","properties"],"properties":{"geometry":{"allOf":[{"$ref":"#/components/schemas/geojson.Geometry"}],"nullable":true},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"type":"object","nullable":true}}}],"description":"GeoJSon 'Feature' object"},"geojson.FeatureCollection":{"allOf":[{"$ref":"#/components/schemas/geojson.GeoJsonObject"},{"type":"object","required":["features"],"properties":{"features":{"type":"array","items":{"$ref":"#/components/schemas/geojson.Feature"}}}}],"description":"GeoJSon 'FeatureCollection' object"},"geojson.GeoJsonObject":{"type":"object","description":"GeoJSon object The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) datum, with longitude and latitude units of decimal degrees. This is equivalent to the coordinate reference system identified by the Open Geospatial Consortium (OGC) URN An OPTIONAL third-position element SHALL be the height in meters above or below the WGS 84 reference ellipsoid. In the absence of elevation values, applications sensitive to height or depth SHOULD interpret positions as being at local ground or sea level.\n","required":["type"],"properties":{"bbox":{"type":"array","items":{"type":"number"},"description":"A GeoJSON object MAY have a member named \"bbox\" to include information on the coordinate range for its Geometries, Features, or FeatureCollections. The value of the bbox member MUST be an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries.\n"},"type":{"type":"string","enum":["Feature","FeatureCollection","Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","GeometryCollection"]}}},"geojson.Geometry":{"allOf":[{"$ref":"#/components/schemas/geojson.GeoJsonObject"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","GeometryCollection"]}}}],"description":"Abstract type for all GeoJSon object except Feature and FeatureCollection\n"},"geojson.GeometryCollection":{"type":"object","description":"GeoJSon geometry collection GeometryCollections composed of a single part or a number of parts of a single type SHOULD be avoided when that single part or a single object of multipart type (MultiPoint, MultiLineString, or MultiPolygon) could be used instead.\n"},"geojson.GeometryElement":{"allOf":[{"$ref":"#/components/schemas/geojson.Geometry"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"]}}}],"description":"Abstract type for all GeoJSon 'Geometry' object the type of which is not 'GeometryCollection'\n"},"geojson.LineString":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["coordinates"],"properties":{"coordinates":{"$ref":"#/components/schemas/geojson.LineStringCoordinates"}}}],"description":"GeoJSon geometry"},"geojson.LineStringCoordinates":{"type":"array","items":{"$ref":"#/components/schemas/geojson.Position"},"description":"GeoJSon fundamental geometry construct, array of two or more positions.\n","minItems":2},"geojson.LinearRing":{"type":"array","items":{"$ref":"#/components/schemas/geojson.Position"},"description":"A linear ring is a closed LineString with four or more positions. The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical. A linear ring is the boundary of a surface or the boundary of a hole in a surface. A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.\n","minItems":4},"geojson.MultiLineString":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["coordinates"],"properties":{"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/geojson.LineStringCoordinates"}}}}],"description":"GeoJSon geometry"},"geojson.MultiPoint":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["coordinates"],"properties":{"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/geojson.Position"}}}}],"description":"GeoJSon geometry"},"geojson.MultiPolygon":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["coordinates"],"properties":{"coordinates":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/geojson.LinearRing"}}}}}],"description":"GeoJSon geometry"},"geojson.Point":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["type","coordinates"],"properties":{"coordinates":{"$ref":"#/components/schemas/geojson.Position"},"type":{"type":"string","enum":["Point"]}}}],"description":"GeoJSon geometry"},"geojson.Polygon":{"allOf":[{"$ref":"#/components/schemas/geojson.GeometryElement"},{"type":"object","required":["coordinates"],"properties":{"coordinates":{"type":"array","items":{"$ref":"#/components/schemas/geojson.LinearRing"}}}}],"description":"GeoJSon geometry"},"geojson.Position":{"type":"array","items":{"type":"number"},"description":"GeoJSon fundamental geometry construct. A position is an array of numbers. There MUST be two or more elements. The first two elements are longitude and latitude, or easting and northing, precisely in that order and using decimal numbers. Altitude or elevation MAY be included as an optional third element. Implementations SHOULD NOT extend positions beyond three elements because the semantics of extra elements are unspecified and ambiguous. Historically, some implementations have used a fourth element to carry a linear referencing measure (sometimes denoted as \"M\") or a numerical timestamp, but in most situations a parser will not be able to properly interpret these values. The interpretation and meaning of additional elements is beyond the scope of this specification, and additional elements MAY be ignored by parsers.\n","maxItems":3,"minItems":2},"models.nedm.Request":{"type":"object","description":"Input data required to run the Neustrelitz Electron Density Model (NEDM)","required":["receiver","satellite","time"],"properties":{"f10p7_sfu":{"type":"number","format":"double","description":"F10.7 in solar flux units\n\nThis value is optional. Not setting it will instruct\nthe server to try and fetch the F10.7 value for the given\ndatetime automatically.","nullable":true},"receiver":{"$ref":"#/components/schemas/Point"},"satellite":{"$ref":"#/components/schemas/Point"},"time":{"type":"string","format":"date-time","description":"Date and time of interest given as an ISO 8601 compliant string"}}},"models.ntcm_g.BroadcastParameters":{"type":"object","required":["ai0","ai1","ai2"],"properties":{"ai0":{"type":"number","format":"double","description":"Effective Ionisation level 1"},"ai1":{"type":"number","format":"double","description":"Effective Ionisation level 2"},"ai2":{"type":"number","format":"double","description":"Effective Ionisation level 3"}}},"models.ntcm_g.Request":{"type":"object","description":"Input data required to run the Neustrelitz Total Electron Content Galileo Model (NTCM-G)","required":["time","receiver","satellite","carrier_frequency_hz"],"properties":{"broadcast_parameters":{"allOf":[{"$ref":"#/components/schemas/models.ntcm_g.BroadcastParameters"}],"nullable":true},"carrier_frequency_hz":{"type":"number","format":"double","description":"Carrier frequency"},"receiver":{"$ref":"#/components/schemas/Point"},"satellite":{"$ref":"#/components/schemas/Point"},"time":{"type":"string","format":"date-time","description":"Date and time of interest given as an ISO 8601 compliant string"}}}}},"externalDocs":{"url":"https://impc.dlr.de/about/imprint-credits","description":"Imprint - Credits"}}