ISAAKiel / oxcAAR

R Package - Interaction with Oxcal
GNU General Public License v2.0
21 stars 4 forks source link

Problems reporting in years before present instead of BC/AD #48

Open vjpsyverson opened 1 year ago

vjpsyverson commented 1 year ago

Calibration results seem to be returned in YBP or in BC/AD by some internal logic that determines which is preferable. However, when I create a script that includes the command "BCAD=FALSE" and execute it using executeOxcalScript(), which in the Oxcal web interface would cause it to return the calibrated dates in YBP, it does not seem to have any effect.

Is there a way to return the calibration results reliably in YBP? If not, is this a bug?

It's possible I am misinterpreting the results and it is ALWAYS reporting in BC/AD and never in YBP, in which case this is an issue but I have an easy workaround by simply adding 1950 to all the dates.

(There does not appear to be an option in the built-in R functions (eg. oxcalCalibrate()) to report results in ybp, but I assume this was a deliberate design choice.)