# Asteroid occultation report file (JSON), format version 1

Instructions for a program that writes this file. The web page with the same content is http://www.hristopavlov.net/json-report-format.html. The type "list" means that only the values listed for that member are accepted, spelled exactly as listed.

This is the report file Tangra writes when an asteroid occultation is reported. Any other program is welcome to write the same file, so that reports from all programs can be reviewed and archived in the same way.

## The two sections

The file is one JSON object with two members:

```json
{
  "reportData": { },
  "optionalData": { }
}
```

- **reportData** is fixed and the same for every region. It holds everything the archive of asteroid occultation observations takes from a report. Fill it in completely, with the member names and the values listed below.
- **optionalData** holds everything else: the program that wrote the file, the submission, and more details about the equipment, the timing and the light curve. It is open. Use the member names below when your program has the same information, and add members of your own as needed.

Values from a closed list are readable words, such as `SCT` and `GpsTimeInserted`. They are not the archive's one-letter codes, which are derived from them when the report is archived.

## Examples

### A positive observation with one event

```json
{
  "reportData": {
    "formatVersion": 1,
    "result": "Positive",
    "event": {
      "date": "2026-08-19",
      "predictedTimeAtSiteUtc": "2026-08-19T10:27:31.000Z"
    },
    "asteroid": { "number": 60, "name": "Echo" },
    "star": { "catalogue": "UCAC4", "number": "361-172758" },
    "observers": { "names": ["Hanna Observer"], "moreThanListed": false },
    "site": {
      "location": "Dunedin, New Zealand",
      "longitude": 170.503611,
      "latitude": -45.874167,
      "altitudeMetres": 12,
      "datum": "WGS84"
    },
    "telescope": { "apertureCm": 20.3, "type": "SCT" },
    "timing": {
      "method": "VideoFrameAnalysis",
      "source": "GpsTimeInserted",
      "device": "IOTA-VTI"
    },
    "conditions": { "stability": "SlightFlickering", "transparency": "Clear" },
    "comments": "Star faint, 2x integration.",
    "events": [
      {
        "secondStar": false,
        "d": { "timeUtc": "2026-08-19T10:27:31.245Z", "errorSeconds": 0.04 },
        "r": { "timeUtc": "2026-08-19T10:27:35.805Z", "errorSeconds": 0.04 },
        "snr": 7.4
      }
    ]
  },
  "optionalData": {
    "generator": { "application": "Tangra", "version": "4.0.1", "addin": "TOTA" },
    "submission": {
      "region": "Australasia",
      "station": "Home",
      "stationNo": 2,
      "stationLongitude": 170.5036,
      "stationLatitude": -45.8742,
      "stationAltitudeM": 12,
      "email": "observer@example.com",
      "reviewerComments": "Second comparison star drifted out at the end."
    },
    "equipment": { "camera": "Watec 910HX", "cameraModelForDelays": "WAT-910HX (PAL)" },
    "timing": {
      "instrumentalDelays": "AppliedByTangra",
      "integratedFrames": 2,
      "exposureSeconds": 0.08,
      "videoSystem": "PAL",
      "videoFileFormat": "AAV",
      "embeddedTimestamps": true,
      "reliableTimeBase": true,
      "fittedInTime": false,
      "windowsClockTimestamps": null,
      "acquisitionDelayMs": null,
      "referenceTimeToUtcOffsetMs": null,
      "delaysEnteredAtReport": null,
      "timestampJitter3SigmaMs": null,
      "timestampJitterFrames": null
    },
    "lightCurve": {
      "file": "20260819_60_Echo_UCAC4_361-172758_+Observer.lc",
      "points": 2400,
      "framesFrom": 1200,
      "framesTo": 3599,
      "comparisonStars": 2
    },
    "recording": {
      "startUtc": "2026-08-19T10:25:02.000Z",
      "endUtc": "2026-08-19T10:30:41.000Z"
    },
    "prediction": {
      "source": "OccultWatcherCloudMyEvents",
      "owcEventId": "2116-60-253224-645784-U172758"
    },
    "analysis": {
      "userSelectedEvents": [],
      "acknowledgedMessages": [],
      "timingCorrections": null,
      "doubleStars": []
    }
  }
}
```

