Requires TC1S2B0_01_02842S506E1942.img in data directory
%% Cell type:code id: tags:
``` python
fileName='data/TC1S2B0_01_02842S506E1942.img'
camera=knoten.csm.create_csm(fileName)
```
%% Cell type:code id: tags:
``` python
# Set the output location of the resulting .cub
cub_loc='data/TC1S2B0_01_02842S506E1942.cub'
try:
isis.kaguyatc2isis(from_=fileName,to=cub_loc)
exceptProcessErrorase:
print(e.stderr)
```
%% Cell type:markdown id: tags:
# Ingest the image and spiceinit
%% Cell type:code id: tags:
``` python
# Set the output location of the resulting .cub
cub_loc='data/TC1S2B0_01_02842S506E1942.cub'
try:
isis.kaguyatc2isis(from_=fileName,to=cub_loc)
exceptProcessErrorase:
print(e.stderr)
try:
isis.spiceinit(from_=cub_loc,shape='ellipsoid')
exceptProcessErrorase:
print(e.stderr)
```
%% Cell type:markdown id: tags:
# Define a function that takes an image coordinate, projects it to a ground point using ISIS, then projects the result back into an image coordinate using USGSCSM and computes the difference between image coordinates.