NEWFIRM Manual

Here we describe the NEWFIRM observing GUI and discuss other information relevant for observing.

Startup:

NEWFIRM Observing GUI

  • Open VNC viewers [NEWFIRM Obs and NEWFIRM IRAF and NEWFIRM NICC (optional)]
    • The NEWFIRM support scientist of Telescope Operations support staff will help
  • Start NEWFIRM GUI in Obs VNC viewer

Start NEWFIRM GUI Start NEWFIRM GUI

  • Press "Start of Night"
    • This should open the environmental cover.
NEWFIRM Start of Night
  • Check that environmental cover is open on the NEWFIRM NICC vncviewer.  At present the environmental cover sensor is not working so the NEWFIRM Observing GUI always has the status "Closed".
NEWFIRM Environmental Cover "Closed" NEWFIRM Environmental Cover "Open"
  • Turn on the detector power
NEWFIRM Detectors "Off" NEWFIRM Detectors "On"
  • Open the filter tool
NEWFIRM Filter Tool
  • Initialize the filters and close when done
NEWFIRM Filter Init NEWFIRM Filter Close
  • Check that the current filter position is set to "DARK".  Move filter position to "DARK" if the dark filter is not in position.
NEWFIRM Dark In NEWFIRM Change Filter
  • Set Proposal ID (PropID)
    • This will load the proposal PI and co-Is
    • No images can be taken unless the PropID is set to a valid PropID
NEWFIRM set PropID
  • Take a junk image to reset image counter/number
    • The image counter does not reset to 1 at the beginning of the night
    • Make sure dark filter is in place
    • Under Exposure Control:
      • Set Basename to "ajunk_"
      • Set Title to "Junk"
      • Set Exp. Time to "2.000"
      • Set Repeats to "0"
      • Set Coadds to "1"
      • Set Fowler to "1"
      • Set Sequence to "1"; This must be the last step.
      • Click "Expose"
      • The image counter will now be reset and calibration data will start with image number *0002*
NEWFIRM Reset Counter

NEWFIRM IRAF Interface

  • Open NEWFIRM IRAF VNC viewer
NEWFIRM IRAF VNC viewer
  • Start IRAF window by clicking on the IRAF icon and click open
NEWFIRM IRAF Icon NEWFIRM IRAF Start IRAF
  • The IRAF terminal should now be on your screen.
IRAF Terminal
  • Open the IRAF ds9 window

IRAF ds9 Icon IRAF ds9 Open
  • The ds9 window should now be on the screen.
IRAF ds9
  • Change directory to the current data directory:
    "cd /data/UTYYYYMMDD"

IRAF ds9
  • Start the IRAF mscred and nf packages in the IRAF ecl window.

IRAF start mscred IRAF start nf

Daytime Calibrations

Dome Flats

  • Change the filter from "DARK" to filter of the first flat to take.  In general, this is "JX".
  • Select the filter from the menu and click the "FILTER MOVE" button.
Filter Menu Filter Move
  • After completion, the "JX" filter will be in position.
Flat Filter Position
  • Open the "FLATS" tool
NEWFIRM Flats Tool Button
  • This opens the "Flats" dialog box where predefined scripts to take the flats exist.  Pre-existing scripts to obtain a sequence of flats can be found by clicking the folder icon.
Flats Directory Button
  • Choose the flat script you want to run and click "OK".
Select flat script
  • Click "Load" to load the script and "GO" to execute the script.
NEWFIRM load flats
  • Press "QUIT" when the dome flat sequence is complete.

Additional Details for Observers

The configuration files to take flats are located in the directory "/home/newfirm/flats/" and should serve most purposes.  Custom flat configuration files can be made.  As is customary for NIR observations, flats are taken with the dome lamps turned "On" and "Off".    The default configuration file takes flats for the following filters: JX, HX, KXs, 1644, 2124, and 2168.  The currently used values for the exposure times and lamp intensities are given in a table below.  The format of the configuration of a sequence for the JX filter is:

[1]
title="Dflat J On"
exptime=15.000
nimages=11
fowler=1
coadds=1
filter="JX"
lamp="QUARTZ"
intensity=100.000000

[2]
title="Dflat J Off"
exptime=15.000
nimages=11
fowler=1
coadds=1
filter="JX"
lamp="QUARTZ"
intensity=0.000000

