# OSC_JSON_ALIGNMENT_NOTES_SN1987A.txt
# STELLAR_BOUNDARY_DYNAMICS_I
# Phase B — JSON Alignment Notes

INPUT_FILE:
SN1987A_OSC_raw.json

TOP_LEVEL_OBJECT_KEY:
SN1987A

OBJECT_NAME:
SN1987A

DISCOVERY_DATE:
[{'value': '1987/02/24', 'source': '4,55,58,59'}]

MAXDATE:
[{'value': '1987/05/12', 'source': '4,67'}]

CLAIMED_TYPES:
[{'value': 'II Pec', 'source': '7,61,64,65,67'}, {'value': 'II', 'source': '4'}, {'value': 'II P', 'source': '55,58,59'}, {'value': 'CC', 'source': '1'}]

HOST:
[{'value': 'LMC', 'source': '1,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,28,30,31,33,34,35,37,41,42,55,56,57,59,60,61,66,67'}, {'value': 'ESO 56-G115', 'source': '4'}]

PHOTOMETRY_STRUCTURE:
The file stores photometry under:
SN1987A.photometry

Magnitude photometry records have:
time
u_time
band
magnitude
source

Other photometry-like records may contain flux / energy / instrument fields
rather than magnitude fields and are skipped by the first ladder converter.

PHOTOMETRY_COUNTS:
Total photometry records: 3437
Magnitude records converted: 3332
Non-magnitude photometry records skipped: 105

BAND_COUNTS:
{'B': 685, 'I': 649, 'R': 647, 'U': 660, 'V': 691}

PHASE_COUNTS_PRELIMINARY:
{'rise': 515, 'peak': 55, 'early_decline': 211, 'plateau_or_shoulder': 375, 'break': 544, 'tail_decay': 1440, 'late_relaxation': 192}

TIME_RANGE_MJD_CONVERTED_MAGNITUDE_ROWS:
46849.44 to 48443.5

PEAK_BY_BAND_MIN_MAGNITUDE:
{'V': {'peak_mjd': 46924.76, 'peak_mag': 2.95}, 'B': {'peak_mjd': 46923.75, 'peak_mag': 4.53}, 'U': {'peak_mjd': 46850.8, 'peak_mag': 3.95}, 'I': {'peak_mjd': 46933.71, 'peak_mag': 1.9}, 'R': {'peak_mjd': 46929.79, 'peak_mag': 2.27}}

ALIGNMENT_DECISION:
Use the magnitude photometry entries as the first Phase B light-curve ladder
input. Keep flux/energy records for a later spectral/flux extension, not for the
first STRUC_PERC_I brightness ladder.

CAUTION:
The stage labels produced by osc_to_b_ladder.py are preliminary data-prep
labels based on time since minimum magnitude per band. They are not final
astrophysical phase claims. They are sufficient for the first pipeline-aligned
ladder scaffold and can be refined after visual inspection.

OUTPUTS_CREATED:
osc_to_b_ladder.py
B_SN1987A_light_curve_ladder.csv
