This page contains a number of "recipes" for performing a variety of tasks from the command line using MOP. Although they still work, most of these procedures are deprecated; the preferred method in most cases is to use the GUI.
Some commands in the recipes are there only to keep the GUI from getting confused. Commands and options only used to coordinate the command line process with the GUI process are shown in italics.
Ideally, you should be following the procedures page instead of this cookbook.
mt> startDa -murmurmt> ptConnectmt> initNight -poolInitmt> initializeTelescopemt> iackmt> startupGUIIdeally, you should be following the procedures page instead of this cookbook.
mt> shutdownGUImt> exitmt> setAutoFocus
-onmt> setAutoFocus
-offWhen autofocus is on, each time takeSequence is run using the
-checkForStars option (or a sequence is observed from the GUI),
MOP will examine the r exposure and make a focus adjustment, if necessary,
based on the ellipticity of the stars in that exposure.
For more complete description including how to determine the proper focus, see the "Focus the telescope manually" recipe.
mt> focusPT
$desiredFocus$desiredFocus is the desired focus value. Sets the
focus on the PT properly.This needs to be done every time the filter wheel box is power cycled or rebooted.
mt> fackmt> initializeCCD
-cleanCCD -informGUIAfter using TCS to point the telescope at the dome screen,
mt> fflamp onmt> doDome
$numberOfDomeSequences$numberOfDomeSequences sequences of 5 exposures of
dome flats.mt> fflamp offmt> doBias
$desiredNumberOfBiasFrames -informGUI$desiredNumberOfBiasFrames bias frames.mt> pointToTwilightmt> doTwilight $filter
$exposureTime -informGUI$exposureTime second exposure through the
$filter filter. The header and mdReport entry will be
appropriate for a twilight exposure. After the completion of the
exposure, MOP automatically calculates the count level of the exposure
and cleans the CCD if it is over-exposed. At the conclusion of the
exposure, the telescope position is offset by 30 arcseconds, to prevent
contaminating stars in consecutive exposures from appearing in the same
place in each twilight frame.
If the GUI is used to keep the log, the exposure level will be reported there.
Repeat doTwilight for each desired twilight frame.
mt> autoTwilight
-informGUIThe filter, target number of exposures, initial exposure time, and
maximum number of attempts before giving up are all optional parameters;
see the autoTwilight help string for more detail.
To slew the PT to a desired set of coordinates:
mt> ptConnectmt> nextObject $RAhours
$RAminutes $RAseconds $decDegrees $decMinutes $decSeconds $epochmt> nextObject 12 30 39.4 12 23 28.0 2000
After this command completes, you should see the coordinates you entered (as well as the airmass of these coordinates) listed as destination coordinates on the TCS display, and TCS should further report that it is "ready to slew."
mt> dfmSlewnextObject,
dfmSlew will actually sent the telescope there. (If the
coordinates are too obnoxious, TCS may refuse.)mt> dfmCoords
-informGUIdfmData, keeping
track of where the telescope is. This step is not necessarily essential,
because most procedures which require that this array be up to date
force an update when they are run.To take an exposure (or sequence of exposures) and record appropriate values in the header and mdReport file:
mt> ptConnectmt> setTargettargetData(name).targetData(flavor).targetData(ra).targetData(dec).targetData(epoch).targetData(filterList).targetData(filterList).mt> takeSequenceTo take a 10 second exposure of M87 in r:
mt> ptConnectmt> nextObject 12 30 39.4 12 23 28.0 2000mt> dfmSlewmt> HMSToDeg 12:30:39.4mt> DMSToDeg 12:23:28.0mt> setTargetname: [] M87
flavor: [] Man
ra: [] 187.664166
dec: [] 12.39111
epoch: [] 2000
filterList: [] r
exposureList: [] 10
mt> takeSequence -informGUICoordinates, exposure times, and the other necessary information for observing a target field are stored in the mtstds product. The following sequence of commands can be used to observe one of these targets.
mt> loadStandards$MTSTDS_DIR/fk5/fk5mt.abridged,
$MTSTDS_DIR/primary/priFieldCenters-APO20.par,
$MTSTDS_DIR/secondary/mt_patch.par,and
$MTSTDS_DIR/priFieldContents-APO20.dat. Information on
these targets is loaded into the targets global array, and
the name of the targets are appended to the global tcl list
targetList.
If loadStandards has already been executed in the MOP
process, you usually should not do it again. If for some reason you feel
you need to (if, say, you edited the contents of tergetList
and want to set it back to the defaults), use the -replace
option to completely reset the relevant arrays.
If you wish to load the priorities of secondary patches (and all
parameters of secondary patches not contained in the mtstds product),
you can use the -readMOPDB option.
mt> listTargets
$targetName$targetName is the name of the target field to be
observed. listTargets will list a number of parameters for
a target or list of targets, one line per target. Verify that the
airmass (the third column) is reasonable.mt> nextTarget
$targetName$targetName is the name of the target field to be
observed. It must be one of the elements in targetList.
Verify that TCS is prepared to slew to the desired field.mt> dfmSlewmt> takeSequence
-informGUInextTarget sets the values of targetData, set
interactively in the "Taking an exposure or sequence of exposures"
instructions above, from values loaded from the mtstds product and
stored in the targets array.)Note that if you use the -doit switch on
nextTarget, it will go ahead and do the slew and take the
sequence.
Observing a manual target loaded from a file follows the same procedure as
observing a standard field, except that the file with the manual target must
be loaded. So instead (or in addition to) loading the observation parameters
using loadStandards, load the file with the desired manual
target(s) using
mt> loadTargets
$fileName$fileName.Observing a list of targets using this method should still work, but using the GUI is a much better method. The doTargetList procedure cannot presently play nice with the GUI.
mt> set plannedTargets [list $target1 $target2 $target3
$target4]$target?s are the targets to observe, in order.
There can be any number of targets.mt> listTargets
$plannedTargets -projectAirmassmt> doTargetList
$plannedTargetsFirst, take an exposure of an FK5 star using the "Observe a standard field" recipe above. To determine a
suitable FK5 field, you may need to substitute the
listTargetsWithAirmass procedure:
mt> listTargetsWithAirmass 1.0
1.2 FK5listTargets) for all FK5 star targets with a current
airmass between 1.0 and 1.2for the listTargets commands described in that recipe.
Take note of the exposure number; it will be printed by the
takeSequence command, and reported in the logViewer (if the
-informGUI options is used).
Then, determine the coordinates of the FK5 star in that image:
mt> set pointingImage [quickDisplay $exposureNumber
-debais]quickDisplay. The handle of the region containing your
image is now stored in $pointingImage.mt> centerThis $row
$column$row,
$column would be appear in the center of the CCD if an
exposure were taken.mt> zpointTarget
$targetName$targetName is the name of the FK5 field at which
you are currently pointed, tells TCS the PT is currently pointed
directly at $targetName, and that it should correct the
pointing appropriately.mt> regDel $pointingImageThis can be done while the telescope is pointing anywhere with stars. There is some dependence of focus on zenith distance, so taking a focus frame with a zenith distance typical of your targets is a good idea.
mt> doFocus $startingFocus
10 -informGUI$startingFocus should be the
highest focus value considered. The focus frame consists of 5 offset
exposures, each offset by 1 focus setting. A larger offset separates the
last and second to last (with the lowest and second lowest focus values)
allowing on to easily distinguish which image corresponds to which focus
value. Note the exposure number of the focus frame; it will be printed
in the terminal, and will appear in the logGUI if the -informGUI switch
is used.mt> set focusImage [quickDisplay $exposureNumber
-debais]quickDisplay. The handle of the region containing your
image is now stored in $focusImage. The image in best focus
should be the sharpest and also the roundest.mt> focusPT
$newFocus$newFocus is the desired focus as determined by
examining the image, properly changes the current focus of the PT.mt> regDel $focsuImagemt> quickDisplay
$exposureNumber -delete -debiasThe -delete option deletes the region (allocated memory)
in which the image is stored after it is displayed. If you with to do
more with the image than just display it, leave off this option and
quickDisplay will return the region handle. Remember to
delete the region when you are done with it (using
regDel).
The -debias causes quickDisplay to do a
quick and dirty debias on the image after loading it.
If exposures taken on an MJD other the the current on must use the
-mjd option to tell MOP where to look for the image.
When MOP begins to complain about "no (in focus) stars in field," or the auto focus seems to be doing strange things, it can be instructive to run by hand the routine MOP uses to check exposures:
mt> checkForStarInField
$exposureNumber -verbose$exposureNumber is the exposure number of the
exposure to check. If the -verbose option is left off, it
simply returns the number of stars it finds in the image that meets its
roundness criteria for in focus stars. When included, it prints
information (location, sky background, FWHM of the major axis and minor
axis, whether or not MOP classifies it as a star) on each peak it finds
in the central 512 by 512 region of the image. (The regions size may be
tuned using the -subregionSize switch.) It then prints a
list of the axis ratios of the stars found, the index of the star with
the median axis ratio, and the median axis ratio itself. This is what
MOP uses to determine if the image is in focus.Last edited by Eric H. Neilsen Jr., 6/29/2001