### A negative observation (a miss)

All members are the same, except for these two in `reportData`:

```json
"result": "Negative",
"events": []
```

## General rules

- **Encoding:** UTF-8, preferably without a byte order mark.
- **Member names** are case-sensitive, in camelCase as shown. Write the values of the closed lists exactly as listed too.
- **Unknown values:** write `null` or leave the member out. An empty text is `""`.
- **Times** are UTC in ISO 8601 with a `Z`: `"2026-08-19T10:27:31.245Z"`. The fraction may be left out and can have up to 7 digits. Always write the full date, also for analogue video whose timestamps only have the time of day: use the event's date, or the nearer day when the event is close to midnight.
- **Dates:** `"yyyy-MM-dd"`.
- **Numbers** are JSON numbers with a decimal point, never strings.
- **Coordinates** are decimal degrees, longitude positive to the east and latitude positive to the north. The altitude is in metres.
- **Reading:** a reader ignores the members it doesn't know and treats a missing member as unknown. The order of the members doesn't matter.
- **Versions:** a change to `reportData` raises `formatVersion`. Members can be added to `optionalData` without that.

## reportData

| Member | Type | Required | Meaning |
|---|---|---|---|
| `formatVersion` | integer | yes | `1` |
| `result` | list | yes | A positive or a negative observation |
| `event.date` | date | yes | The UTC date of the predicted time at the site, or of the first D when that isn't known |
| `event.predictedTimeAtSiteUtc` | time or null | recommended | The predicted time of the closest approach at the observer's site, not the geocentric time. `null` when the program can't work it out |
| `asteroid.number` | integer or null | yes | `null` for an unnumbered asteroid |
| `asteroid.name` | text | yes | A name, or a provisional designation such as `"1999 CO5"` |
| `star.catalogue` | text | yes | The star's catalogue |
| `star.number` | text | yes | The star's number in that catalogue, such as `"361-172758"` |
| `observers.names` | array of text | yes, at least one | The names as entered. The first one is the reporting observer |
| `observers.moreThanListed` | boolean | yes | There were more observers than listed ("et al.") |
| `site.location` | text | yes | The nearest location and, after the last comma, the state or country: `"Dunedin, New Zealand"` |
| `site.longitude`, `site.latitude` | number | yes | Decimal degrees. A report without them can't be archived |
| `site.altitudeMetres` | number | yes | The altitude in metres |
| `site.datum` | list | yes | The datum of the coordinates |
| `telescope.apertureCm` | number | yes | The aperture in centimetres |
| `telescope.type` | list | yes | The type of telescope |
| `timing.method` | list | yes | How the times were measured |
| `timing.source` | list | yes | The source of the time |
| `timing.device` | list | yes | The timing device |
| `conditions.stability` | list or null | recommended | The stability of the image |
| `conditions.transparency` | list or null | recommended | The transparency of the sky |
| `comments` | text | yes, `""` for none | The comment archived with the observation. A note that is only for the reviewer goes in `optionalData.submission.reviewerComments` |
| `events` | array | yes | At least one event for a positive, `[]` for a miss |

### Each entry of events

An entry is one disappearance and reappearance. Most observations have one. A double star or a satellite of the asteroid gives more, each written as an entry of its own.

| Member | Type | Required | Meaning |
|---|---|---|---|
| `secondStar` | boolean | yes | The event is of the second star of a double star |
| `d.timeUtc`, `r.timeUtc` | time | yes | The final D and R times, with all delays and corrections already applied. The time is the middle of the error interval |
| `d.errorSeconds`, `r.errorSeconds` | number | yes | The ± of the time in seconds: half the width of the error interval, at least 0.001 |
| `snr` | number or null | recommended | The signal to noise ratio of the event |

Tangra always writes both D and R. A positive with only one of them, the other `null`, can be archived too. D and R must not be the same time.

## Accepted values in reportData

### result

| Value | Meaning |
|---|---|
| `Positive` | An occultation was observed |
| `Negative` | A miss: no occultation was observed |

### star.catalogue

