Calculating differences

30 views
Skip to first unread message

Peter Almond

unread,
Mar 10, 2022, 11:42:09 PMMar 10
to OxCal

Kia ora kotou

Oxcal doesn't like this line in my script:

Difference("BB_present_II_interval", C_Date(2001), "BBE_II") where BBE_II is a parameter derived from the model.

Is a cross-reference the solution here?

Thanks
Peter

MILLARD, ANDREW R.

unread,
Mar 11, 2022, 3:39:22 AMMar 11
to ox...@googlegroups.com

Yes, you need

Difference("BB_present_II_interval", C_Date(2001), "=BBE_II")

 

Best wishes

Andrew

--

Dr. Andrew Millard

Associate Professor of Archaeology,

Durham University, UK

Email: A.R.M...@durham.ac.uk 

Personal page: https://www.dur.ac.uk/directory/profile/?id=160

Scottish Soldiers Project: https://www.dur.ac.uk/scottishsoldiers

Dunbar 1650 MOOC: https://www.futurelearn.com/courses/battle-of-dunbar-1650

 

 

From: ox...@googlegroups.com <ox...@googlegroups.com> On Behalf Of Peter Almond
Sent: 11 March 2022 04:42
To: OxCal <ox...@googlegroups.com>
Subject: Calculating differences

 

[EXTERNAL EMAIL]

--
You received this message because you are subscribed to the Google Groups "OxCal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oxcal+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/oxcal/69cdc744-eaa0-47cc-bd59-adf6b861958an%40googlegroups.com.

Peter Almond

unread,
Mar 11, 2022, 4:25:10 AMMar 11
to OxCal
Thanks Andrew
I did as you suggested but still no go. When I comment out the line the script runs, when I turn it back into a line of script I get errors with resolving order.

Peter

Peter Almond

unread,
Mar 11, 2022, 4:43:35 AMMar 11
to OxCal
I figured out a work-around. I defined a parameter
Now=C_Date(2001)

Then
Difference("BB_present_II_interval", "Now", "BBE_II")

worked. Note I didn't use the cross-reference format for the parameter BBE_II.

Peter
Reply all
Reply to author
Forward
0 new messages