Integration · CSV importer

Raw ecological exports in,
traceable observations out

CSV is the first integrations deep-dive: take species sightings, field observations, and GIS-derived location or context columns, normalise them through AltitudeOS's ingestion contract, and feed one consistent observation list into synthesis and desktop reports.

Start a Trial → Back to Integrations Explore Features

Meet field teams where their exports already live

The importer is deliberately narrow and predictable. parseFieldData auto-detects CSV or JSON input, while the CSV path accepts a header row and shapes each observation without requiring a bespoke connector for every field tool.

🦉

Species sightings

Bring exported species lists and sighting counts into the same record shape used by downstream ecology pipelines. Required columns are species, count, date, location, and observer.

📝

Field observations

Keep the field team's notes and context alongside the core observation. Optional notes, id, family, and lifestage columns remain available after normalisation.

🗺️

GIS-derived context

Export location or GIS-derived context as CSV columns and carry it through the observation record. Unknown columns are preserved in extra rather than discarded, so the source context stays attached.

Tokenize, shape, then join into synthesis

The CSV importer does the unglamorous normalization work once, then hands a stable contract to the rest of AltitudeOS. No new upload endpoint or client-side flow is needed on this page.

Raw CSV export

Tolerant at the edges
  • Tokenizes quoted fields and escaped quotes.
  • Strips a UTF-8 BOM and ignores #-prefixed comments.
  • Normalizes CRLF and CR line endings.
  • Matches headers case-insensitively with surrounding whitespace ignored.

Normalized observation

Stable for every pipeline
  • Normalizes dates to ISO YYYY-MM-DD where parseable.
  • Retains the original count and a numeric countNumeric.
  • Records sourceType: 'csv' and the source row line.
  • Passes one unified list into synthesis and Word export.

A small contract with enough room for field reality

The importer requires five canonical columns and accepts optional ecological metadata. Header mapping is case- and whitespace-tolerant, so exports can use presentation-friendly labels without changing the downstream shape.

Representative source row

species,count,date,location,observer,notes,family,lifestage
Acacia melanoxylon,3,15/03/2024,Site 4 A,JD,mixed eucalypt stand,Fabaceae,adult

Normalized record shape

{
  species: "Acacia melanoxylon",
  count: "3", countNumeric: 3,
  date: "2024-03-15", dateRaw: "15/03/2024",
  location: "Site 4 A", observer: "JD",
  notes: "mixed eucalypt stand",
  family: "Fabaceae", lifestage: "adult",
  sourceType: "csv", sourceLine: 2,
  extra: {}
}

Downstream join

The unified observation list is concatenated with synthesized observations from lib/synthesis/index.js, then consumed by lib/export/word_report.js. The returned sourceMeta block keeps the detected format, row count, canonical column map, source type, and input size alongside the records. That is the same join contract used by the report synthesis engine and the desktop-reports pipeline.

Preserve enough provenance to review every row

CSV ingestion is not a silent rewrite. The normalized record keeps the original date in dateRaw, identifies its origin with sourceType: 'csv', and records its input position in sourceLine. Unknown columns are retained in extra so useful field-tool context survives the shape step. When input quality needs attention, the result surfaces ingestionErrors and ingestionWarnings rather than hiding the problem. Reviewers can therefore move from a report value back to the source row and the original field representation.

↩

Original values retained

dateRaw keeps the source date beside the normalized ISO date; count stays available beside countNumeric.

#

Row provenance visible

sourceLine and sourceType identify where a record came from, including the CSV header offset used by the importer.

✓

Warnings are surfaced

ingestionErrors and ingestionWarnings make missing columns, empty fields, and parse issues visible to the calling pipeline.

The CSV importer is the front door, not a dead end

Once shaped, CSV records flow into the synthesis engine's unified observation list and then into the desktop-reports output. See the synthesis engine deep-dive for the normalization-to-assessment step, or follow the desktop-reports page to see how the final Word report pipeline uses the joined data.

Start with the importer, then see the whole pipeline

Create a trial account to explore the AltitudeOS workflow. Compare the right fit on the pricing page, or return to the integrations hub to review the JSON dialect alongside CSV.

See pricing tiers →