Open format
CEXF guide: appendices
Downloads (Markdown, JSON Schema, test vectors, zip): see the overview.
Appendix A: Reference implementation notes
This appendix is informative, not normative. Celestium Exchange is the reference implementation of this format. It writes into, and reads from, Celestium, whose charts offer less than the format allows. This appendix lists where the reference implementation does less than the format allows, what the user then sees, and which row of §10 gives the notice. These are limits of one program, not rules of the format: a reader with a wider data model owes none of these notices. Where this appendix and the numbered sections disagree, the numbered sections govern.
Celestium imports every chart that has a moment and a place. A chart type for which it has no chart
of its own becomes a Transit at a moment and place that it derives from the chart, with a label and one notice (the rows on
chart types below, row CH17); only a profection, a group-composite, a chart of a type that is not
registered, a planet-return whose body is not in the register, a chart without a usable moment or place, a chart with a sequence above 2147483647, a chart whose utc or localTime lies before year 1 (when that is the chart at sequence 0, the derived charts of that subject are not imported either) and a minor-progression outside the years 1 to 9999 are not imported. Where a file asks for something that Celestium does not offer for
one chart, Celestium calculates and draws the chart with its own setting. It issues one notice for
each chart, which names what could not be taken over. A value that equals what Celestium shows
anyway is not named. The house system and the other settings below are global settings of
Celestium. A screen of Celestium can offer its own choice of house system for the length of that
screen, but that choice is not a property of a chart and is never written to a file.
| Situation | What the reference implementation does | Notice |
|---|---|---|
kind other than person (SU3) |
Shows the subject as a person: Celestium has no other subject kind. When writing it writes kind: "person", except for a horary chart whose querent has no birth data (see the row on a horary chart below). |
One per file, with the number of subjects (row SU3). |
houseSystem with a registered value (§7c) |
Imports the chart and draws it with the global house system of Celestium. The user sees the global setting, and the drawing follows it when the user changes it. A value that equals the global setting is not named. | One per chart, shared with the rows below, only when the value differs. |
houseSystem when writing |
Celestium keeps no house system per chart, only one global setting. For a file meant for a different program (§14) Celestium Exchange writes houseSystem on every chart: by default the global setting at the moment of export, and on a chart where the user chose otherwise in the export dialog, that choice. The choice is made for this one export and is not stored. A house system that a screen of Celestium uses for itself (the transit list, the two-wheel view) is never written. For another Celestium installation it writes no houseSystem. |
None. |
houses on a composite (§6.4) |
Imports the chart. Celestium draws every composite with its global setting, cusp-midpoints or derived-from-mc, and shows no house method per chart. A value that equals the setting is not named. |
One per chart, shared (row CH17). |
houseAnchor (§6.4) |
Imports the chart. Celestium draws a composite with cusp-midpoints as houseAnchor none: every cusp is the midpoint of the cusps of the parents. ascendant, midheaven and auto are drawn as none. |
One per chart, shared (row CH17). |
houses on a solar-arc (§6.4) |
Imports the chart. Celestium keeps no houses method per solar arc chart, only one global setting, which it names "Huizen bij zonneboog" (houses in solar arc; arc-shifted or from-directed-mc), and draws every solar arc chart with it. A value that equals the setting is not named. |
One per chart, shared (row CH17). |
angles on a primary-direction (§6.4) |
Imports the chart. Celestium keeps no choice for the directed Midheaven per chart, only one global setting, which it names "Gedirigeerd MC" (directed MC; method-mc or ramc-arc), and draws every primary direction with it. A value that equals the setting is not named. |
One per chart, shared (row CH17). |
lunarNode and blackMoon when reading (§7c.6, CH20) |
Imports the chart and draws it with the nodes and the Black Moon of its global setting: Celestium keeps no variant per chart. A value of the right form that is not registered is not recorded. | A registered value: one per file, with the number of charts, only for charts whose value differs from the setting (or when the setting cannot be read). A value outside the register: one per chart (row CH20). A blank value or one of the wrong form is row E5. |
lunarNode and blackMoon when writing (§7c.6) |
Celestium Exchange writes on every chart the central setting of Celestium at the moment of export (the choice between the mean and the true node, and between the mean and the osculating Black Moon): lunarNode mean or true, blackMoon mean-apogee or osculating-apogee. It never writes interpolated-apogee: in Celestium the corrected Black Moon is a separate extra point, not a variant of the Black Moon on the main wheel. When the setting cannot be read, it writes neither field. |
One per export, when the setting cannot be read. |
A registered ayanamsa on a sidereal chart that Celestium does not calculate, a customAyanamsa, a draconic zodiacSystem (CH17, §7c.4, §7c.5) |
Imports the chart and calculates it with the zodiac setting that Celestium has globally. Celestium calculates 6 of the 47 registered ayanamsas: lahiri, raman, krishnamurti, fagan-bradley, de-luce and usha-shashi. |
One per chart, shared, with the value. |
zodiacSystem or ayanamsa that the reader does not recognise (CH11, CH12) |
Imports the chart and calculates it with its global zodiac setting. The file is not changed. | One per chart, shared, with the value. |
A frame other than geocentric (heliocentric, topocentric, barycentric, selenocentric) or a frame that is not recognised (CH17, §7c.3) |
Imports the chart and calculates it with its own setting for the frame. | One per chart, shared, with the value. |
| Calculation parameters of a direction or progression when reading (§6.4, CH17) | Imports the chart and calculates it with its own technique where the value is not one it calculates. Celestium calculates key naibod, the three rotation methods (ra-rotation, semi-arc-scaled-rotation, position-circle-rotation), aspects zodiacal, latitude promissor and both, and angles quotidian on a progression. Every other registered value (angles on a primary-direction has its own row above), and a classical method (placidian-semi-arc, placidian-under-the-pole, regiomontanus, campanus, topocentric), is replaced by Celestium's own technique. |
One per chart, shared, naming the parameter and the value. |
life-event, and a planet-return of a body other than the Sun and the Moon (§6.3, CH17) |
Imports the chart as a Transit at the moment and the place in the file. The chart carries the label from the file, or for a planet-return without a label a fixed description such as "Mars-return". Celestium shows no calculation of the event or the return itself. A life-event without a location is not imported. |
One per chart (row CH17). |
A planet-return of the Sun or the Moon (§6.4) |
Imports the chart as a Solaar (the Sun) or a Lunaar (the Moon), like solar-return and lunar-return. |
None. |
A type that is not registered, and a planet-return whose body is not in the register (vulcan, say) (§6.2, §6.4, CH1) |
Does not import the chart. The rest of the subject is imported as normal, except when the subject is not imported or is horary (rows below); the CH1 notice is given all the same. The file is not changed. | One per chart (row CH1). |
profection and group-composite (§6.3, CH1) |
Does not import the chart. The rest of the subject is imported as normal, except when the subject is not imported or is horary (rows below); the CH1 notice is given all the same. Celestium has no such chart. | One per chart (row CH1). |
relocation and electional (§6.3, CH17) |
Imports the chart as a Transit at the moment and the place of the chart itself. The chart carries the label from the file, or the name of the type (relocation, electional). A chart without time or location is not imported. A relocation that row RF2 or RF3 discards is discarded first. Celestium never writes these types. |
One per chart (row CH17). |
minor-progression (§6.3, CH17) |
Imports the chart as a Transit at the progressed moment, t_p = t_0 + d for direct and t_0 - d for converse, with d = age x 29.53059 days (§6.4) and t_0 the utc of the sequence 0 chart, at the place of the sequence 0 chart. The chart carries the label from the file, or the name of the type. When the sequence 0 chart has no moment or no place, or age cannot be read, the chart is not imported; the same holds when t_p lies outside the years 1 to 9999 (the row on a minor-progression outside those years, below). Celestium never writes this type. |
One per chart (row CH17). |
time.unknown: true on a derived chart (§7.5) |
Imports the chart with its calculated moment. The flag is not shown for a derived chart. On the primary chart the flag round-trips. | One per chart (row CH10). |
time.unknown: true with a replacement moment other than local noon (§7.5) |
Replaces the moment with local noon on the known date, for every source format. | One notice for every unknown time, and a second one only when the supplied moment differed from local noon (row CH10). At exactly 12:00 only the first is issued. |
utcOffset with a seconds component on a derived chart (§7.6) |
Keeps the absolute moment exact and shows the offset as +00:00. On the primary chart nothing is lost. |
One per chart (row CH15). |
parameters keys it does not recognise (CH6), extensions keys of a chart it does not recognise (CH14) and extensions keys of a subject it does not recognise (SU7), when importing into Celestium |
They do not appear in Celestium and are not passed on. | One per file. |
| A member that this version does not define in a folder, subject, chart, note or reference (E4) | Reads the record. The member does not appear in Celestium. | One per record, naming the members (row E4). |
A number in parameters with more digits than a double holds (CH15) |
Rounds it to the nearest double and goes on. |
One per chart and field (row CH15). |
sex on a subject (§4.2) |
Does not show it: Celestium shows no sex for a subject. | One per file, with the number of subjects. |
source on a chart (§5.2), including source.kind |
Does not show it: Celestium shows no source for a chart. | One per file, with the number of charts. |
time.dstOffset (§7.11) |
Does not show it: Celestium shows the local time and the whole offset. | One per file, with the number of charts. |
time.standard: "lat" (§7.9) |
Does not show it: Celestium shows zone time and local mean time only. The moment (utc) is unchanged. |
One per file, with the number of charts. |
time.standard: "lmt" whose utcOffset differs from the local mean time of the location (§7.9) |
Imports the chart as local mean time anyway, and keeps the moment. This check belongs to the reference implementation: a generic reader does not check the offset against the place (§7.9). | One per chart, naming both offsets. |
Time kind L in AAF and zone LMT in Quick*Chart |
Imports the chart as local mean time: an empty time zone and the moment in UTC, as for time.standard: "lmt". The offset follows from the longitude (four minutes per degree), rounded to whole seconds. |
One per record. |
A sequence above 2147483647 (§5) |
Does not import the chart: Celestium cannot number a chart above 2147483647, and the reference implementation does not renumber the chart. A chart that a row of §10 discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. | One per chart. |
A parents entry that names a chart whose sequence is above 2147483647 (§8) |
Does not link to that chart: the chart is not imported (the row above), so the entry has nothing to point at. The entry is dropped from the model, as for row RF4, and the file is not changed. An entry that names no chart, or that lacks subject, is read as for any other sequence (rows RF4 and RF5). |
One per entry (row RF4). |
A chart whose utc or localTime lies before year 1 (§7.10) |
Does not import the chart: Celestium cannot show such a date. A chart that a row of §10 discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. A parents entry that names the chart is dropped from the model, as for row RF4 (see the row on a sequence above 2147483647), and when the chart is the one at sequence 0, the derived charts of that subject are not imported either. |
One per chart. |
A minor-progression whose progressed moment lies outside the years 1 to 9999 (§6.4, §7.10) |
Does not import the chart: Celestium cannot show such a date. A chart that a row of §10 discards is discarded first. For a chart that no row of §10 skips, refuses or discards, the data is good: Celestium reports no row E4, E5 or NO1 to NO3 for it or its notes, because it does not read them, and does not change the file. A reader that can hold the chart applies those rows as usual. A parents entry that names the chart is dropped from the model, as for row RF4 (see the row on a sequence above 2147483647). |
One per chart. |
time and location of a synastry chart (§7.7) |
Writes what Celestium shows for the chart. Celestium shows a synastry chart with the moment, the place and the time zone of the birth of the second parent chart, so that is what the file carries. | None. |
A composite or synastry chart without time (§7.7) |
Does not import it. Celestium has no chart without a moment, and the reference implementation invents none. The parent links do not appear either. | One per chart. |
#SRC and #VIA lines in AAF (§5.2) |
Put the text in the notes of the person, not in source: Celestium shows no source and Exchange writes only what Celestium shows. |
None. |
| A horary chart whose querent has no birth data (§4.4) | Celestium shows a horary chart under a person who has a primary chart. For a querent without birth data it shows a person with fictitious birth data. Celestium Exchange never writes those fictitious data as real birth data: it writes the horary chart as a subject with kind: "horary", one subject for each horary chart. |
None. |
A subject with kind: "horary" on import (§4.4) |
The import wizard of Celestium Import and Celestium Exchange asks who asked the question. It asks only when the file has such a subject, and the step comes after the other steps. The user picks a person already in the file or in Celestium, enters a new name, or skips the chart. A new querent without birth data gets a fictitious birth: 1 January 1800, 12:00, Amsterdam, with a fixed note that says so. Charts derived from the horary subject are not imported. The horary chart itself is imported last. | One per chart left out or skipped, and one per new querent. |
A parents entry that names the chart at sequence 0 of a subject with kind: "horary" (§8, §4.4) |
Does not link to that chart. Celestium imports the horary chart last, after the user has chosen who asked the question (see the row on a subject with kind: "horary" above), so the other charts have no chart to link to. The entry is dropped from the model, and the chart that carries it is imported with its other parent, if it has one. The file is not changed. |
One per entry (row RF4). |
| Parent links (§8) | Shows parent links for composite, davison and synastry only, by position among the parent entries. |
As row RF4 where a parent is missing. |
A folder with protected: true (§3.1) |
The import wizard lists every protected folder and offers a field for a new code, which may be left empty. | None. |
| Calculation parameters when writing (§6.4) | Writes what Celestium calculates. On a primary-direction chart: key naibod; method ra-rotation for Celestium's Ptolemaic method, semi-arc-scaled-rotation for its Placidus method and position-circle-rotation for its Regiomontanus method; latitude promissor (every point keeps its own ecliptic latitude, the angles have latitude 0); angles from the global setting "Gedirigeerd MC" (directed MC) at the moment of export (method-mc or ramc-arc); no aspects. On a progression: angles quotidian. On a solar-arc: houses from the global setting "Huizen bij zonneboog" (houses in solar arc) at the moment of export (arc-shifted or from-directed-mc). On a composite: houses from the global setting of Celestium at the moment of export (derived-from-mc when its Midheaven method is on, cusp-midpoints otherwise), and houseAnchor none with cusp-midpoints. When a setting cannot be read, the houses of that chart type, or the angles of a primary-direction, is left out and the export reports it once. |
None. |
| A file larger than the reading limit of the reader (§10.3) | Does not read the file and says that it is too large. The limit is a memory limit of the implementation, not a rule of the format. Celestium Exchange, the 64-bit reference implementation, sets it from the free memory when the program starts (that memory minus 256 MiB, divided by 30, and never below 64 MiB). Celestium Import, its 32-bit companion, reads up to 64 MiB. A reader with more memory reads such a file. | One message for the file, no row of §10. |
A.1 The chart types of Celestium (§6.2)
Celestium has a chart type for every key of §6.2 except minor-progression, relocation, planet-return, group-composite, electional, life-event and profection (§6.3). A life-event, a planet-return, a relocation, an electional and a minor-progression come in as a Transit (see the table); a planet-return of the Sun or the Moon comes in as a Solaar or a Lunaar. In the Celestium interface solar-return is "Solaar", lunar-return is "Lunaar" and horary is "Uurhoek". Celestium calculates only the sidereal variant of the minor progression (sidereal-minor-progression), which it calls its "minus-one system". Within Celestium the ingress is exclusively one of the four cardinal ingresses of the Sun.
A.2 The direction of a direction chart (§6.4)
Celestium does not keep the direction of a direction chart as a field of its own, next to the age. Celestium Exchange therefore translates. On export it writes a positive age and an explicit direction, direct or converse. On import it turns direction into the form Celestium keeps. In the file the direction is always the parameter direction, required, with no implicit default: a chart where direction is missing or has a value other than these two is discarded, with a notice (§10, row CH3).
A.3 Seconds in utcOffset on the primary chart and on a derived chart (§7.6)
The .NET type DateTimeOffset does not allow an offset with a seconds component and throws an ArgumentException in every constructor. That can make a reader crash on exactly the example that this guide itself gives (§12, the Peace of Münster with "+00:30:30"), the kind of failure §10 is meant to rule out.
The reference implementation resolves this as follows, and it differs by chart type:
- On the primary chart (
sequence0) nothing is lost. The local time and the offset are kept separately, with no limit on the offset, and a second-level offset round-trips exactly. - On a derived chart the offset is normalised to UTC. The absolute moment stays exact, but the offset text itself is lost and the chart comes out with
+00:00. This is reported (row CH15), never silently and never with a crash.
A reader that has no such restriction needs to do nothing about this: it is a property of the time type of one reader, not a requirement of the format. See also §10.4.
A.4 The key nl.celestium.rulerOverrides (§9.4)
Celestium Exchange writes its own overrides of house rulers (customised house-ruler assignments per chart) under the key nl.celestium.rulerOverrides. The value is a nested JSON object. Its content is not specified here and can change between versions of Celestium. A writer that does not know the concept leaves the key out. For any other reader this is an unrecognised extensions key, subject to the rules of §9.3.
Appendix B: Notes for implementers, by language
Everything below was observed in independent implementations of this format in seven languages (Python, JavaScript, Java, Go, Ruby, F# and C), each written from an earlier version of the specification alone, without access to the reference implementation. They hit different walls. What follows is the collected result, so that the next implementer does not have to rediscover any of it. Where a statement here is marked as verified, the code it quotes was run.
The traps split into two kinds. Some are about this format and catch everybody; those come first. The rest are things a particular language does to you, and are grouped by language. If yours is not listed, read the general section and then the language closest to yours in temperament.
The general traps
age is a string, and it must survive as one. §6.4 explains why the value is text: the
shortest representation that round-trips, with a floor of six decimals. The trap is that almost
every language offers a tempting one-liner to parse it into a float and print it back, and that
one-liner is lossy in a way that produces an invalid file rather than a slightly wrong one. In
JavaScript, String(Number("34.500000")) gives "34.5". One decimal is below the floor, so a
conformant reader is then required to reject a chart your writer just produced. The same shape of
loss exists anywhere floats are printed with a shortest-representation algorithm, which today is
nearly everywhere.
If you need the number, parse a copy. Keep the original text for writing back. The implementer who
decided up front to treat parameters as an untouched string map had no trouble here at all, and
said so: a string you never touch is a string you cannot round wrong.
Seconds in utcOffset are a .NET problem, not a rule. §7.6 states no requirement to normalise
second-precision offsets: a reader whose time type cannot hold them keeps the moment exact and
reports the loss. The limitation belongs to one platform's date type, and Appendix A.3 of this
guide says what the reference implementation does about it, so that readers of its output
know why. Python accepts
timezone(timedelta(minutes=30, seconds=30)) without complaint, and Java's
ZoneOffset.of("+00:30:30") returns a perfectly ordinary offset of 1830 seconds. Both were
verified directly. If your language handles it, do nothing; you lose nothing and no notice is due.
reject in the test vectors does not mean the data is deleted. §10 sets out three distinct
outcomes, and readerOutcome tracks only whether the record is used, not whether it is kept.
A refused record is still written back unchanged. This cost the JavaScript implementer real time,
and it is the single most common way to read the vectors wrongly.
The id fields are integers within the I-JSON range. Subject.id, Folder.id,
ChartReference.subject and sequence are all whole numbers, and the specification asks a writer
to keep them between -(2^53)+1 and (2^53)-1 (Conformance). A writer that does not check this and
derives them from database keys can produce values beyond what your JSON parser keeps exact, and the failure is
silent. In Node, JSON.parse('{"id":9007199254740993}') yields 9007199254740992, verified
directly, which will happily point a parent reference at the wrong subject. If your ids come from
anywhere but a small counter, check what your parser does with them before trusting the round trip.
Python
Among the easiest, with few surprises. datetime and timedelta carry
second-precision offsets natively, so §7.6 needs no code. jsonschema is a Draft 2020-12
implementation, so cexf-schema.json runs as-is apart from the points in "Five points about the validator you
use" (§12, "Validation against the schema"). The fourth point gives the copy of the schema that Python needs,
and the fifth the settings of json.loads.
The one thing worth doing deliberately: keep parameters as dict[str, str] and never coerce.
The dynamic typing that makes everything else pleasant will also let a rounded age slip back out
of your writer without a word.
JavaScript and TypeScript
JSON is the native tongue here, which removes the parsing work and adds three quiet hazards, all verified on Node 26:
- Large integers lose precision. See the general note on ids above.
undefineddisappears on serialisation.JSON.stringify({a: undefined, b: 1})gives{"b":1}. That is usually what you want, since absence is meaningful in this format and an absent field must not be written asnull. It becomes a hazard when you useundefinedas a placeholder for "value I could not parse", because the difference between "the writer omitted this" and "I dropped it" then vanishes from your output.- Numbers stringify to their shortest form. This is what breaks
age, as above.
Java and other statically typed languages without native JSON
The JDK has no JSON parser, so an implementer without third-party libraries writes one. That turns
out to be an advantage rather than a chore: reimplementing cexf-schema.json by hand, next to
the prose, forces a line-by-line comparison of the two that an implementer who calls a validator never makes.
Static types also force the absent-versus-empty distinction into the open early, which this format cares about a great deal (§10). Where a dynamic language lets you postpone that decision, Java makes you name it in the type, and the naming is where the reading gets done.
java.time.ZoneOffset handles second-precision offsets, so §7.6 is a non-issue here too.
Go
encoding/json is capable and opinionated, and two of its opinions matter here.
Unknown fields vanish by default. Unmarshalling into a struct silently drops any key the
struct does not declare. This format asks the opposite in three separate places: unknown keys in
extensions (§9.3), unknown keys in parameters (§6.4), and unrecognised top-level keys in a file
from a newer version (§10) must all survive a round trip unchanged. If you unmarshal into structs,
capture those three into a map[string]json.RawMessage explicitly, or you will pass on a quietly
impoverished file.
Zero values are indistinguishable from absence, which collides head-on with §10's central
distinction between a field that is missing and a field that is present but empty. A string field
that was never in the document and one that arrived as "" both read as "". Where the difference
carries meaning, use a pointer or json.RawMessage. The same applies on the way out: omitempty
will drop a field whose value is legitimately zero.
Set against that, Go's error returns fit §10 unusually well. Every one of the three outcomes has to be spelled out at each call site, so there is nowhere for a silent acceptance to hide, which is exactly the failure mode this section keeps warning about.
Finally, a number of §10's rules are permanently dormant in Go, and recognising that early saves
work: the DateTimeOffset workaround (Appendix A.3), the gap for storing unknown on a derived chart (§7.5) and the general
"precision loss, round and report" rule all describe storage limits of one particular
implementation. A Go model built on strings, float64 and slices runs into none of them.
Ruby
Two pleasant surprises and one thing to decide up front.
Ruby's Integer is arbitrary precision, so the id hazard described above does not exist here: an id of any size survives parsing and serialising intact. And because parameters values
are naturally strings in a Hash, the age trap needs no discipline at all as long as you leave
them alone.
The decision to make early is how you represent absence. nil and a missing hash key are
different things in Ruby, and this format leans on that difference constantly. Pick one
convention, write it down, and hold to it in the writer as well, because the writer is where the
difference becomes visible: a key you emit as null says something the format does not mean.
If you write your own JSON parser rather than using the bundled json library, you also get to
decide what duplicate keys do and whether keys are strings or symbols. Those are decisions this
format has opinions about, and making them yourself is the difference between choosing and
inheriting.
F# and other languages with exhaustive matching
The best fit of the languages covered here, for a reason worth naming: a compiler that refuses to build until every case of a union is handled turns §10's three outcomes from prose into something the type system enforces. The implementer working in F# reported that exhaustive matching caught two real bugs during development, one of which (a subject surviving with an empty chart list after its primary chart was discarded) is an explicit clause in §10 (row SU4).
There is one friction. This format deliberately leaves type open so a future chart kind
still validates, and a closed union is exactly the wrong shape for that. Model the known kinds as
cases and keep a catch-all that carries the raw string; resist the urge to make the union
exhaustive over today's list, because the format promises it will grow.
Records with structural equality also give you a trustworthy round-trip comparison for free, which is worth more than it sounds: comparing models rather than text sidesteps every argument about key order and whitespace.
C, and other languages with nothing built in
The hardest of the seven, and the most revealing, because C hands you nothing: no strings, no maps, no growable arrays, no exceptions, no garbage collector. Every distinction this format draws has to be built by hand, which makes each one a decision you cannot avoid noticing.
Preserving what you do not understand is the whole game. §9.3 requires that unrecognised
extensions and modifierExtensions values survive a round trip unchanged. In a language with an
opaque JSON value type this is nearly free. In C you have two options, and only one of them is
faithful: keep a pointer and a length into the original source text for every parsed value and hand
that span back untouched, or re-serialise from your own tree and silently reformat whitespace along
the way. The C implementer chose the raw span. If your language gives you no opaque value type,
build the span mechanism before you build anything else.
Without exceptions, the three outcomes stop being control flow and become data. There is no
catch to collapse nine discard paths into one. Each becomes an explicit early return carrying a
status, which forces you to confront a question every other implementer could postpone: what
happens when two rules in §10 could apply to the same record? Section 10.2 answers that: for one
chart the first skipping row of the list E2, E3, CH2, CH3 and CH4, CH8 and then
the rows RF decides. CH11, CH12 and CH17 are rows of class accept: they come after all of these. Knowing that in advance saves you the detour.
Manual memory turned out to make discarding safer, not harder. Because nothing is freed until the writer runs, a discarded record sits in its slot with a status flag, and both the writer and the round-trip comparison filter on that flag. That structure sidesteps the two-pass hazard described in §10 for free: a record cannot be resolved against something that was already removed, because nothing is removed until the end. A garbage-collected language will happily let you drop a record halfway through and leave a reference pointing at the gap.
A word on which parts nobody struggled with
Across all seven, the four time fields of §7 were implemented without a single question. The pattern, the tolerance and the arithmetic identity are stated precisely enough that there was nothing to decide. If you are budgeting effort, spend it on §10 instead: the error-handling rules are where every implementer, without exception, had to stop and think.
Appendix C: Names of ayanamsas in other programs
This appendix is informative, not normative. Programs name the same ayanamsa differently. The table gives a name used elsewhere and the registered key of §7c.2 that it stands for. A writer that converts from such a program writes the key. The table adds no key to the register, and each key in it was checked against the register in §7c.2.
| Name elsewhere | Key |
|---|---|
| Chitrapaksha, Lahiri (Chitrapaksha), Traditional Lahiri | lahiri |
| True Chitrapaksha, True Lahiri | true-citra |
| KP, Krishnamoorthy | krishnamurti |
| KP-Senthil | krishnamurti-vp291 |
| Pushya-paksha | true-pushya |
| Chandra Hari | true-mula |
| Ernst Wilhelm, Dhruva | galcent-mula-wilhelm |
| Gil Brand | galcent-rgilbrand |
| Cochrane | galcent-cochrane |
| Usha-Shasi | usha-shashi |
| Djwhal Khool | djwhal-khul |
| Sri Yukteswar | yukteshwar |
| J.N. Bhasin | jn-bhasin |
| De Luce | de-luce |
| Fagan | fagan-bradley |
| Lahiri (1940), Panchanga darpan | lahiri-1940 |
| Lahiri original, ICRC | lahiri-icrc |
Constant names. The register follows the names of the constants of Swiss Ephemeris (§7c.1).
How a key is derived from the name of a constant, and the three keys that deviate, is in
§7c.2. The last one of the three is spelled
GALCENT_RGBRAND in the programming manual and GALCENT_RGILBRAND in the header file, which
follows the rule; both give the same key.
Appendix D: Mappings to other formats
This appendix is informative, not normative. For each of nine other formats it says how to record a chart from that format in CEXF, and what is lost on the way. It rests on the public documentation of those formats, on example files and on the source of free programs, as of 2026, and it can be incomplete or out of date. It decides nothing: the normative text is in §1 to §11. Whatever a format carries that CEXF has no place for (calculated positions, cusps and aspects, §11, and display settings) is left out, and a converter says so (§14).
- AAF'97. A text format of tagged lines. Write name, sex and kind, date, time, place and
coordinates to the matching fields, and the code for the kind of time to
time.standard(lmtfor local mean time). A Julian date is converted to the proleptic Gregorian calendar andsourceCalendaris set. When the file gives a Julian day, it wins over date and time. The first field of#SRCgoes tosource.kind(§5.2); the second field and#VIAgo tosource.text. Write the sub-horoscopes as charts of the matchingtype. Lost: a time given in hours only keeps no precision below the hour, and AAF has no separate name prefix. - Quick*Chart. A fixed-column text file that Astrolog writes. Write name, date, time, zone,
offset, longitude, latitude and place name to the matching fields. The offset in the file is
positive westwards, so its sign flips, and it has whole minutes only. A zone abbreviation for local
mean time gives
standardlmt, and a daylight-saving letter givesdstOffset. A date before 15 October 1582 is Julian and is converted. Lost: the format has no separate country field, and it truncates the name. - Jagannatha Hora (
.jhd). A text file of 18 lines. Write date, time, place, coordinates, altitude and the summer-time offset to the matching fields. The zone offset and the longitude are both east negative: flip both signs. The name of the chart is the name of the file. The file does not state the zodiac, so a converter chooses a value and writes it (§1). - Solar Fire (
.SFcht). A binary chart file with a header, one record per chart and optional sub-chart blocks. Write name, date, time, place, region and coordinates to the matching fields. The longitude and the offset are positive westwards: flip both signs. Write the flag for local mean time totime.standard, the house system tohouseSystem, the point of view toframe, and the zodiac tozodiacSystemandayanamsa. Write the rating and the description of the source tosource.ratingandsource.text, and the notes tonotes. Lost: the format mixes country and state in one field, so a writer cannot reliably split it intoregionandcountry; names and place names are truncated by the format. - Kerykeion. A Python library whose models are not a file format. Write name, local and UTC
time, time zone, place, coordinates, altitude, zodiac type, ayanamsa (a registered one, or a
user-defined one in
customAyanamsa), house system and point of view to the matching fields. Composites, returns, synastry, transits and secondary progressions become charts of the matchingtype. Lost: the points of view centred on Mercury through Saturn have no registeredframevalue. - Astrolog. A program driven by switches, with its own chart files. Write date, time, daylight
saving, zone, coordinates, name, place, zodiac, ayanamsa, house system and point of view to the
matching fields. Harmonics, progressions and relationship charts become charts of the matching
type. Lost: the many switches that only choose how something is calculated or displayed, and the country, which the format cannot reliably split from the place name. - Morinus (
.hor). A file of Python data. Write name, sex, date, time, zone offset, place, coordinates, altitude and notes to the matching fields. The kind of time goes totime.standard: zone time tozone, local mean time tolmtand local apparent time tolat. A time in Universal Time is written withtimeZoneEtc/UTC,utcOffset+00:00andstandardzone(§7.8). A Julian date is converted withsourceCalendarset. A chart type of horary giveskindhorary. The other chart types (solar, lunar, transit and others) are only a label in the input dialog of the program, and the chart itself is an ordinary chart. Lost: the file does not split the name into given and family name. - Zeus (
.zdb). A text file with one record per chart. Write name, date, time, offset, place, coordinates, sex and notes to the matching fields. The chart type giveskind(horaryorevent). Write the rating tosource.rating. A Julian date is converted withsourceCalendarset. Lost: the format has no separate country field, and a path to an image is not carried, because the format carries astrological data only. - ZET (
.zbs). Tables of records in a folder tree. Write name, date, time, the difference from Greenwich, place, coordinates, sex and comment to the matching fields, the folders tofolders, and a life event that hangs on a record to alife-eventchart. A reference to a photograph stays plain note text. Lost: the protection of a table, and the format does not say whether a time is local mean time.
Glossary
This glossary is informative, not normative. It exists for a developer who can implement
this format perfectly and still not know what a syzygy is. Nothing here overrides or refines a
rule stated earlier; where a term is also a type key or a parameters value, the numbered
section is the authority and this entry is only an explanation in plain language.
Section numbers (§4, §6.4 and so on) refer to the specification,
CEXF-SPECIFICATION.md, not to the numbering of this guide.
Subject. What a set of charts is about: a person, an event, a country or an organisation (§4). Not the same as a chart.
Chart. One horoscope: a moment, a place and, for derived kinds, parameters and links. A subject has one or more charts (§5).
Sequence. The integer that numbers a subject's charts. sequence 0 is the primary chart;
every other number is a derived chart (§5).
Primary chart / derived chart. The primary chart is the subject's own chart of the birth, the event or the founding. A derived chart is every other chart of that subject: a return, a direction, a composite and so on (§5, §6).
Synastry. The comparison of two natal charts, laid side by side and not merged into a new
chart. See synastry in §6.2 and §8.
Transit. A chart cast for a moment of interest, usually the present, whose planets are read
against a natal chart. See transit in §6.2.
Mundane astrology. The astrology of countries, institutions and events, as opposed to that of
persons. See mundane in §6.2 and kind: "country" in §4.2.
Frame. The point from which positions are seen: the centre of the Earth (geocentric), of the Sun (heliocentric), the observer's place on the surface (topocentric), the centre of mass of the solar system (barycentric) or the centre of the Moon (selenocentric). See §7c.3.
Lunar node. One of the two points where the Moon's orbit crosses the ecliptic. The north node
is the one where the Moon crosses it going north. The mean node moves evenly; the true
(osculating) node follows the instantaneous orbit and swings around the mean node. See body in
§6.4 and §7c.4.
Julian Day (JD), Terrestrial Time (TT), ΔT. A Julian Day is a continuous count of days that
astronomical software uses for an instant. TT is the uniform time scale of astronomical
calculation. ΔT is the difference between TT and Universal Time, which varies slowly. The epoch of
a customAyanamsa is a Julian Day in TT (§7c.5).
Precession. The slow turning of the Earth's axis, which moves the equinox against the stars. It is the reason an ayanamsa changes with time (§7c.5).
Taeger classification, AAF. The Taeger classification grades the source of a birth datum in
classes; AAF'97 carries it as the first field of #SRC. §5.2 lists the values of source.kind
with their Taeger codes. AAF is one of the other formats that Appendix D maps to this one.
Direct / converse. A direction or progression can run forward in time from the primary
chart (direct) or backward (converse); see direction in §6.4.
Local mean time (LMT). The time kept by an imaginary mean Sun, one that moves evenly, at one
place's longitude, used before standard time zones existed. Its offset from UTC is usually not a whole number of minutes, which is why
utcOffset allows seconds (§7.2).
IANA time zone database (tzdb). The public database of time zone rules and history, with zone
IDs such as Europe/Amsterdam. Its history before 1970 is incomplete and gets revised (§7.1).
Notice. A message to the user that a reader issues when it meets something it cannot use as written; defined in "Conformance and conventions".
Rodden rating. A letter code (AA, A, B, C, DD, X, XX) that astrological data
collections attach to a birth datum to grade how reliable it is. This format records the letter
(§5.2) without interpreting it.
Local apparent time (LAT). The time of the real Sun at a place, sundial time. It equals local mean time plus the equation of time for that moment (§7.9).
Julian calendar / proleptic Gregorian. The Julian calendar was replaced by the Gregorian one in 1582 in some countries and later in others. "Proleptic Gregorian" means applying the Gregorian rules to dates before that change as well. All dates in a document are proleptic Gregorian (§7.10).
Annual profection. A classical technique that advances the primary chart by one sign (30°)
for each completed year of life, so that each year of age is attached to one sign and house. See
profection in §6.2.
Life event. A dated event in a subject's life, cast as a chart, for instance to test a birth
time against known events. See life-event in §6.2.
Round trip. Reading a document and writing it again. A round-tripping reader keeps what it does not use (§10).
Ayanamsa. The angular offset, in degrees, between the tropical zodiac's 0° Aries point and
the sidereal zodiac's 0° Aries point. Different schools measure that offset slightly
differently (Lahiri, Raman, Fagan-Bradley, and so on), which is why ayanamsa is itself a
choice, not a constant. Without it, a sidereal chart can't be reproduced: every planetary
position in a sidereal chart is the tropical position minus the ayanamsa angle for the chosen
school.
Tropical vs. sidereal zodiac. Two different ways of anchoring the twelve signs to the sky. The tropical zodiac anchors 0° Aries to the spring equinox, wherever that falls among the actual constellations. The sidereal zodiac anchors 0° Aries to a fixed point among the stars themselves, offset from the tropical point by the ayanamsa above. Western astrology defaults to tropical; Vedic (Jyotish) astrology uses sidereal. Same birth data, different chart.
House system. A method for dividing the sky into twelve numbered houses relative to the horizon and meridian at a given place and time. Placidus, Koch, Whole Sign, Equal, and the 21 others in the register of §7c.2 are all answers to the same question (where do the house lines fall) and they don't agree: the same birth data produces different house cusps, and therefore a different house placement for a planet, under each one.
Ascendant / MC. The Ascendant is the sign and degree rising on the eastern horizon at the
chart's moment and place; the MC (Midheaven) is the degree of the ecliptic that crosses the upper meridian of the place, the half of the meridian that runs through the zenith. Outside the tropics it usually lies above the horizon; inside the polar circles it can lie below it. Neither
depends on the house system: both follow from time and location alone, and both are
recalculated, not carried in a CEXF file (§11). The house cusps in between do depend on the
house system.
Cusp. The boundary degree between one house (or, informally, one zodiac sign) and the next.
Natal chart / radix. The chart of the moment someone (or something) was born: sequence 0
in this format, for every subject kind (§5). "Radix" is the older term of art for the same
thing, still current in astrological writing and used as a label example in this
specification.
Orb. The allowed margin of error, in degrees, before an angular relationship between two points (an aspect) stops counting as that aspect. Not a CEXF field; mentioned here because several design notes in the guide (§R6.4) reason about arc error in terms of orbs.
Horary. A chart cast for the moment a specific question is asked, used to answer that
question through the chart's own symbolism, rather than for a birth. See parameters.question
in §6.4. The person who asks is the querent. A subject of kind: "horary" is a standalone horary
question whose querent is not recorded (§4.4).
Electional. The mirror image of horary: instead of reading a chart for a moment already past, an electional chart looks for a favourable future moment to start something (sign a contract, launch a project). Same data shape as horary; see §R6.3.
Ingress. The moment a celestial body crosses into a new sign. This format's ingress key
covers only the Sun's four seasonal ingresses (the equinoxes and solstices, marking the start
of Aries, Cancer, Libra, and Capricorn); see the point parameter in §6.4.
Harmonic chart. A chart recalculated by multiplying every planetary longitude by a whole number (the harmonic) and reducing the result modulo 360°. The 9th harmonic, for example, multiplies every position by 9. Distinct from a Vedic varga division, which uses different, sign-dependent rules; see the Vedic-vargas discussion in §6.4.
Primary direction / secondary progression / solar arc / tertiary progression / minor
progression. A family of predictive techniques that advance a natal chart forward using a
symbolic time key rather than the calendar. Secondary progression is the most common: one day
after birth stands for one year of life. Solar arc advances every point by the distance the Sun
has travelled in the progressed time (the progressed Sun minus the Sun of the primary chart);
tertiary progression uses one day for one synodic lunar month of life; minor progression
uses one full lunar month (synodic or, in Celestium's own "minus-one system," sidereal) for one
year of life. Primary direction is the oldest of the five, and the only one tied to the Earth's
daily rotation rather than to its orbit. Each has a direct and a converse (backward) variant; see
§6.1 and §6.4 for how this format represents them.
Prenatal syzygy / lunation / eclipse. "Syzygy" is the general astronomical term for Sun,
Earth, and Moon lining up: a New Moon or a Full Moon. A prenatal syzygy is whichever of the two
fell closest before someone's birth; a prenatal lunation narrows that to specifically the last
New Moon before birth, even if a Full Moon fell closer; a prenatal eclipse is the last eclipse
before birth. See the type table in §6.2.
Composite / Davison / group composite. Three ways of combining two or more natal charts into one derived chart, used mainly to study a relationship. A composite chart uses the midpoint of each pair of matching planets. A Davison chart instead finds the literal midpoint in time and space between two birth moments and casts a fresh chart for that. A group composite extends the composite method to three or more people at once. This version does not fix how that composite is calculated (§6.1, "Scope").
Planetary return. The moment a given body returns to the exact position it held at someone's
birth. Solar and lunar returns (roughly annual and monthly) are common enough to have their own
type keys; planet-return covers any other body, via the body parameter (§6.4).
Relocation chart. The same birth moment, recalculated for a different place, typically the place someone lives now rather than where they were born. Changes the Ascendant, MC, and house cusps; never the underlying moment. See §8.
Draconic chart. A chart rotated so that the Moon's North Node sits at 0° Aries, with every other point shifted by the same amount. Not a separate calculation, just a rotation, and in this format a zodiac setting of the chart; see §6.5 and §7c.4.
Heliocentric. A chart calculated from the Sun's point of view rather than the Earth's,
changing every other body's apparent position. The Sun itself is the centre and has no longitude
in such a chart; the Earth takes its place among the bodies. A coordinate-system setting, not a chart type: the frame field, see
§7c.3 and §6.5.
Local Space / astrocartography. Two ways of viewing a single natal chart on the ground rather than as a wheel: Local Space plots planetary directions as a compass rose from one location, astrocartography projects the same relationships as lines on a world map. Neither stores its own positions; both are views over an existing chart (§6.5).
Uranian astrology / Hamburg School / 90° dial. A branch of astrology built around hypothetical points (Cupido, Hades, Zeus, and others) not recognised by mainstream astronomy, analysed with a dial divided into 90° rather than 360°. Mentioned in §6.5 as an analysis technique this format doesn't need a chart type for.
Naibod rate. The average motion of the Sun (about 0.9856° per day, derived from 360° divided
by the length of the tropical year), which a family of arc techniques uses as the arc for one
year of life. The solar-arc of this format does not use it: it uses the true motion of the Sun
(§6.4).
Black Moon, lunar apogee, lunar perigee, Priapus, Lilith, Dark Moon, Selena, White Moon. These
names are used for different things, and different programs give the same name to different points.
CEXF therefore points at a point by its identity, a calculation with a number in the numbering of
Swiss Ephemeris, and never by one of these names. That is why no key lilith exists (§6.4,
body), and why a name that another program uses for one of these points leaves no doubt about
which point is meant. The identities are:
-
The Black Moon (Dutch: Zwarte Maan) is the lunar apogee, the point of the Moon's orbit that lies farthest from the Earth. Three calculations give it, with different longitudes:
- the mean apogee, number 12 (
mean-apogee); - the osculating apogee, number 13 (
osculating-apogee), which follows the instantaneous two-body orbit of the Moon and swings by about 30 degrees over a month; - the interpolated apogee, number 21 (
interpolated-apogee), a smoothed version of it.
A text that says "Black Moon" or "Lilith" without naming one of the three does not say which longitude it means.
- the mean apogee, number 12 (
-
The lunar perigee is the point of the Moon's orbit nearest to the Earth. Some astrologers call it Priapus. Two calculations give it:
- Priapus is the osculating apogee plus 180 degrees, because the two apsides of a two-body orbit lie opposite each other;
- the interpolated perigee is number 22. It is not the interpolated apogee plus 180 degrees: those two lie opposite each other only on average.
-
Selena and the White Moon are two names that stand for two different points:
- the White Moon of Celestium is the mean apogee plus 180 degrees, that is the mean perigee. It is not a body of its own;
- Selena, or the White Moon in the sense of a hypothetical body, is number 56 in the numbering of Swiss Ephemeris. It is a different point from the mean perigee.
-
(1181) Lilith is an asteroid, a minor planet with its own orbit, numbered 1181. It is not the Black Moon.
-
The Dark Moon is Waldemath's hypothetical second moon of the Earth, postulated by Waldemath in 1898. It is not the lunar apogee.