The "exptime" parameter determines the exposure time of the image. The "nimages" parameter controls how many images are taken.  The "filter" parameter selects the filter and the "intensity" parameter sets the dome lamp intensity.  The permitted filter names are in the table below.  The number of "fowler" samples and "coadds" should be "1".  The custom configuration file can be uploaded and used to take flats as described above.  It is not recommended taking flats directly using the GUI.

Flat Name

Exposure
Time (s)
Lamp
Intensity (%)
Expected
Counts (DN)
JX 15 100 ~5600
JX 15 0 ~750
HX 3 100 ~6900
HX 3 0 ~200
KXs 2 100 ~6300
KXs 2 0 ~3000
J1 10 100 ~6300
J1 10 0 ~450
1066 480 100 ~4900
1066 480 0 ~10
1187 240 100 ~4400
1187 240 0 ~150
1644 45 100 ~6300
1644 45 0 ~50
2096 30 100 ~4900
2096 30 0 ~1200
2124 20 100 ~4100
2124 20 0 ~1600
2168 20 100 ~4400
2168 20 0 ~2200

Darks

  • Change the filter to "DARK" by selecting the DARK filter in the menu and click "FILTER MOVE".  Wait until the DARK filter is in position.
NEWFIRM Select Filter NEWFIRM Dark In
  • Open the "DARKS" tool.
NEWFIRM Dark Tool
  • This opens the DARKS dialog box where you can choose the dark script to run.  Pre-existing scripts to obtain a sequence of darks can be found by clicking the folder icon.
Open dark folder
  • Choose the dark script you want to run and click "OK".
NEWFIRM Select dark script
  • Click "Load" button to load the script and "GO" to execute the script.
NEWFIRM Run Darks
  • Press "QUIT" when the dark sequence is complete.

Additional Details for Observers

The configuration files that take the dark exposures are located in the directory "/homenewfirm/darks/".  The darks need to be taken in the same observing configuration as the science observations of the night, i.e., matching the exposure time, number of coadds, and fowler samples.  The format of a darks configuration file is:

[1]
title="Dark 001s01c01f"
exptime=1.000
nimages=5
fowler=1
coadds=1

for a dark with an exposure time of 1 second, a Fowler sample of 1, and 1 coadd.

[2]
title="Dark 180s02c08f"
exptime=180.000
nimages=5
fowler=8
coadds=2

for a dark with exposure time of 180 seconds, a Fowler sample of 8, and 2 coadds.  The dark configuration file for observations can be loaded and executed by following the procedure described above.  It is not recommended taking darks directly using the GUI.

Telescope Pointing

At the beginning of the night, the first task is to check the telescope pointing.  This procedure is detailed below.

  • Move to a bright star (6th-8th mag)
  • Put the JX filter in place by selecting the JX filter from the list and press the "FILTER MOVE" button.
NEWFIRM Filter Select NEWFIRM Filter Move
  • Use the GUI interface under "Exposure Control" to take an image of the field with the following values:
    • Filter = JX
    • Exp Time = 2 s
    • Repeats = 0
    • Coadds = 1
    • Fowler = 1
    • ObsType = "object"
    • Filename = "zp_"
    • Title = "Telescope Pointing"
NEWFIRM Telescope Pointing Setup
  • Take an exposure by pressing the "EXPOSE" button.
NEWFIRm ZP Take Exposure
  • Use the IRAF window to display detector 3.  If the pointing is close, the bright star will be located in the detector gap. To display in IRAF:
    nf> display zp_0156[3] 1 zs+
NEWFIRM ZP acquisition
  • To place the bright star on a detector (detector 3 to be exact), use the NEWFIRM GUI to perform an offset of 60" N and 60" E.  Enter the offset values in "System Control" panel and press the "TCS OFFSET" button to move the telescope.  North/East offsets have a positive (+) sign and South/West offsets have a negative (-) sign. Take an exposure once the offset is complete.
NEWFIRM TCS Offset Tool
  • Use IRAF to display the new image for detector 3.
    nf> displ zp_0157[3] 1 zs+
NEWFIRM Telescope Pointing Check
  • Use the IRAF nf.zp task to calculate the offset of the star to the center of the detector gap.  The "zp" task is a wrapper to the "imexam" task.  Follow the on-screen instructions to determine the offset.  The "zp" task can only calculate the offset if the star is in detector 3.
NEWFIRM ZeroPoint Calculated Offsets
  • Use the NEWFIRM GUI to perform an offset of 60.3" S and 96.3" W.  Enter the offset values in "System Control" panel and press the "TCS OFFSET" button to move the telescope.  North/East offsets have a positive (+) sign and South/West offsets have a negative (-) sign. Make sure to include the minus sign for these South/West offsets.  When the offset is completed, ask the Telescope Operators to perform a telescope zero-point.  Take a new image after the Operators have completed the Telescope Zero-Point.
NEWFIRM Zero-Point Offset
  • Check the quality of the telescope pointing of the last image by loading the image into a ds9 window.
    • Open the FITS File as a "Mosaic IRAF" image.
      NEWFIRM Open As Mosaic IRAF
    • Select the file, e.g. "/data/UT20250513/zp_0158.fits". Make sure the path is for the current data directory.
      NEWFIRM Open file in ds9
    • Change the image scaling from "Min Max" to "ZScale" in the ds9 "Scale" menu so you can see the stars.
      NEWFIRM Change to ZScale in ds9
    • Open the Analysis/Catalogs/Infrared/2MASS Point Sources catalog in ds9.
      NEWFIRM Open 2MASS Catalog in ds9
    • Create a source filter in the 2MASS Point Sources window, e.g. "$Jmag < 13" (or 12 or 14) and press "Filter" to display stars in the 2MASS Catalog with a J magnitude less than 13 mag (or 12 or 14 mag).  The filter magnitude can be changed as necessary.
      NEWFIRM Select 2MASS Catalog in ds9
    • You will see the 2MASS Point Sources overlaid on the mosaicked ds9 image.
      NEWFIRM 2MASS sources displayed on ds9 image
  • The Telescope Pointing is now complete.