Not a closed list: the name of the catalogue, such as `UCAC4`, `TYC` or `HIP`. Write Occult's `4UC` as `UCAC4`. A star with a J (positional) designation, such as J171354.39-281225.8, is `J-coords`, and its number is the position without the J:

```json
"star": { "catalogue": "J-coords", "number": "171354.39-281225.8" }
```

### site.datum

| Value | Meaning |
|---|---|
| `WGS84` | World Geodetic System 1984 (GPS) |
| `NAD1927` | North American Datum 1927 |
| `EP1950` | European Datum 1950 |
| `Tokyo` | Tokyo Datum |
| `GBSN80` | Great Britain, Ordnance Survey 1980 |
| `Other` | Any other datum |

### telescope.type

| Value | Meaning |
|---|---|
| `Newtonian` | Newtonian |
| `SCT` | Schmidt-Cassegrain, including Cassegrain and Maksutov |
| `Refractor` | Refractor |
| `Dobsonian` | Dobsonian |
| `Binoculars` | Binoculars |
| `NoOpticalAid` | No optical aid |
| `Other` | Any other type, to be given in the comments |

### timing.method

| Value | Meaning |
|---|---|
| `VideoFrameAnalysis` | Video, or a sequence of images, analysed frame by frame. The only value in format version 1 |

### timing.source

| Value | Meaning |
|---|---|
| `GpsTimeInserted` | GPS, time inserted |
| `GpsOtherLinking` | GPS, other linking |
| `VideoAudioTimeSignal` | Video and an audio time signal |
| `TapeRecorderTimeSignal` | Tape recorder and a time signal |
| `EyeEarTimeSignal` | Eye-ear and a time signal |
| `Stopwatch` | Stopwatch |
| `RadioBroadcast` | Radio broadcast, calibrated |
| `Other` | Any other source |

### timing.device

The name as OccultWatcher lists it, with its spaces:

| Value |
|---|
| `Stopwatch` |
| `WWV Radio Time` |
| `Beeperbox` |
| `GPS` |
| `Computer NTP` |
| `KIWI-OSD` |
| `IOTA-VTI` |
| `GPS-ABC` |
| `ADVS` |
| `Cellphone` |
| `Other - Specify in Comments` |

### conditions.stability

| Value | Meaning |
|---|---|
| `Steady` | Steady |
| `SlightFlickering` | Slight flickering |
| `StrongFlickering` | Strong flickering |

### conditions.transparency

| Value | Meaning |
|---|---|
| `Clear` | Clear |
| `Fog` | Fog |
| `ThinCloud` | Thin cloud < 2 |
| `ThickCloud` | Thick cloud > 2 |
| `BrokenCloud` | Broken cloud |
| `StarFaint` | Star faint |
| `AvertedVision` | Averted vision |

## optionalData

Every member is optional. These are the members Tangra writes. Please always write `generator.application` and `generator.version`, so that a reviewer knows which program made the report. Don't put a second copy of a `reportData` value here.

### generator

| Member | Type | Meaning |
|---|---|---|
| `application` | text | The program that wrote the file: `"Tangra"` |
| `version` | text | Its version: `"4.0.1"` |
| `addin` | text | The add-in or module that wrote it: `"TOTA"` |

### submission

| Member | Type | Meaning |
|---|---|---|
| `region` | list | The region reported to |
| `station` | text | The observer's station name. An observer with several stations reports each one separately |
| `stationNo` | integer | The station's number on the OccultWatcher Cloud event, from 1. `null` when it wasn't announced |
| `stationLongitude`, `stationLatitude` | number | The station's position as announced in OccultWatcher Cloud, in degrees |
| `stationAltitudeM` | number | Its announced altitude, in metres above mean sea level |
| `email` | text | The observer's email |
| `reviewerComments` | text | A note for the reviewer, not archived. A line that starts with `[TOTA]` was added by Tangra |

### equipment

| Member | Type | Meaning |
|---|---|---|
| `camera` | list | The camera as the observer lists it |
| `cameraModelForDelays` | text | The camera model whose instrumental delays were used |

### timing

