Changes between Version 2 and Version 3 of PublicPages/MayallZbandLegacy/NotesforObservers


Ignore:
Timestamp:
Dec 13, 2015 1:51:16 PM (8 years ago)
Author:
Arjun Dey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PublicPages/MayallZbandLegacy/NotesforObservers

    v2 v3  
    55[[PageOutline]]
    66
    7 Log on to the ?? account on the observer2 machine:
    8     Username : ?? [[BR]]
     7Log on to the mzls account on the mayall-idl.kpno.noao.edu machine:
     8    Username : mzls  [[BR]][[BR]]
    99    Password : Ask Arjun, David, or previous observers [[BR]][[BR]]
    1010
    1111Two environment variables define the locations of data and code:
    12    '''$??_DATA=''' -- This is where our raw data files are written [[BR]]
    13    '''$??_OBS=$HOME/mosaic3''' -- This contains the observing product with code and versioned log files. [[BR]]
    14 To set these, type "setenv ??_DATA <path>"
     12   '''$MOS3_DATA=''' -- This is where our raw data files are written [[BR]]
     13   '''$MOS3_OBS=$HOME/mosaic3''' -- This contains the observing product with code and versioned log files. [[BR]]
     14To set these, type, e.g., "export MOS3_DATA=<path>"
    1515
    1616Other directories in the home directory:
    17    '''idl/''' -- IDL products that we make use of, including the idlutils product and the Goodard libraries (a more current version than in idlutils, that does funpack) [[BR]]
    18    '''!ObservingStrategy/''' -- Outputs from Anna Patej's observing strategy code [[BR]]
    19    '''OBSOLETE/''' -- Obsolete code, data files, log files, etc. [[BR]]
    20    '''ps1/''' -- Doug Finkbeiner's Pan-STARRS1 catalogs used by the IDL DECSTAT routine for computing astrometric offsets and photometry [[BR]]
    21    '''rawdata@''' -- Convenient link to the raw data directory $??_DATA [[BR]]
    22 
     17    '''ps1/''' -- Doug Finkbeiner's Pan-STARRS1 catalogs used by the IDL DECSTAT routine for computing astrometric offsets and photometry [[BR]]
     18 
    2319Documentation for the IDL scripts can be printed from the IDL prompt with the DOC_LIBRARY command, for example:
    2420{{{
    25       IDL> doc_library,'decstat'
     21      IDL> doc_library,'mosstat'
    2622}}}
    2723
     
    3935Do the following to update the current NMSL scripts at any time.
    4036
    41         - login to the home directory of ??
    42         - cd mosaic3
    43         - python2.7 py/mosaic3strategy.py -t obstatus/mosaic-tiles_obstatus.fits -d 2015-04-08 -p 1 -pass 1 --moon-sep-limit 40 --start-date 2015-04-09 --start-time 02:00:00 -seez 1.15 -sbz 18.45 --dir <dir_name>
    44 
    45 Assuming that uptiles is running in an IDL window on ??, this will always use the most up-to-date version of the mosaic-tiles_obstatus.fits file. Once this finishes running (usually a couple of minutes), cd to <dir_name> and execute the script:
    46 
    47         prompt> ./mosaic_<UTdate>_plan.sh
     37        - login to mayall-idl as mzls
     38        - cd products/mosaic3
     39        - python2.7 py/mosaic3strategy.py -t obstatus/mosaic-tiles_obstatus.fits -d 2015-12-13 -p 1 -pass 1 --moon-sep-limit 50 --start-date 2015-12-14 --start-time 02:00:00 -seez 1.15 -sbz 18.45 --dir <dir_name>
     40
     41Rename the script, so we don't overwrite it later:
     42
     43       mv mosaic_2015-12-13_plan.json mosaic_2015-12-13_plan1.json
     44       mv strategy_2015-12-13.txt strategy_2015-12-13_plan1.txt
     45
     46The mosaicstrategy script outputs a JSON file (e.g., mosaic_2015_12-13_plan.json in the above example). In order to produce the execution script for NOCS, run Behzad Abareshi's script:
     47
     48       python ./py/jnox.py --in mosaic_2015-12-13_plan1.json --out mzls_2015-12-13_plan1.sh
     49
     50Then copy this output (e.g., mzls_2015-12-13_plan1.sh) to the exec directory of the observer account on the mosaic3 computer:
     51
     52      scp mzls_2015-12-13_plan1.sh observer@mosaic3:/home/observer/exec/
     53
     54Start uptiles running in an IDL window on mayall-idl; this will always use the most up-to-date version of the mosaic-tiles_obstatus.fits file. Once this finishes running (usually a couple of minutes), in a nocs terminal window on mosaic3, cd to exec and execute the script:
     55
     56        ~/exec> ./mzls_2015-12-13_plan1.sh
    4857
    4958= Instructions and details for mosaicstrategy.py =
     
    8291    -p *portion of night (1.0, 0.5 (first half), -0.5 (second half))* [[BR]]
    8392    -pass *desired pass - input 1, 2, or 3* [[BR]]
    84     --dir *name of the dir where the output scripts are located*
     93    --dir *name of the dir where the output scripts are located* [[BR]]
    8594For instance, to generate a pass 3 plan for the entire night of April 26, 2015, run:
    8695{{{
     
    98107   --moon-sep-limit *minimum allowed moon separation, default is 50.0 deg* [[BR]]
    99108   --moon-alt-limit *moon altitude in deg required for switching between z and g,r* [[BR]]
     109   --min-dec *Declination minimum limit for choosing tiles [[BR]]
     110   --max-dec *Declination maximum limit for choosing tiles [[BR]]
    100111
    1011123. Custom Scheduling: [[BR]]
     
    116127To generate a plan for just two hours on the night that starts on 2015-04-06 between 05:00 and 07:00 UTC:
    117128{{{
    118 python ./mosaicstrategy.py -t mosaic-tiles_obstatus.fits -d 2015-04-06 -p 1.0 -pass 1 --start-date 2015-04-07 --start-time 05:00:00 --end-date 2015-04-07 --end-time 07:00:00 --moon-sep-limit 40.0
     129python ./mosaicstrategy.py -t mosaic-tiles_obstatus.fits -d 2015-04-06 -p 1.0 -pass 1 --start-date 2015-04-07 --start-time 05:00:00 --end-date 2015-04-07 --end-time 07:00:00 --min-dec=34 --max-dec=50 --moon-sep-limit 40.0
    119130}}}
    120131
     
    133144
    134145The FITS file listing which tiles have been completed should be updated throughout the night.
    135 This file is '''$DECALS_OBS/obstatus/decam-tiles_obstatus.fits'''.  The following IDL command
     146This file is '''$MOS3_OBS/obstatus/decam-tiles_obstatus.fits'''.  The following IDL command
    136147will monitor exposures as they are taken throughout the night, automatically updating this file:
    137148{{{
     
    141152At the end of the night, you should check the updated tile file into the svn repository:
    142153{{{
    143    cd $??_OBS/obstatus
     154   cd $MOS3_OBS/obstatus
    144155   svn commit obstatus/mosaic-tiles_obstatus.fits --username <YOUR-NAME>
    145156}}}