Telescope Focus

  • The Telescope Focus is performed at the beginning of the night after the Telescope Pointing check is complete.  It is normally done on the same field as the Telescope Pointing. 
  • The Telescope Focus depends upon the ambient temperature and the selected filter.  All focus exposures should be taken using the JX filter.
  • Since re-commissioning NEWFIRM, we have maintained a spreadsheet on a shared Google Drive where the best focus in JX and temperature are recorded.  That spreadsheet can be found here.
  • Before running a focus sequence it is suggested to change the telescope focus manually to the best focus value predicted by the spreadsheet for the current temperature.
    • Set filter to JX.  It should already be JX after the Telescope Pointing procedure.
    • Check the temperature.
      NEWFIRM Truss Temperature
    • Use the spreadsheet to predict the best focus for that temperature.  Enter the temperature in the cyan box below "Temp".
      NEWFIRM Focus calculator
    • Set the focus in the NEWFIRM GUI.  The NEWFIRM focus tool only performs relative offsets from the current focus.  Calculate the focus offset (Offset = Desired Focus - Current Focus) and enter the value in the box below "TCS FOCUS".  Press the "TCS FOCUS" button when done and you should see the current focus change.
      NEWFIRM TelFocus Offset
    • Take an image.
      • Filter = JX
      • Exp Time = 2 s
      • Repeats = 0
      • Coadds = 1
      • Fowler = 1
      • ObsType = "object"
      • Filename = "focus_"
      • Title = "Focus Test"
        NEWFIRM Focus Test
    • DIsplay the image in IRAF and inspect the image in IRAF with imexam. Pressing the "e" key in imexam with display a contour plot.  If the image is close to focus, the contours will appear round.
      nf> displ focus_0159[3] 1 zs+
      nf> imexam
      NEWFIRM Focus Check
  • Take a focus sequence.  Even if the focus looks good from the previous step, taking a focus sequence records the current temperature value into a database that can be rad by the observing GUI and will alert the observer to temperature changes that require a focus offset.
    • Set the observing parameters for the sequence (JX filter, 2 sec exposure time, 0 repeats, 1 coadd, 1 fowler) in the "Exposure Control" panel.
      NEWFIRM Focus Sequence Parameters
    • Select the "nf_focus_wide" script in the "scripts" menu.
      NEWFIRM Select Focus Wide script
    • Enter the expected focus value in the "args" box.
      NEWFIRM Enter Focus Sequence Center Value
    • Press "exec".
      NEWFIRM Execute Focus Wide Script
    • This script will take nine focus images centered on the input expected focus value.
  • Determine the best focus using the NEWFIRM IRAF "nffocus" task.
    • The "nffocus" task is a wrapper to the IRAF noao.obsutil.starfocus task.  It cannot use the Multi-Extension FITS (MEF) files that the NEWFIRM control software writes to disk.  It can only work on one detector.
    • The NEWFIRM "nf_focus_wide" (and "nf_focus_narrow") task writes a list of the files taken during a focus sequence.  This file is "/tmp/focuslist"
    • Edit the file "/tmp/focuslist" so the "nffocus" task will only work on one detector.  This is done by appending "[n]" to the end of the file names where n=1,2,3, or 4, corresponding to detector 1, detector 2, detector 3 or detector 4. The text editors available are: vi, gedit, and nano.
      • Before editing, the entries in the file look like:
        /data/UT20250513/focus_0174.fits
        /data/UT20250513/focus_0175.fits
        /data/UT20250513/focus_0176.fits
        /data/UT20250513/focus_0177.fits
        /data/UT20250513/focus_0178.fits
        /data/UT20250513/focus_0179.fits
        /data/UT20250513/focus_0180.fits
        /data/UT20250513/focus_0181.fits
        /data/UT20250513/focus_0182.fits
      • After editing, the entries in the file should look like the following to select detector 3:
        /data/UT20250513/focus_0174.fits[3]
        /data/UT20250513/focus_0175.fits[3]
        /data/UT20250513/focus_0176.fits[3]
        /data/UT20250513/focus_0177.fits[3]
        /data/UT20250513/focus_0178.fits[3]
        /data/UT20250513/focus_0179.fits[3]
        /data/UT20250513/focus_0180.fits[3]
        /data/UT20250513/focus_0181.fits[3]
        /data/UT20250513/focus_0182.fits[3]
    • Execute the IRAF "nffocus" task.
      nf> nffocus
    • The "nffocus" task will automatically display the first image of the focus sequence.  The task will then prompt the observer with the following:
      ** Select stars to measure with 'm' and finish with 'q'.
      ** Additional options are '?', 'g', and :show.
    • Select a star and press "m".  A graph showing a plot of FWHM vs Focus and Ellipticity vs Focus will appear in the irafterm window.
      NEWFIRM nffocus output
    • After pressing "q", the "nffocus" task will quit and display the results in the IRAF ecl window.
      NEWFIRM nffocus FWHM output
    • Set the telescope focus to the value determined by the "nffocus" task.  Calculate the offset between the desired focus and the current focus (Offset = Desired - Current) and enter the value in the box below "TCS FOCUS".  Press "TCS FOCUS" to change the focus value.
      NEWFIRM TelFocus Offset
    • The software will also record the temperature.  During the night it will compare the current temperature to the temperature during the focus sequence and display a warning if the temperature changes enough to affect the focus.
      NEWFIRM Focus and Temperature Change
    • The NEWFIRM filters are not parfocal, so the telescope focus needs to be changed when changing filters.  The focus offsets have been determined during engineering time with stable and good (<1.2" FWHM) seeing.  The offset values relative to JX are given here. The NEWFIRM GUI has an "AutoFocus" option that will change the focus when the filters are changed.  Enable the AutoFocus tool by checking the box for "AutoFocus" for filters.
      NEWFIRM Filter AutoFocus
  • The Telescope Focus sequence is complete.

Additional Details for Observers

We will discuss how to check image quality using imexam during a focus sequence.

We will discuss how focus differs for observations near zenith with respect to observations at higher airmass.

We will discuss how focus changes with temperature.

The telescope focus offsets, relative to the JX focus, is given below.  The table can also be found here.

FILTER

Focus Offset
(relative to JX)
JX -
HX +100
KXs +220
J1 +50
1066 -50
1187 +50
1644 +100
2096 +80
2124 +165
2168 +175

Observing

  • Using GUI (not recommended)
  • Using GUI scripts
  • Using GUI sequences
  • Using CLI observations

Shutdown

  • Put the "DARK" filter in place.
  • Turn off the detector power.
  • Close the environmental cover.  Pressing the "End of Night" button should do this.  You can check on the NEWFIRM NICC vncviewer.
  • Exit the NEWFIRM GUI.

 

Updated on May 22, 2025, 1:44 am