From f12a6c986adc12687f8e62c700616686321c68ee Mon Sep 17 00:00:00 2001
From: Jesse Mapel <jmapel@usgs.gov>
Date: Sun, 29 May 2022 15:52:43 -0700
Subject: [PATCH] Clean MDIS data

---
 examples/data/EN0213023991M.json | 36 ++++++++++++++++++++++++++++++++
 examples/data/EN0213110924M.json | 36 ++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 examples/data/EN0213023991M.json
 create mode 100644 examples/data/EN0213110924M.json

diff --git a/examples/data/EN0213023991M.json b/examples/data/EN0213023991M.json
new file mode 100644
index 0000000..058db19
--- /dev/null
+++ b/examples/data/EN0213023991M.json
@@ -0,0 +1,36 @@
+{"center_ephemeris_time": 357808594.4756267,
+  "detector_center": {"line": 512.5, "sample": 512.5},
+  "detector_line_summing": 2,
+  "detector_sample_summing": 2,
+  "fikid": -236820,
+  "file": "MDIS_StereoPair_maybe/EN0213023991M.IMG",
+  "filter_number": "N/A",
+  "focal2pixel_lines": [0.0, 0.0, 71.42857143],
+  "focal2pixel_samples": [0.0, 71.42857143, 0.0],
+  "focal_length_model": {"focal_length": 549.2139159521081},
+  "ikid": -236820,
+  "image_lines": 512,
+  "image_samples": 512,
+  "instrument_id": "MSGR_MDIS_NAC",
+  "interpolation_method": "lagrange",
+  "line_exposure_duration": 0.018000000000000002,
+  "metakernel": "kernels/mess/msgr_2011_v10.tm",
+  "name_model": "USGS_ASTRO_FRAME_SENSOR_MODEL",
+  "name_platform": "Generic Platform",
+  "name_sensor": "Generic Sensor",
+  "number_of_ephemerides": 1,
+  "number_of_quaternions": 1,
+  "radii": {"semimajor": 2439.4, "semiminor": 2439.4, "unit": "km"},
+  "reference_frame": "IAU_MERCURY",
+  "reference_height": {"minheight": 0, "maxheight": 1000, "unit": "m"},
+  "sensor_orientation": {"quaternions": [[0.7528465619634344, 0.44926051906340886, 0.16033099506460335, 0.4535206854954993]]},
+  "sensor_position": {"positions": [[-3514716.43788728,  1049519.79999179,  2492444.17373205]], "velocities": [[ 2360.65147371, -1064.46425692,  1030.74910585]], "unit": "m"},
+  "spacecraft_clock_stop_count": "1/0213023991:990000",
+  "spacecraft_id": -236,
+  "spacecraft_name": "MESSENGER",
+  "start_time": "2011-05-04 19:15:23.682192",
+  "starting_detector_line": 1,
+  "starting_detector_sample": 9,
+  "starting_ephemeris_time": 357808589.8676267,
+  "sun_position": {"positions": [[-21721356.57958251, -65694934.87412263, -36991.21991652623, -43.39869072882151]], "velocities": [[-43.39869072882151, 17.12147373350676, -0.008645100973494024]], "unit": "m"},
+  "target_name": "MERCURY"}
diff --git a/examples/data/EN0213110924M.json b/examples/data/EN0213110924M.json
new file mode 100644
index 0000000..5218c3d
--- /dev/null
+++ b/examples/data/EN0213110924M.json
@@ -0,0 +1,36 @@
+{"center_ephemeris_time": 357895527.7312159,
+  "detector_center": {"line": 512.5, "sample": 512.5},
+  "detector_line_summing": 2,
+  "detector_sample_summing": 2,
+  "fikid": -236820,
+  "file": "MDIS_StereoPair_maybe/EN0213110924M.IMG",
+  "filter_number": "N/A",
+  "focal2pixel_lines": [0.0, 0.0, 71.42857143],
+  "focal2pixel_samples": [0.0, 71.42857143, 0.0],
+  "focal_length_model": {"focal_length": 549.2191106302377},
+  "ikid": -236820,
+  "image_lines": 512,
+  "image_samples": 512,
+  "instrument_id": "MSGR_MDIS_NAC",
+  "interpolation_method": "lagrange",
+  "line_exposure_duration": 0.019,
+  "metakernel": "kernels/mess/msgr_2011_v10.tm",
+  "name_model": "USGS_ASTRO_FRAME_SENSOR_MODEL",
+  "name_platform": "Generic Platform",
+  "name_sensor": "Generic Sensor",
+  "number_of_ephemerides": 1,
+  "number_of_quaternions": 1,
+  "radii": {"semimajor": 2439.4, "semiminor": 2439.4, "unit": "km"},
+  "reference_frame": "IAU_MERCURY",
+  "reference_height": {"minheight": 0, "maxheight": 1000, "unit": "m"},
+  "sensor_orientation": {"quaternions": [[0.7739191782336012, 0.40069004175480066, 0.09923934123312647, 0.4802584191374251]]},
+  "sensor_position": {"positions": [[-3344929.69071679,  1401586.45371477,  2508046.72743109]], "velocities": [[ 2245.73321082, -1318.71245141,  1021.21357241]], "unit": "m"},
+  "spacecraft_clock_stop_count": "1/0213110924:990000",
+  "spacecraft_id": -236,
+  "spacecraft_name": "MESSENGER",
+  "start_time": "2011-05-05 19:24:16.681795",
+  "starting_detector_line": 1,
+  "starting_detector_sample": 9,
+  "starting_ephemeris_time": 357895522.8672159,
+  "sun_position": {"positions": [[-25423442.2574894, -64084466.51016487, -37685.65144817531, -41.73160859189398]], "velocities": [[-41.73160859189398, 19.899888587545227, -0.007337443855518686]], "unit": "m"},
+  "target_name": "MERCURY"}
-- 
GitLab