Data products: .phot#

prose stores and retrieves data products in phot files. These can be loaded in a Observation object like:

[1]:
from prose import Observation

obs = Observation("static/example.phot")
obs # to show its content
[1]:
<xarray.Dataset>
Dimensions:          (time: 100, apertures: 32, star: 15, w: 520, h: 520, n: 2,
                      ncomps: 2)
Coordinates:
    stack            (w, h) float64 299.5 300.4 300.9 ... 300.8 301.6 300.2
  * time             (time) float64 2.45e+06 2.45e+06 ... 2.45e+06 2.45e+06
    stars            (star, n) float64 259.8 257.8 433.2 ... 44.97 289.2 69.88
Dimensions without coordinates: apertures, star, w, h, n, ncomps
Data variables: (12/25)
    jd_utc           (time) float64 2.45e+06 2.45e+06 ... 2.45e+06 2.45e+06
    bjd_tdb          (time) float64 2.45e+06 2.45e+06 ... 2.45e+06 2.45e+06
    flip             (time) float64 nan nan nan nan nan ... nan nan nan nan nan
    fwhm             (time) float64 3.568 3.568 3.568 ... 3.568 3.568 3.568
    fwhmx            (time) float64 3.594 3.594 3.594 ... 3.594 3.594 3.594
    fwhmy            (time) float64 3.542 3.542 3.542 ... 3.542 3.542 3.542
    ...               ...
    peaks            (star, time) float64 5.909e+04 5.646e+04 ... 484.1 482.1
    diff_fluxes      (apertures, star, time) float64 0.9741 0.9391 ... 1.573
    diff_errors      (apertures, star, time) float64 0.01026 0.01002 ... 0.4906
    comps            (apertures, ncomps) int64 1 2 1 2 2 1 2 1 ... 1 2 1 2 1 2 1
    weights          (apertures, ncomps) int64 1 1 1 1 1 1 1 1 ... 1 1 1 1 1 1 1
    alc              (apertures, time) float64 0.9706 0.9378 ... 0.9806 0.9789
Attributes: (12/39)
    SIMPLE:       1
    BITPIX:       -64
    NAXIS:        2
    NAXIS1:       600
    NAXIS2:       600
    TELESCOP:     A
    ...           ...
    date:         2022-07-15
    time_format:  bjd_tdb
    photometry:   ['Calibration', 'Trim', 'SegmentedPeaks', 'Cutouts', 'Media...
    target:       0
    method_diff:  broeg
    aperture:     7

All the information is self contained in the structure above from which you can retrieve any data, like:

[2]:
obs.sky
[2]:
array([300.33358828, 300.24643694, 300.19026294, 300.10322184,
       299.77850503, 300.15966624, 299.79727219, 299.93715704,
       299.84975881, 300.26396151, 299.45741991, 299.89604983,
       300.07863016, 300.28553046, 300.2225105 , 300.05819903,
       300.20567016, 299.83406674, 299.77637339, 300.18553343,
       300.06854887, 299.9474951 , 300.27830038, 300.32144013,
       300.68644889, 300.26807479, 299.8861114 , 300.42111644,
       299.94609841, 300.41862369, 300.06907006, 299.89584014,
       300.69866164, 300.13074116, 299.94715364, 299.94873544,
       299.92009911, 300.02695599, 300.13091072, 300.1762975 ,
       300.0062598 , 300.48019558, 299.86701661, 300.52858756,
       300.38999332, 300.05007048, 300.14188112, 299.8463647 ,
       300.12078918, 300.12128479, 300.3143596 , 300.26257969,
       299.90357354, 299.9196207 , 300.03872502, 299.69593592,
       300.02555361, 300.31488537, 300.20301057, 299.87482889,
       299.97546567, 300.11229394, 299.85396628, 299.87483113,
       300.10637844, 300.37778246, 300.01221029, 300.23991531,
       300.27827965, 300.17227458, 300.13408625, 299.91958713,
       300.33719992, 299.42047305, 300.05153551, 299.92460677,
       300.2440425 , 299.78642646, 299.91461697, 299.98963675,
       300.3298671 , 299.95726486, 300.45127595, 300.22246753,
       300.26723635, 300.35498517, 299.870513  , 300.15622227,
       299.98594011, 299.9553161 , 299.97577512, 299.58635676,
       300.12035274, 300.10844075, 299.97255876, 300.28431132,
       299.56213455, 299.93435989, 299.91343177, 300.08946328])

The underlying structure supporting this labelled array is called an xarray