IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 1 and Version 2 of DVO_FAQ


Ignore:
Timestamp:
Aug 9, 2009, 10:57:50 PM (17 years ago)
Author:
Sebastian Jester
Comment:

tracify

Legend:

Unmodified
Added
Removed
Modified
  • DVO_FAQ

    v1 v2  
    11Frequently Asked Questions : DVO
     2
     3==== How do I use the dvo shell, variables, math functions, plotting capabilities etc? ====
     4
     5`dvo` uses the [wiki:Opihi_Shell_Language Opihi Shell Language] (q.v. for the amazing number of things you can do in it).
    26
    37==== How do I update the list of photcodes ? ====
    48
    5 Your .ptolemyrc file specifies the location of a PHOTCODE_FILE as well as a CATDIR, usually with something like:
     9Your .ptolemyrc file specifies the location of a `PHOTCODE_FILE` as well as a `CATDIR`, usually with something like:
    610
    7  CONFDIR                 /home/panstarrs/ipp/psconfig/ipp-2.6.lin64/share/ippconfig
     11{{{
     12 CONFDIR                    /home/panstarrs/ipp/psconfig/ipp-2.6.lin64/share/ippconfig
    813 PHOTCODE_FILE          $CONFDIR/dvo.photcodes
    914 # location of DVO database tables
    1015 CATDIR                 /data/ipp003.0/catdir
    11 
    12 If you want to update the photometry codes, you will have to edit that dvo.photcodes file or specify the location of a new one. But if you have already created a DVO catdir, then the photcodes are locked in place.  Any dvo programs like addstar or dvo itself will pick up the photcodes from the Photcodes.dat file in your CATDIR, not from the PHOTCODE_FILE.  So after updating your PHOTCODE_FILE, you must delete the Photcodes.dat file from your CATDIR.  Then when you run something like addstar, a new Photcodes.dat file will be automatically created.
     16}}}
     17If you want to update the photometry codes, you will have to edit that `dvo.photcodes` file or specify the location of a new one. But if you have already created a DVO catdir, then the photcodes are locked in place.  Any dvo programs like addstar or dvo itself will pick up the photcodes from the `Photcodes.dat` file in your `CATDIR`, not from the `PHOTCODE_FILE`.  So after updating your `PHOTCODE_FILE`, you must delete the `Photcodes.dat` file from your `CATDIR`.  Then when you run something like addstar, a new `Photcodes.dat` file will be automatically created.
    1318
    1419==== addstar is reporting a "bad astrometric solution in header."  How do I get around that? ====
    1520
    16 You probably have an astrometric error term that exceeds the allowable range.   The parameter ADDSTAR_MAX_CERROR can be specified in your camera's dvo.config file.  Try increasing this parameter.   To change it at the command line you can use :
     21You probably have an astrometric error term that exceeds the allowable range.   The parameter `ADDSTAR_MAX_CERROR` can be specified in your camera's `dvo.config` file.  Try increasing this parameter.   To change it at the command line you can use :
    1722
     23{{{
    1824 addstar -D ADDSTAR_MAX_CERROR 5.0  ...
    19 
     25}}}
    2026==== After processing a set of overlapping images, there are too many stars in the catalog. What's wrong? ====
    2127
    2228You may need to re-sort the dvo catalog.  In the normal camera stage processing, each new photometry file is added to the database without any sorting of detected objects (because this is a time-consuming process).  Use the following to sort your overlapping catalogs and coordinate multiple occurrences of the same object:
    2329
     30{{{
    2431 addstar -resort -D CATDIR mycatdir
    25 
     32}}}
    2633To specify the radius (in arcseconds) for determining a match, use
    2734
     35{{{
    2836 addstar -resort -D CATDIR mycatdir -D RADIUS 1.5 
    29 
     37}}}
    3038or edit the appropriate dvo.config file for your camera.
    3139
    3240==== I've got a perfectly good .smf file, but I can't see any stars.  What's wrong? ====
    3341
    34 You might have an error in your .ptolemyrc file.
    35 Compare your .ptolemyrc file to the dvo.site file from the ipp installation you are using.
     42You might have an error in your `.ptolemyrc` file.
     43Compare your `.ptolemyrc` file to the `dvo.site` file from the ipp installation you are using.
    3644
    3745
    3846==== How do I set up my .ptolemyrc file? ====
    3947
    40 Here is an example .ptolemyrc that functions with GPC1 data as of ipp-2.6 :
     48Here is an example `.ptolemyrc` that functions with GPC1 data as of ipp-2.6 :
    4149
    42 <pre>
     50{{{
    4351CONFDIR                 /home/panstarrs/ipp/psconfig/ipp-2.6-bills.lin64/share/ippconfig
    4452CAMERA                  default
     
    7684input                   $CONFDIR/$CAMERA/dvo.config
    7785
    78 </pre>
     86}}}
    7987
    8088
    8189==== How can I access info from the mysql database tables within DVO? ====
    82 Use <code>dbconnect</code> to connect to the database and <code>dbselect</code> to collect the data.
     90Use `dbconnect` to connect to the database and `dbselect` to collect the data.
    8391
    84 <pre>
     92{{{
    8593dvo: dbconnect
    8694USAGE: dbconnect (hostname) (username) (database)
     
    8896dvo: dbselect
    8997USAGE: dbselect (fields) from (table) [where]
    90 </pre>
     98}}}
    9199
    92100Here is an example using the '''gpc1''' database that extracts some vectors from the MD09 chip processing output.
    93101
    94 <pre>
     102{{{
    95103dvo:  dbconnect  hostmachine  uid gpc1
    96104dvo: dbselect chipProcessedImfile.class_id,chipProcessedImfile.fwhm_major,chipProcessedImfile.fwhm_minor,chipProcessedImfile.n_stars,chipProcessedImfile.n_astrom,chipProcessedImfile.sigma_ra,chipProcessedImfile.sigma_dec FROM chipProcessedImfile,chipRun,rawExp  WHERE chipProcessedImfile.chip_id=chipRun.chip_id AND chipRun.exp_id=rawExp.exp_id AND rawExp.ra >= '5.8' AND rawExp.ra <= '5.9' AND rawExp.decl >= '-0.1' AND rawExp.decl <= '0.1' AND rawExp.exp_time>60 AND chipProcessedImfile.fault=0 AND chipRun.state='full'
    97 </pre>
     105}}}
    98106
    99107
    100108==== How do I create/manipulate a vector/array of values? ====
    101 Create vectors from scratch with the <code>create</code> function   Example:
     109Create vectors from scratch with the `create` function   Example:
    102110
     111{{{
    103112 create x 0 100 0.1
    104 
     113}}}
    105114creates a vector called x with 100 values spaced in increments of 0.1, starting at 0.
    106115
    107 Perform arithmetic, etc. with the <code>set</code> function.   Use
     116Perform arithmetic, etc. with the `set` function.   Use
    108117
     118{{{
    109119 help set
    110 
     120}}}
    111121to see detailed help and examples.
    112122
    113123==== How do I make a histogram of a vector or an image? ====
    114 The internal dvo documentation (available via <code>help</code> or <code>?</code>)  is a bit confusing for this. 
     124The internal dvo documentation (available via `help` or `?`)  is a bit confusing for this. 
    115125
    116 <code>histogram</code> computes the histogram of a ''vector'' (a list of numbers).
     126`histogram` computes the histogram of a ''vector'' (a list of numbers).
    117127The usage line for this function should be:
     128{{{
    118129 USAGE: histogram invec outvec start end [delta]
    119 
    120 <code>imhist</code> computes the histogram of an ''image''
     130}}}
     131`imhist` computes the histogram of an ''image''
    121132The usage line should read:
     133{{{
    122134 USAGE: imhist <buffer> <x> <y> [-region sx sy nx ny] [-range min max] [-delta binsize]
    123 
    124 '''Ignore the response you get from <code>help histogram</code>'''
     135}}}
     136'''Ignore the response you get from `help histogram`'''
    125137
    126138==== How do I make plots of vectors and how do I set the plotting style? ====
    127 Use the <code>plot</code> and <code>style</code> functions.  Check out the dvo help pages with:
     139Use the `plot` and `style` functions.  Check out the dvo help pages with:
    128140
     141{{{
    129142 help plot
    130143 
    131144 help style
    132 
    133 See also <code>lim</code> and <code>box</code>
     145}}}
     146See also `lim` and `box`
    134147
    135148==== How do I save a plot or image to a printable file? ====
    136149All of these ''should'' save the current active Kapa window as a file:
     150{{{
    137151 png outfile.png
    138152 jpeg outfile.jpeg
    139153 ps outfile.ps
    140 
    141 Presently (as of 080814) only the ps command uses the output filename correctly (png saves to ''kapa.png'' regardless of the provided filename) and the <code>jpeg</code> command doesn't seem to do anything at the moment.
     154}}}
     155Presently (as of 080814) only the ps command uses the output filename correctly (png saves to ''kapa.png'' regardless of the provided filename) and the `jpeg` command doesn't seem to do anything at the moment.
    142156
    143157==== Why does addstar say "Error in config: can't find RADIUS"? ====
     
    145159This error occurs when addstar can't find a dvo.config file referenced via 'input' in your ~/.ptolemyrc like so:
    146160
     161{{{
    147162 input                   $CONFDIR/$CAMERA/dvo.config
     163}}}
     164`CONFDIR` is the config directory (typically defined earlier in ~/.ptolemyrc).
    148165
    149 <code>CONFDIR</code> is the config directory (typically defined earlier in ~/.ptolemyrc).
     166`CAMERA` is the camera name, either also from ~/.ptolemyrc or given on the addstar command line with `-D CAMERA camname`.
    150167
    151 <code>CAMERA</code> is the camera name, either also from ~/.ptolemyrc or given on the addstar command line with <code>-D CAMERA camname</code>.
    152 
    153 All of these are case-sensitive (except perhaps on a Mac), so you need to give $CONFDIR and $CAMERA in exactly the capitalization as the corresponding directories on your disk, and the directory and file need to exist, of course. [http://pan-starrs.ifa.hawaii.edu/bugzilla/show_bug.cgi?id=1100 Bug 1100] asks for a clearer error message.
     168All of these are case-sensitive (except perhaps on a Mac), so you need to give $CONFDIR and $CAMERA in exactly the capitalization as the corresponding directories on your disk, and the directory and file need to exist, of course. Bug #1100 asks for a clearer error message.