| Member | Type | Meaning |
|---|---|---|
| `instrumentalDelays` | list | How the times got their instrumental delays |
| `integratedFrames` | integer | Video frames per data point, for integrated analogue video |
| `exposureSeconds` | number | A data point's exposure, in seconds |
| `videoSystem` | text | The video system |
| `videoFileFormat` | text | The video file's format |
| `embeddedTimestamps` | boolean | The frames have timestamps of their own, not read from an overlay |
| `reliableTimeBase` | boolean | The recording's time base is reliable: no discrepancy was found in its timestamps |
| `fittedInTime` | boolean | The fit was made in time rather than in frames |
| `windowsClockTimestamps` | boolean or null | `true` for digital video whose timestamps need timing corrections, such as those the recording program takes from the Windows clock. `null` otherwise |
| `acquisitionDelayMs` | number | The acquisition delay in milliseconds, already subtracted from the times. For a rolling shutter it can be the delay at the star's line, see rollingCorrections |
| `referenceTimeToUtcOffsetMs` | number | The Windows Clock Correction or Reference Time Correction in milliseconds, already added to the times: positive when the clock was behind UTC |
| `delaysEnteredAtReport` | boolean or null | `true` when those two were entered when reporting, as the light curve was measured without them. `null` otherwise |
| `timestampJitter3SigmaMs` | number | The measured jitter of the timestamps at 3 sigma, in milliseconds |
| `timestampJitterFrames` | integer | The number of frames the jitter was measured from |

The shutter's members are only written when they are known:

| Member | Type | Meaning |
|---|---|---|
| `shutter` | list | The camera's shutter |
| `rollingCorrections` | list | How a rolling shutter's corrections were given |
| `totalTimingCorrectionMs` | number | The total timing correction as entered, in milliseconds |
| `starLine` | integer | The line (y) of the occulted star in the frame, from 0 |
| `frameHeight` | integer | The height of the recorded frame, in lines |
| `readoutTimeMs` | number | The frame's readout time, in milliseconds |
| `readoutErrorMs` | number | The extra error from the readout time, in milliseconds, already combined with the D and R errors in quadrature |
| `readoutCorrectionMs` | number | The readout correction in milliseconds, of either sign, already added to the times |

### lightCurve

A miss is sent without a light curve file: all of these are then `null`, except for `comparisonStars`.

| Member | Type | Meaning |
|---|---|---|
| `file` | text | The name of the light curve file sent with the report |
| `points` | integer | The valid data points in it |
| `framesFrom`, `framesTo` | integer | The first and the last frame it was cut to. `null` when it is the whole light curve |
| `comparisonStars` | integer | The number of comparison stars measured |

### recording

| Member | Type | Meaning |
|---|---|---|
| `startUtc`, `endUtc` | time | When the recording starts and ends, to the second. `null` when the light curve has no times |

### prediction

| Member | Type | Meaning |
|---|---|---|
| `source` | list | Where the event was identified from |
| `owcEventId` | text | The OccultWatcher Cloud event's id, when the event came from there |

### analysis

| Member | Type | Meaning |
|---|---|---|
| `userSelectedEvents` | array of integer | The events the observer pointed out on the chart, rather than found by the program: their places in `reportData.events`, from 1 |
| `acknowledgedMessages` | array of text | The warnings and other messages the observer confirmed before submitting |
| `timingCorrections` | object or null | The observer's corrections, below. `null` for none |
| `doubleStars` | array | See Double stars. `[]` for none |

### analysis.timingCorrections

The corrections entered when reporting. They are already in every time and error reported, and are kept here for information.

| Member | Type | Meaning |
|---|---|---|
| `offsetSeconds` | number | Added to every time: positive when the recorded times were early |
| `offsetReason` | text | The reason for it |
| `extraErrorMs` | number | The extra error combined with each D and R error, in milliseconds |
| `extraErrorReason` | text | The reason for it |
| `acquisitionDelayMs`, `referenceTimeToUtcOffsetMs` | number | As in `timing`, when they were entered when reporting |
| `errorsCombined` | list | How the extra error was combined |

## Accepted values in optionalData

### submission.region

| Value | Meaning |
|---|---|
| `Australasia` | Australasia |
| `Europe` | Europe |
| `NorthAmerica` | North America |
| `Other` | Africa, Asia, South America, or no region chosen |

### equipment.camera

The names Tangra writes are OccultWatcher's list:

- `Visual`
- `Photometer`
- `PC165-DNR`
- `PC164C`
- `PC164C-EX`
- `Watec 120N`
- `Watec 120N+`
- `Watec 910HX`
- `Watec 910BD`
- `Watec 902H`
- `Mintron 12v1C-EX`
- `Mallincam`
- `CCD`
- `Samsung SBC-2000`
- `KPC-350BH`
- `LN-300-11673`
- `Flea 3-03S1 with ADVS`
- `Flea 3-03S3 with ADVS`
- `Flea 3-28S4M with ADVS`
- `Grasshopper Express with ADVS`
- `G-Star`
- `Other - List in Comments`

### equipment.cameraModelForDelays

The camera models Tangra knows the instrumental delays of. It can also be the name the video file gives its camera.

- `WAT-910HX (PAL)`
- `WAT-910HX (NTSC)`
- `WAT-910BD (PAL)`
- `WAT-910BD (NTSC)`
- `WAT-120N (PAL)`
- `WAT-120N (NTSC)`
- `WAT-120N+ (PAL)`
- `WAT-120N+ (NTSC)`
- `Mintron 12V1C-EX (PAL)`
- `Mintron 12V1C-EX (NTSC)`
- `PC165DNR (NTSC)`
- `SCB-2000N (NTSC)`
- `WAT-902H2 (PAL or NTSC)`
- `PC164C-EX2 (EIA)`
- `SK-1004XC/SO CCIR`

### timing.instrumentalDelays

| Value | Meaning |
|---|---|
| `AppliedByTangra` | The program applied the camera's instrumental delay to the times |
| `AppliedToLightCurve` | The light curve's times already had it |
| `AcquisitionDelayApplied` | The acquisition delay of a digital camera was applied |
| `NotRequired` | The times need no correction |
| `NotApplied` | The times need a correction that wasn't applied |
| `Unknown` | The light curve doesn't tell |

### timing.videoSystem

| Value | Meaning |
|---|---|
| `PAL` | 25 frames per second (PAL, CCIR) |
| `NTSC` | 29.97 frames per second (NTSC, EIA) |
| `Digital` | Digital video |

An AAV file gives its own native video standard, which is written as it is.

### timing.videoFileFormat

Not a closed list: the extension of the video file in upper case, such as `AVI`, `AAV`, `ADV`, `SER` or `RAVF`.

### timing.shutter

| Value | Meaning |
|---|---|
| `Global` | Global shutter |
| `Rolling` | Rolling shutter |

### timing.rollingCorrections

| Value | Meaning |
|---|---|
| `TotalTimingCorrection` | One correction, at the star's line, that includes everything. It is in `totalTimingCorrectionMs` and `acquisitionDelayMs` |
| `FrameCenter` | The acquisition delay measured at the frame's center line. The readout time makes an extra error at the star's line |
| `ReadoutCorrection` | UTC timestamps, with a readout correction added to the times or the frame's readout time as an extra error |
| `CombinedLineDelay` | The acquisition delay at the star's line |

### prediction.source

| Value | Meaning |
|---|---|
| `OccultWatcherCloudMyEvents` | The observer's events in OccultWatcher Cloud |
| `OccultWatcherCloudSearch` | A search in OccultWatcher Cloud |
| `OccultLocal` | A prediction from Occult on the observer's computer |
| `Pasted` | Occelmnts pasted by the observer |

### analysis.timingCorrections.errorsCombined

| Value | Meaning |
|---|---|
| `quadrature` | Each error reported is √(error² + extra error²) |

## Double stars

A double star is reported as two entries of `reportData.events`, the second star's with `"secondStar": true`. How they were found is in `optionalData.analysis.doubleStars`, with one entry for each double star. A (Star 1 in Tangra) is the star that goes first, and B (Star 2) the other one. A value that isn't known is `null`.

| Member | Type | Meaning |
|---|---|---|
| `eventA`, `eventB` | integer | The stars' events: their places in `reportData.events`, from 1 |
| `arrangement` | list | The order of the stars' disappearances and reappearances |
| `lightA`, `lightB` | number | Each star's share of the two stars' light, 0 to 1 |
| `deltaMagnitude` | number | B's magnitude less A's |
| `lightBAtD`, `lightBAtR` | number | B's share of the light as the level on the D side and on the R side gives it |
| `dropA`, `dropB` | number | Each star's drop as a share of the full light |
| `measuredDrop`, `predictedDrop` | number | The whole drop, measured and predicted, as a share of the full light |
| `orderingAmbiguous` | boolean | `ABAB` and `ABBA` fit alike: which star is back first can't be told |
| `foundBy` | list | Who found the double star |
| `edges` | list | How D and R were modelled |
| `starB` | object or null | The second star's test, below. `null` when it wasn't finished |
| `hints` | object | The two stars' magnitudes, below. Only written when there are any |

### starB

| Member | Type | Meaning |
|---|---|---|
| `pValue` | number | The chance that noise makes a second star that fits as well |
| `pValueIsBound` | boolean | No trial came up to it: the p-value is an upper limit |
| `trials` | integer | The number of trials |
| `verdict` | list | The verdict of the test |
| `slowEdgeFitsAsWell` | boolean | A single star with slow edges fits nearly as well |
| `stepElsewhere` | boolean | One of B's steps often comes out elsewhere when refitted on simulated light curves |
| `dSpreadPoints`, `rSpreadPoints` | number | The spread of B's D and R in those refits, in data points (half the range of the middle 68%) |
| `dElsewhere`, `rElsewhere` | number | The share of the refits that are 3 data points or more away |
| `doubtful` | text | Why the verdict is `Doubtful`, in words |
| `fullDisappearancePValue` | number | The p-value of the full disappearance test, when it was run |
| `liftedByFullDisappearance` | boolean | That test changed the verdict from `Fail` to `Possible` |
| `z` | number | For `AABB` only: the significance of the other dip. There are no trials and no p-value then |

### hints

Here A is the brighter star and B the fainter one, whichever goes first.

| Member | Type | Meaning |
|---|---|---|
| `brighterEvent`, `fainterEvent` | integer | The stars' events: their places in `reportData.events`, from 1 |
| `magnitudes` | array | One entry per band |
| `magnitudes[].band` | list | The band |
| `magnitudes[].magA`, `magnitudes[].magB` | number | The two stars' magnitudes from their drops |
| `magnitudes[].magAError`, `magnitudes[].magBError` | number | Their errors, when known |
| `magnitudes[].magTogether` | number | The magnitude of the two stars together |
| `magnitudes[].catalogueMag` | number | The star's magnitude in the prediction, to compare with |

## Accepted values for double stars

### arrangement

| Value | In Tangra | Meaning |
|---|---|---|
| `ABAB` | 1-2-1-2 | A goes, B goes, A is back, B is back |
| `ABBA` | 1-2-2-1 | A goes, B goes, B is back, A is back |
| `AB-together-at-D` | (1+2)-2-1 | Both go together, then B is back, then A |
| `AB-together-at-R` | 1-2-(1+2) | A goes, B goes, both are back together |
| `AABB` | 1-1 2-2 | A wide double star: A goes and is back, then B goes and is back |

### foundBy

| Value | Meaning |
|---|---|
| `TOTA` | The program's own suggestion |
| `UserArrangement` | The observer chose the arrangement |
| `UserBottom` | The observer marked where both stars are covered |
| `UserAssisted` | The observer chose the arrangement and marked its steps and levels |

### edges

| Value | Meaning |
|---|---|
| `Instant` | Instant steps |
| `Physical` | The geometric edges of the physical model, with diffraction |

### starB.verdict

| Value | Meaning |
|---|---|
| `Probable` | p < 0.01. For `AABB`: the two depths add up to the full light |
| `Possible` | p < 0.10, or lowered from Probable by `slowEdgeFitsAsWell` or `stepElsewhere`. For `AABB`: the other dip passes Tangra's tests |
| `Doubtful` | A check found that the second star may be something else. `doubtful` says what |
| `Fail` | The test doesn't support a second star |

### hints.magnitudes[].band

| Value | Meaning |
|---|---|
| `V` | Visual magnitude |
| `R` | Red magnitude |
