IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 6 and Version 7 of Dvo_tutorial


Ignore:
Timestamp:
May 7, 2009, 1:37:59 AM (17 years ago)
Author:
Sebastian Jester
Comment:

reformat for trac

Legend:

Unmodified
Added
Removed
Modified
  • Dvo_tutorial

    v6 v7  
    7373{{{
    7474 # for the flatcorr catdir
    75 
     75 
    7676 Set the region for plotting and plot a coordinate grid:
    7777 region 314.7428 37.1718 3
     
    7979 #Set the region for catalog extraction:
    8080 skyregion 310 320 33 40
    81 
     81 
    8282 # for the 20090327 catdir
    8383 region 60 0 5
     
    8989
    9090Show which images are present in the current skyregion:
     91{{{
    9192 images
    92 
     93}}}
    9394Extracting average quantities into vectors (similar to those in sm, or arrays in IDL or C etc.) is done via `avextract`; from the currently defined region by giving the `-region` argument:
     95{{{
    9496 avextract -region RA DEC g r i y
    9597 [... takes a while for big regions with lots of measurements ...]
    96 
     98}}}
    9799NB: From looking at the source code, the syntax is supposed to be:
     100{{{
    98101 -region # take ra,dec limits from currently defined plotting 'region'
    99102 -skyregion ramin ramax decmin decmax # use ra,dec limits as given
    100103 no -region or -skyregion command # use previously defined skyregion
    101 
     104}}}
    102105However, with the `-region` setting, the output list does not actually seem to be affected by changing the `region`. I.e. better use the `skyregion` variant!
    103106
    104107Also note that there is only ever '''one''' active skyregion, ie. `avextract -skyregion` changes the skyregion in the same way as the `skyregion` command. You can see the currently active one with the
     108{{{
    105109 skyregion
     110}}}
    106111command.
    107112
    108113In addition to the quantities themselves, there is both an uncertainty and scatter; I think, usually the scatter is reported in the `:err` version of quantities; for RA and DEC, the error is in dRA, dDEC (see `avextract --help fields`:
     114{{{
    109115  avextract -region RA dRA DEC dDEC g g:err r r:err i i:err y y:err
    110 
     116}}}
    111117'''Note there have been problems with the calculations of some scatter/error columns, so not all of them may be there.'''
    112118
    113119To see which vectors you've loaded, say
     120{{{
    114121 vectors
    115 
     122}}}
    116123There are two more `extract` commands:
    117124 * `mextract` extracts measurements; however, one can't compute colours from these (e.g.) because they are returned without any notion of which entry in the vector belongs to which object
     
    123130
    124131The `avextract`, `mextract` and `mmextract` commands allow restricting the rows that are returned by adding a SQL-like `where` clause:
     132{{{
    125133 avextract -region RA DEC g r i y where g-r < 0
    126 
     134}}}
    127135=== Find out which images contain a given ra, dec ===
    128136
     137{{{
    129138 gimages 314.7428 37.1718 -region
    130 
     139}}}
    131140== Plotting and computing ==
    132141
    133142To plot two vectors against each other, say
     143{{{
    134144 limits g r
    135145 box
    136146 plot g r
    137 
     147}}}
    138148To compute and plot new vectors, say
    139149
     150{{{
    140151 set gr = g - r
    141152 clear
     
    143154 box
    144155 plot gr r
    145 
     156}}}
    146157To plot things in sky coordinates, use `cplot`:
     158{{{
    147159 cplot RA DEC
    148 
     160}}}
    149161= Things we want to know/do =
    150162
     
    164176If you have gpc1 as your default camera in your ~/.ptolemyrc, you can omit the -D CAMERA gpc1.
    165177
     178{{{
    166179 The Relphot command comes from [wiki:IPPstripe82]
    167  * Pull out star/galaxy separation flag, restrict sample to stars
     180}}} * Pull out star/galaxy separation flag, restrict sample to stars
    168181 * Filter on magnitude errors
    169182 * Dump ra dec mag magerr stargalflag into ASCII file for customized analysis