| | 1 | == DVO Example using the Simtest reference database == |
| | 2 | |
| | 3 | This example uses the simtest reference database (catdir.grizy.simtest): |
| | 4 | |
| | 5 | * Display the area covered by the database: |
| | 6 | |
| | 7 | {{{ |
| | 8 | catdir catdir.synth.simtest/ |
| | 9 | resize 1000 500 |
| | 10 | region 180 0 90 ait |
| | 11 | cgrid -c red; skycat |
| | 12 | }}} |
| | 13 | |
| | 14 | |
| | 15 | * Zoom in on an area with data: |
| | 16 | {{{ |
| | 17 | region 151 3.5 3.0 |
| | 18 | box |
| | 19 | skycat -c red -lw 2 |
| | 20 | pmeasure -all -m 10 15 -pt 7 |
| | 21 | label -x "ra offset" -y "dec offset" +x "region 151 3.5 3.0" |
| | 22 | png -name sample.region.large.png |
| | 23 | }}} |
| | 24 | |
| | 25 | * Zoom in on a smaller region |
| | 26 | {{{ |
| | 27 | region 151 3.5 0.25 |
| | 28 | box |
| | 29 | pmeasure -all -m 10 15 -pt 7 |
| | 30 | label +x "region 151 3.5 0.25" |
| | 31 | png -name sample.region.small.png |
| | 32 | }}} |
| | 33 | |
| | 34 | * Make a color-color diagram (average magnitudes) |
| | 35 | {{{ |
| | 36 | avextract -region ra, dec, objid, g_SYNTH, r_SYNTH, i_SYNTH, z_SYNTH, y_SYNTH |
| | 37 | set gr = g_SYNTH - r_SYNTH |
| | 38 | set ri = r_SYNTH - i_SYNTH |
| | 39 | lim -n 1 gr ri; clear; box; plot gr ri |
| | 40 | label -x "g - r" -y "r - i" |
| | 41 | png -name sample.cmd.png |
| | 42 | } |
| | 43 | |
| | 44 | * Extracting data on a specific object (three methods): |
| | 45 | {{{ |
| | 46 | gstar -m ra[0] dec[0] 0.001 |
| | 47 | gstar -m ra[0] dec[0] 0.001 -full |
| | 48 | mextract -region RA, DEC, MAG, TIME where ((abs(RA - ra[0]) < 0.001) && (abs(DEC - dec[0]) < 0.001)) |
| | 49 | }}} |