<jupyter_start><jupyter_text>Notebook to compute the LRS slit corner and midpoint locations in v2,v3 for the SIAF<jupyter_code>import os as os
import numpy as np
from numpy.testing import assert_allclose
import pdb as pdb
import miricoord.miricoord.imager.mirim_tools as mt
mt.set_toolversion('cdp7')
mt.version()
xmid,ymid=326.13-1,300.70-1 # Convert from SIAF to 0-indexed
v2,v3=mt.xytov2v3(xmid,ymid,'F770W')
v2,v3
# Lower-left corner
x,y=304.77-1, 298.38-1
v2,v3=mt.xytov2v3(x,y,'F770W')
v2,v3
# Lower-right corner
x,y=347.49-1, 298.38-1
v2,v3=mt.xytov2v3(x,y,'F770W')
v2,v3
# Upper-right corner
x,y=347.49-1, 303.03-1
v2,v3=mt.xytov2v3(x,y,'F770W')
v2,v3
# Upper-left corner
x,y=304.77-1, 303.03-1
v2,v3=mt.xytov2v3(x,y,'F770W')
v2,v3<jupyter_output><empty_output><jupyter_text>And the LRS slitless location for good measure<jupyter_code>x,y=38.5-1,829.0-1
v2,v3=mt.xytov2v3(x,y,'F770W')
v2,v3<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1540948275862069, 'fraction_numerical': 0.13685344827586207, 'mean_word_length': 6.5528455284552845, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '386521', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 525, 'n_tokens_neox': 473, 'n_words': 77, 'path': 'miricoord/lrs/lrs_siaf.ipynb', 'repo_name': 'mengesser/miricoord', 'size': '928'}