TruePath Filter API

Access & limitsPublic, no key needed · Medium▾

Open to everyone. A free API key from your profile raises the limits: send it in an X-API-Key header, or as api_key= in the address.

5 minutesHourDay
Without a key1060300
With a key302001,500

Log in to create a free key on your profile page.

Every answer carries X-RateLimit-Remaining and X-RateLimit-Reset. Over a limit, the answer is error 429 with retry_after in seconds. Refused requests do not count.

POST No key needed JSON or CSV 60 an hour without a key, 200 with one

TruePath is the filter Altimeter Cloud runs on imported flight logs to take out the spikes and dropouts a barometric altimeter records, such as the pressure jump at ejection or a port blocked for a moment, while leaving the real flight alone. This API runs exactly the same filter over a log you send: any altimeter, any make, as long as the log has a time and an altitude for each sample.

POSThttps://www.altimetercloud.com/api/truepath/csv

Parameters

ParameterRequiredMeaning
csvYesThe log, as an uploaded file or as text: one sample a line, the time and the altitude separated by a comma, semicolon, tab or spaces. Lines that are not two numbers, such as a header, are skipped. Times must rise. At least 50 samples, at most 100,000, and up to 20 MB.
time_unitsNoms (the default) or s
alt_unitsNom (the default) or ft. The answer comes back in the same units.
launchNoThe launch time in the log's own time units, for a log timed from power on. Leave it out when the log's time 0 is the launch.
time_col, alt_colNoWhich columns hold the time and the altitude, counting from 1. The defaults are 1 and 2.
formatNojson (the default) or csv, a file of time, TruePath altitude and the altitude you sent

What it changes

TruePath only replaces samples it judges to be errors in the pressure reading, and fills them from the flight around them. The climb under thrust is never edited, and a clean log comes back unchanged. Every time comes back exactly as you sent it, so the answer lines up sample for sample with your log.

Example

curl -X POST https://www.altimetercloud.com/api/truepath/ -F "csv=@flight.csv" -F "alt_units=ft"
Response (shortened)
{
  "success": true,
  "samples": 4210,
  "skipped_lines": 1,             the header
  "samples_changed": 37,
  "time_units": "ms", "alt_units": "ft", "launch": 0,
  "samples_before_launch": 0,
  "truepath_rev": 10,
  "columns": ["time", "truepath_altitude", "source_altitude"],
  "data": [ [0, 0.0, 0.0], [20, 0.4, 0.4], ... ]
}

Errors

CodeMeaning
405The log was not sent as a POST
412A parameter is not valid, the log is missing, its times do not rise, or it has fewer than 50 samples
413The log is too large or has more than 100,000 samples
429Too many requests; retry_after says how long to wait

Crediting AltimeterCloud

Free to use. If you use this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com at the point of use: on the screen, page or printout where the data appears, for example “Data from AltimeterCloud.com”. Any credits the data's own sources ask for, listed on this page, apply as well.