| | 1 | == Other DVO Tools == |
| | 2 | |
| | 3 | dvomerge |
| | 4 | |
| | 5 | dvomerge is used to merge dvo databases. there are two main modes of operation: |
| | 6 | |
| | 7 | * merge two databases into a third, previously absent, database: dvomerge (input1) and (intput2) to (output) |
| | 8 | * merge one database into an existing database : dvomerge (input) into (output) |
| | 9 | |
| | 10 | Note that all dvomerge options may include the -region (RAmin) (RAmax) (DECmin) (DECmax) options |
| | 11 | to restrict the merge to a portion of the sky. |
| | 12 | |
| | 13 | The second mode of operation has two minor variants: |
| | 14 | |
| | 15 | * dvomerge (input) into (output) continue |
| | 16 | the 'continue' option allows the dvomerge process to operate on a |
| | 17 | fraction of the sky, in the assumption that an initial merge was |
| | 18 | performed (with the 'into' mode). The 'continue' is needed to tell |
| | 19 | dvomerge that the images of the two databases have already been |
| | 20 | merged; in this case, dvomerge will examine the image tables and |
| | 21 | determine the mapping of image IDs from the state of the output |
| | 22 | database. |
| | 23 | |
| | 24 | * dvomerge (input) into (output) from (list) |
| | 25 | the 'from' variant is equivalent to the 'continue' variant, but in |
| | 26 | this case the catalog tables to be merged are specified in the list |
| | 27 | file. The file contains one catalog file per line, with the name |
| | 28 | giving the directory and filename of the cpt files, without the |
| | 29 | catdir component (eg, n0000/0001.01.cpt). |
| | 30 | |
| | 31 | Threads : threading support is available for dvomerge .. into, except |
| | 32 | for the 'from' mode. Add the option '-threads N' to specify the |
| | 33 | number of threads to be used. Each thread handles a separate catalog |
| | 34 | table (read from disk, calculate the merge, write to disk). With only |
| | 35 | a few threads, it is easy to saturate the disk I/O system, at which |
| | 36 | point the threading does not improve the speed of the merge process. |
| | 37 | |
| | 38 | Some other words of warning: |
| | 39 | |
| | 40 | * dvomerge does not attempt to check for previous merges (successful |
| | 41 | or not). A re-run of dvomerge will simply duplicate the data |
| | 42 | previously merged. You must track your own results: which cpt files |
| | 43 | were merged in a given run. |
| | 44 | |
| | 45 | * the region option selects the cpt files which touch the region. to |
| | 46 | select exactly the cpt files you want, reduce the region by a small |
| | 47 | amount to avoid overlapping neighboring regions. For example, if |
| | 48 | you want to include only a specific cpt file with RA,DEC bounds of |
| | 49 | 0.0 - 1.0, 2.5 - 3.5, you might use -region 0.01 0.99 2.51 3.49 |
| | 50 | |
| | 51 | * the cpt headers define their boundaries (RA0, RA1, DEC0, DEC1). |
| | 52 | |
| | 53 | * the merged dvo database is not sorted (indexed). To use it with the |
| | 54 | dvo shell or programs like relphot or relastro, it is necessary to |
| | 55 | re-index with addstar -resort -D CATDIR (catdir). (Note that |
| | 56 | addstar -resort is also now able to use multiple threads: add the |
| | 57 | -threads N option). |
| | 58 | |
| | 59 | dvorepair |
| | 60 | |
| | 61 | dvorepair can be used to fix damaged dvo databases. Repair is |
| | 62 | possible because the measurement tables (cpm) and the image table |
| | 63 | together contain all of the information needed to regenerate the |
| | 64 | average (cpt) and secfilt (cps) tables. |
| | 65 | |
| | 66 | dvorepair has several modes of operation: |
| | 67 | |
| | 68 | * dvorepair -images-vs-measures (catdir) (Ntol) |
| | 69 | |
| | 70 | this mode scans the database and compares the number of detections |
| | 71 | tied to a specific image (in the measure tables) with the number of |
| | 72 | detections claimed by that image (in the average table). Images |
| | 73 | which have too few detections are reported to standard out. The |
| | 74 | value of Ntol specifies the number of detections which can be |
| | 75 | dropped -- a few missing detections for a given image is not |
| | 76 | catastrophic. |
| | 77 | |
| | 78 | * dvorepair -delete-image-list (catdir) (list) |
| | 79 | |
| | 80 | this mode accepts the list of bad images as reported by the |
| | 81 | -images-vs-measures mode. It then scans the database and deletes |
| | 82 | all detections associated with the deleted images. It also repairs |
| | 83 | the average (cpt) and secfilt (cps) tables so they are consistent |
| | 84 | with the repaired measurement tables. The repaired output tables do |
| | 85 | not overwrite the existing tables; instead they are written with the |
| | 86 | suffix ".fixed". It is up to the user to find and replace the |
| | 87 | original files with the .fixed version. |
| | 88 | |
| | 89 | Note that the user may edit the output list from -images-vs-measures |
| | 90 | and choose not to delete images as desired. But be careful: the |
| | 91 | format of the lines of the input file must match the original output |
| | 92 | format. |
| | 93 | |
| | 94 | Note that a repaired database is not indexed: you must run addstar |
| | 95 | -resort to re-index the database. |
| | 96 | |
| | 97 | * dvorepair -fix-images (catdir) (list) |
| | 98 | |
| | 99 | This mode accepts the same for list file as -delete-image-list, and |
| | 100 | in this case, deletes the images from the image table (as opposed to |
| | 101 | the detections). |
| | 102 | |
| | 103 | * dvorepair -fix-cpt (images) (list) |
| | 104 | |
| | 105 | This mode accepts a list of corrupted cpt files and rebuilds the |
| | 106 | average and secfilt tables from the measurements. Instead of a |
| | 107 | (catdir), the inputs are the full path or relative path to the image |
| | 108 | table and a list of the full or relative paths to the cpt files |
| | 109 | which are broken, ** with the .cpt extension removed**. |
| | 110 | |
| | 111 | Again, repaired cpt, cps, cpm files are saved with the extension .fixed. |
| | 112 | |
| | 113 | dvoverify |
| | 114 | |
| | 115 | dvoverify will scan a dvo database or subset (by region) and verify |
| | 116 | the database integrity. At the moment, the only check it makes is to |
| | 117 | verify that the tables are FITS compliant. (ie, no check is made for |
| | 118 | internal consistency of the number of average, measure, or secfilt |
| | 119 | entries). |
| | 120 | |
| | 121 | |
| | 122 | |