Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with reading pointing file from new APT version due to appended glossary #57

Open
kammerje opened this issue Jan 18, 2023 · 0 comments

Comments

@kammerje
Copy link

Traceback (most recent call last):
File "run_pynrc_new_hd_53143.py", line 297, in
create_level1b_FITS(sim_config,
File "/Users/jkammerer/Documents/Code/pynrc_new/pynrc/pynrc/simul/ngNRC.py", line 154, in create_level1b_FITS
obs_input = DMS_input(xml_file, pointing_file, json_file, sm_acct_file,
File "/Users/jkammerer/Documents/Code/pynrc_new/pynrc/pynrc/simul/apt.py", line 6110, in init
self.program_info = gen_all_apt_visits(xml_file, pointing_file, sm_acct_file, json_file,
File "/Users/jkammerer/Documents/Code/pynrc_new/pynrc/pynrc/simul/apt.py", line 5239, in gen_all_apt_visits
pointing_info = get_pointing_info(pointing_file)
File "/Users/jkammerer/Documents/Code/pynrc_new/pynrc/pynrc/simul/apt.py", line 4648, in get_pointing_info
do_this = ((int(elements[1]) > 0) & ('NRC' in elements[4])) or
IndexError: list index out of range

THIS IS THE GLOSSARY AT THE END OF THE POINTING FILE THAT CAUSES THE ISSUE. IF I DELETE IT FROM THE POINTING FILE IT WORKS:

========================================
Glossary

   Tar - Target order #                              
   Tile - Mosaic Tile order #                        
   Exp - Exposure order #                            
   Dith - Dither order #                             
   Aperture Name - Name of aperture                  
   Target - Target name                              
   RA - Target RA                                    
   Dec - Target Dec                                  
   BaseX/Y - Base Offsets from the initial point in the science instrument ideal coordinate frame (in arcsec)
   DithX/Y - Dither offsets from the Base point in the science instrument ideal coordinate frame (in arcsec)
   V2/V3 - Position of the target in the JWST focal plane in the V2/V3 coordinate frame (in arcsec)
   IdlX/Y - Ideal X/Y Position of the target in the science instrument ideal coordinate frame (in arcsec). This is the combination of the BaseX/Y and the DithX/Y.
   Level - Levels used to reason on visit splitting. Can take the values: NONE,FORCED,REPEAT,TARGET,APERTURE,TILE,MSA_CONFIG,FILTER,DITHER,SUBDITHER
   Type - Type of pointing: Science, Acq             
   ExPar - External parallel slot duration           
   DkPar - Dark parallel slot duration               
   dDist - delta distance dDist from the previous pointing
   APA - aperture position angle (for NIRSpec MOS only)

   Notes: For more information on the these coordinate systems please see: 
   https://jwst-docs.stsci.edu/display/latest/JWST+Instrument+Ideal+Coordinate+Systems

   There is an option in the APT preferences (in the JWST tab) called "High precision pointings report" which increases the number of decimal places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant