The platepars_all_recalibrated.json file - markmac99/ukmon-pitools GitHub Wiki

RMS creates two scientific data files, one being the FTPdetectinfo file, and the other the platepars_all_recalibrated.json file. What is in the latter?

The initial platepar file

When you first set up the camera you installed a 'platepar' file. This file is used by RMS to map each frame to the sky (platesolving in astronomical language).

The initial platepar was manually generated using the SkyFit2 utility as explained here, and contains details of the date, time and location that the reference image was taken plus details of the mathematical model that was used to map the sky onto the image. The model takes into account distortion due to lens effects and refraction near the horizon.

Automated recalibration

During image processing, RMS adjusts the model for each individual detection to allow for small movements of the camera during the night. These could be caused by wind, thermal effects, or by vibrations due to traffic, people or animals. Our cats love jumping on the observatory roof...

File contents

The results of automated recalibration are stored in the platepars_all file. For each FF file containing detections, RMS creates a section in the file indexed by the FF name, followed by the platepar data for that frame. There should be one section for each frame that could be recalibrated.

The file is a text file but the data is stored as JSON, a structured language that allows computers to read the information back into a dictionary. This allows RMS to quickly find the platepar for each frame and apply it correctly. It is also used by server-side trajectory and orbit solvers.

{
    "FF_UK0006_20211102_174908_806_0058624.fits": {
        "F_scale": 13.520390641244425,
        "Ho": 135.20043085888028,
        "JD": 2458574.3507742244,
        "RA_H": 0,
        "RA_M": 0,
        "RA_S": 0,
        "RA_d": 94.22186489381463,
        "UT_corr": 0,
        "X_res": 1280,
        "Y_res": 720,
        "alt_centre": 43.770235145870494,
        "asymmetry_corr": false,
        "auto_check_fit_refined": false,
        "auto_recalibrated": true,
        "az_centre": 237.3768284193804,
        "dec_D": 0,
        "dec_M": 0,
        "dec_S": 0,
        "dec_d": 17.694786627963694,
        "distorsion_type": "poly3+radial",
        "distorsion_type_list": [
            "poly3+radial",
            "radial3",
            "radial5",
            "radial7"
        ],
        "distortion_type": "poly3+radial",
        "distortion_type_list": [
            "poly3+radial",
            "poly3+radial3",
            "poly3+radial5",
            "radial3-all",
            "radial4-all",
            "radial5-all",
            "radial3-odd",
            "radial5-odd",
            "radial7-odd",
            "radial9-odd"
        ],
        "distortion_type_poly_length": [
            12,
            13,
            14,
            7,
            8,
            9,
            6,
            7,
            8,
            9
        ],
        "elev": 80.0,
        "equal_aspect": false,
        "extinction_scale": 1.0,
        "focal_length": 0,
        "force_distortion_centre": false,
        "fov_h": 88.7110928957436,
        "fov_v": 47.27339448758259,
        "gamma": 1.0,
        "lat": 51.8831,
        "lon": -1.30616,
        "mag_0": -2.5,
        "mag_lev": 10.154563281528736,
        "mag_lev_stddev": 0.20996039932775085,
        "measurement_apparent_to_true_refraction": false,
        "poly_length": 12,
        "pos_angle_ref": 33.53411779239954,
        "refraction": true,
        "rotation_from_horiz": -2.893204872647113,
        "star_list": [],
        "station_code": "UK0006",
        "version": 2,
        "vignetting_coeff": 0.0007130535612064279,
        "vignetting_fixed": false,
        "x_poly": [
            15.656477480965243,
            -0.12340023748529935,
            -0.042121643676431765,
            7.74677014623194e-06,
            -5.4811452701488584e-06,
            3.294398974517788e-05,
            2.643003087972929e-07,
            7.228213235972348e-08,
            2.50867714142293e-07,
            1.9330013649411083e-07,
            -7.580837453080252e-05,
            -5.3344628300615795e-05
        ],
        "x_poly_fwd": [
            15.656477480965243,
            -0.12340023748529935,
            -0.042121643676431765,
            7.74677014623194e-06,
            -5.4811452701488584e-06,
            3.294398974517788e-05,
            2.643003087972929e-07,
            7.228213235972348e-08,
            2.50867714142293e-07,
            1.9330013649411083e-07,
            -7.580837453080252e-05,
            -5.3344628300615795e-05
        ],
        "x_poly_rev": [
            17.581044877932914,
            -0.1499328705138045,
            -0.060212351357346275,
            -1.5236517366606933e-06,
            -1.0384008765300434e-06,
            1.4989907723736588e-05,
            2.6945269226157086e-07,
            5.997681327726196e-08,
            2.3781880398509778e-07,
            9.887131331365094e-08,
            -1.7370832608325836e-05,
            -2.262621374936299e-05
        ],
        "y_poly": [
            -12.31592199759319,
            0.051456565839732404,
            -0.13131952390752835,
            -1.4277384536241981e-05,
            2.736210786080716e-06,
            -1.2215760591576389e-05,
            3.1968430886473816e-08,
            2.752844144923549e-07,
            2.6832773613798372e-08,
            3.2570594828794683e-07,
            -6.56696485149919e-05,
            -2.2310409819870756e-05
        ],
        "y_poly_fwd": [
            -12.31592199759319,
            0.051456565839732404,
            -0.13131952390752835,
            -1.4277384536241981e-05,
            2.736210786080716e-06,
            -1.2215760591576389e-05,
            3.1968430886473816e-08,
            2.752844144923549e-07,
            2.6832773613798372e-08,
            3.2570594828794683e-07,
            -6.56696485149919e-05,
            -2.2310409819870756e-05
        ],
        "y_poly_rev": [
            -15.35291455675201,
            0.06601893871105668,
            -0.15969189064168093,
            -1.4641729036318982e-05,
            -2.3165607706173593e-06,
            -1.2973930110710176e-05,
            1.3308312241313094e-09,
            2.2991451933173906e-07,
            -1.0341981152846794e-08,
            2.4691311408668297e-07,
            2.313814574873395e-05,
            -1.479478401720065e-05
        ]
    },
    "FF_UK0006_20211102_174919_056_0058880.fits": {
        "F_scale": 13.520390641244425,
⚠️ **GitHub.com Fallback** ⚠️