| | 1 | |
| | 2 | == Creating Detectability Server Request Files == [wiki:PostageStampServer up to PostageStampServer] |
| | 3 | |
| | 4 | Detectability server request files are FITS tables. |
| | 5 | |
| | 6 | We expect that various science servers and other users will have their own programs for |
| | 7 | building request files. |
| | 8 | |
| | 9 | To help with testing the detectability server we have written a simple script called |
| | 10 | detect_query_create, which is installed as part of the standard IPP installation. |
| | 11 | It may be found in the IPP source tree in the directory pstamp/scripts. |
| | 12 | |
| | 13 | This script has no IPP dependencies but does use the perl module Astro::FITS::CFITSIO. |
| | 14 | |
| | 15 | The input to this program is a text file. For example |
| | 16 | |
| | 17 | {{{ |
| | 18 | # DQtest.txt |
| | 19 | |
| | 20 | # A sample detectability query description file |
| | 21 | # This can be parsed with the program detect_query_create to build a |
| | 22 | # MOPS_DETECTABILITY_QUERY fits binary table |
| | 23 | |
| | 24 | # First line of data is for the extension header |
| | 25 | # |
| | 26 | # Note that value for QUERY_ID may be overridden by teh detect_query_create command line argument --query_id |
| | 27 | # Blank and comment lines (like this one) are ignored |
| | 28 | |
| | 29 | # QUERY_ID EXTVER FPA_ID MJD-OBS FILTER OBSCODE STAGE |
| | 30 | warptest.20100519 1 o5304g0066o 55304 z 566 warp |
| | 31 | |
| | 32 | # subsequent lines define the rows in the table |
| | 33 | # Fields are separated by spaces. |
| | 34 | # ROWNUM RA1_DEG DEC1_DEG RA2_DEG DEC2_DEG MAG |
| | 35 | 1 161.59932 58.25591 161.59000 58.25700 19 |
| | 36 | 2 161.62225 58.25447 161.62300 58.25400 19 |
| | 37 | 3 161.63360 58.36666 161.63400 58.36700 19 |
| | 38 | }}} |
| | 39 | |
| | 40 | Only the RA1_DEG and DEC1_DEG columns are used for the detectability query at this point, as only PSF photometry is currently supported. Similarly, the specified magnitude is not currently used in the query. |
| | 41 | |
| | 42 | |