IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

working on relastro

Location:
trunk/Ohana/src/relastro
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • 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.