diff --git a/environment.yml b/environment.yml index 69a1ce3b0baa871773eb16f6191c4f53fba6f670..8058563b69820a46285524b55a53d55d6afc211e 100644 --- a/environment.yml +++ b/environment.yml @@ -3,15 +3,20 @@ channels: - conda-forge - usgs-astrogeology dependencies: - - python >= 3 - coveralls - csmapi - gdal - jinja2 + - jupyter + - matplotlib - numpy - - pytest + - plio + - pvl - pyproj + - pysis + - pytest + - python>=3 - requests - scipy - - matplotlib - shapely + - usgscsm diff --git a/examples/cassini_isis_cmp.ipynb b/examples/cassini_isis_cmp.ipynb index 842205f7d8dad327cbbcfb9ecef313dcda451fc5..82c30f6953ddc44243921dc20076b76c5771e7cc 100644 --- a/examples/cassini_isis_cmp.ipynb +++ b/examples/cassini_isis_cmp.ipynb @@ -165,51 +165,51 @@ " <th>0</th>\n", " <td>1.0</td>\n", " <td>1.0</td>\n", - " <td>-1020.486363</td>\n", - " <td>-1024.409488</td>\n", + " <td>0.153039</td>\n", + " <td>0.906085</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>1.0</td>\n", " <td>1024.0</td>\n", - " <td>-1020.472731</td>\n", - " <td>1022.315882</td>\n", + " <td>0.142231</td>\n", + " <td>0.326977</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>1024.0</td>\n", " <td>1.0</td>\n", - " <td>1026.247265</td>\n", - " <td>-1024.418200</td>\n", + " <td>-0.425122</td>\n", + " <td>0.915083</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>1024.0</td>\n", " <td>1024.0</td>\n", - " <td>1026.260599</td>\n", - " <td>1022.307325</td>\n", + " <td>-0.435769</td>\n", + " <td>0.335980</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>512.0</td>\n", " <td>512.0</td>\n", - " <td>1.888677</td>\n", - " <td>-2.053929</td>\n", + " <td>-0.142021</td>\n", + " <td>0.620648</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ - " line sample line_diff sample_diff\n", - "0 1.0 1.0 -1020.486363 -1024.409488\n", - "1 1.0 1024.0 -1020.472731 1022.315882\n", - "2 1024.0 1.0 1026.247265 -1024.418200\n", - "3 1024.0 1024.0 1026.260599 1022.307325\n", - "4 512.0 512.0 1.888677 -2.053929" + " line sample line_diff sample_diff\n", + "0 1.0 1.0 0.153039 0.906085\n", + "1 1.0 1024.0 0.142231 0.326977\n", + "2 1024.0 1.0 -0.425122 0.915083\n", + "3 1024.0 1024.0 -0.435769 0.335980\n", + "4 512.0 512.0 -0.142021 0.620648" ] }, - "execution_count": 13, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -224,16 +224,17 @@ "\n", "for idx, row in pixels_df.iterrows():\n", " pixels_df.iloc[idx]['line_diff'], pixels_df.iloc[idx]['sample_diff'] = check_pixel(camera, cub_loc, row['line'], row['sample'])\n", - "\n", + + " \n", "pixels_df" ] } ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "autocnetdev", "language": "python", - "name": "python3" + "name": "autocnetdev" }, "language_info": { "codemirror_mode": { @@ -245,7 +246,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.1" + "version": "3.6.7" } }, "nbformat": 4, diff --git a/examples/data/FC21A0038582_15170161546F6F.json b/examples/data/FC21A0038582_15170161546F6F.json new file mode 100644 index 0000000000000000000000000000000000000000..52267da3260d018c5c09a71c1dcbd08bd06506ac --- /dev/null +++ b/examples/data/FC21A0038582_15170161546F6F.json @@ -0,0 +1 @@ +{"radii": {"semimajor": 482.1, "semiminor": 445.94, "unit": "km"}, "sensor_position": {"positions": [[258050.2687983894, 14326.958947727007, -4862493.832226484]], "velocities": [[-104.7145626143671, -85.03261098015915, -5.786975988636929]], "unit": "m"}, "sun_position": {"positions": [[360880681.08749247, 246471123.80357987, 30565891.31704259, 47397.508212291505]], "velocities": [[47397.508212291505, -69397.53747853675, 0.19335721325156585]], "unit": "m"}, "sensor_orientation": {"quaternions": [[0.001892487545803033, 0.021367862646678643, -0.2778085145572912, -0.9603969294912772]]}, "detector_sample_summing": 1, "detector_line_summing": 1, "focal_length_model": {"focal_length": 150.08}, "detector_center": {"line": 511.5, "sample": 511.5}, "starting_detector_line": 1, "starting_detector_sample": 1, "focal2pixel_lines": [0.0, 0.0, 71.40816909454442], "focal2pixel_samples": [0.0, 71.40816909454442, 0.0], "optical_distortion": {"dawnfc": {"coefficients": [9.2e-06]}}, "image_lines": 1024, "image_samples": 1024, "name_platform": "DAWN", "name_sensor": "FRAMING CAMERA 2", "reference_height": {"maxheight": 1000, "minheight": -1000, "unit": "m"}, "name_model": "USGS_ASTRO_FRAME_SENSOR_MODEL", "center_ephemeris_time": 488002614.62253857} \ No newline at end of file