IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11742


Ignore:
Timestamp:
Feb 11, 2007, 11:55:41 AM (19 years ago)
Author:
eugene
Message:

working on relastro

Location:
trunk/Ohana/src
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/def/average.d

    r6992 r11742  
    3232# this structure should only be used for internal representations
    3333# the average-FORMAT structures should be used for external representations
     34# note that the average magnitudes are stored in the 'secfilt' table (change this name??)
     35# the index for the secfilt table is just Nsecfilt times the index for the average table.
  • trunk/Ohana/src/libdvo/doc/dvo-structures.txt

    r6245 r11742  
     1
     2I now have the ability to load and save DVO databases in old formats,
     3with automatic conversion to the current 'internal' representations
     4for the average, measure, and image tables.  an important concern with
     5this process is ensuring that we track the old layout names and avoid
     6breaking existing databases.  Here is a list of old databases, some of
     7which may not have been written with the right names, or with
     8inaccurate names.  these can be fixed by setting the FORMAT and MODE
     9header keywords with the 'fits_insert' command:
     10
     11- LONEOS : old-style cmp files (ie, RAW), with the 'LONEOS' format.
     12- CFHT Elixir databases: cmp files, ELIXIR format
     13- Brandon's Taurus db: incorrect 'PANSTARRS' format, should be called
     14  'PSTEST1'
     15
     16I am going to use the following naming convention for future db table
     17updates:
     18
     19- PANSTARRS.PS1.0, PANSTARRS.PS1.1, etc
     20- PANSTARRS.PS4.0, PANSTARRS.PS4.1, etc
     21
     22The next version of the DVO format needs several major changes:
     23
     24  - unique IDs in the measure and average tables.
     25  - reference to the source image in the measure table.
     26  - chip X,Y coordinates and errors in the measure table
     27  - remove primary average magnitude from average.d and only use
     28    the secfilt.d table for the average magnitudes
     29
     30These are fairly substantial modifications.  Can I do these changes on
     31an appropriate timescale to get Dave Monet working with relastro?  Is
     32it necessary to do these all at once?
     33
     34------
    135
    236DVO has undergone at least two bit-incompatible versions of the data
  • trunk/Ohana/src/relastro/doc/notes.txt

    r6822 r11742  
    11
    2 2006.04.08 : relphot contemplations
     22007.02.11
     3
     4  relastro major modes:
     5
     6  - update the astrometry of objects in the images
     7    - load objects within a region
     8    - foreach object
     9      - calculate average R,D
     10      - update db tables (dR, dD)
     11    - include external trends
     12      - parallax factor
     13      - atm trends
     14
     15  - update the astrometric parameters of images
     16    - use the average R,D for objects, update image terms
     17    * include external refs with adjustable weighting
     18
     19  - image parameter smoothing
     20
     21  - simultaneous fit of objects and images
     22    - identify parameters to constrain
     23    - limited number of internal objects?
     24
     25
     262006.04.08 : relastro contemplations
    327
    428relastro will perform the astrometry equivalent to relphot.  For
  • trunk/Ohana/src/relastro/src/args.c

    r8390 r11742  
    171171    remove_argument (N, &argc, argv);
    172172    ImagSelect = TRUE;
     173  }
     174
     175  /* possible operations */
     176  UpdateObjects = FALSE;
     177  if ((N = get_argument (argc, argv, "-update-objects"))) {
     178    remove_argument (N, &argc, argv);
     179    UpdateObjects = TRUE;
     180  }
     181  UpdateImages = FALSE;
     182  if ((N = get_argument (argc, argv, "-update-images"))) {
     183    remove_argument (N, &argc, argv);
     184    UpdateImages = TRUE;
    173185  }
    174186
  • trunk/Ohana/src/relastro/src/relastro.c

    r8395 r11742  
    1 # include "relphot.h"
     1# include "relastro.h"
    22
    33int main (int argc, char **argv) {
     
    5050  }
    5151
    52   /* determine fit values */
    53   for (i = 0; i < NLOOP; i++) {
    54     setMrel  (catalog, Ncatalog);
    55     setMcal  (catalog, FALSE);
    56     setMmos  (catalog, FALSE);
    57     setMgrid (catalog);
    58    
    59     if (PLOTSTUFF) {
     52  /* major modes */
     53  if (UpdateObjects) {
     54    UpdateObjects (catalog, Ncatalog);
     55  }
     56  if (UpdateImages) {
     57    UpdateImages (catalog, Ncatalog);
     58  }
     59
     60  /* put these types of functions inside the update functions
    6061      plot_scatter (catalog, Ncatalog);
    6162      plot_grid (catalog);
     
    6465      plot_stars (catalog, Ncatalog);
    6566      plot_chisq (catalog, Ncatalog);
    66     }
    67     if ((i == 1) || (i == 5) || (i ==  9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE);
    68     if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog);
    69     if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics (catalog, Ncatalog);
    70     if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images ();
    71     global_stats (catalog, Ncatalog);
    72   }
     67  */
    7368
    74   SAVEPLOT = TRUE;
    75   plot_scatter (catalog, Ncatalog);
    76   plot_grid (catalog);
    77   plot_mosaics ();
    78   plot_images ();
    79   plot_stars (catalog, Ncatalog);
    80   plot_chisq (catalog, Ncatalog);
    81 
    82   if (USE_GRID) dump_grid ();
    8369  if (!UPDATE) exit (0);
    8470
    85   /* set Mcal & Mmos for bad images */
    86   setMcal  (catalog, TRUE);
    87   setMmos  (catalog, TRUE);
    88 
    89   /* at this point, we have correct cal coeffs in the image/mosaic structures */
    90   for (i = 0; i < Ncatalog; i++) dvo_catalog_free (&catalog[i]);
    91   freeImageBins (Ncatalog);
    92   freeMosaicBins (Ncatalog);
    93   freeGridBins (Ncatalog);
    94 
    95   /* load catalog data from region files, update Mrel include all data */
    96   reload_catalogs (skylist);
    97   setMcalFinal ();
     71  /* need to figure out how to update images, etc */
    9872  dvo_image_update (&db, VERBOSE);
    9973  dvo_image_unlock (&db);
Note: See TracChangeset for help on using the changeset viewer.