NeotomaDB / Neotoma-API

A Placeholder for the Neotoma API
3 stars 1 forks source link

API returns the wrong default chronology (or incomplete information). #11

Open SimonGoring opened 7 years ago

SimonGoring commented 7 years ago

Neotoma can have multiple default chronologies for a single record. One for each of the possible age types (calendar years, calibrated radiocarbon years, radiocarbon years, varve years). Currently the field DefChronologyID is returning only a single value. This is incomplete. For example, in dataset 684 (Devil's Lake, WI) there are two default chronologies, one for radiocarbon years and one for calibrated radiocarbon years. The DefChronologyID should be either {310, 9930} or, it should respect the precidence in the NDB.AgeTypes table:

AgeTypeID AgeType Precedence
1 Calendar years AD/BC NULL
2 Calendar years BP 1
3 Calibrated radiocarbon years BP 2
4 Radiocarbon years BP 4
5 Varve years BP 3