IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2014, 7:34:47 PM (12 years ago)
Author:
eugene
Message:

first pass at loadICRF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/opihi/dvo/images.c

    r37378 r37570  
    132132  if ((image = LoadImagesDVO (&Nimage)) == NULL) return (TRUE);
    133133  BuildChipMatch (image, Nimage);
     134
     135  // XXX push this and BuildChipMatch into LoadImagesDVO?
     136  char mapfile[DVO_MAX_PATH];
     137  char *catdir = dvo_get_catdir ();
     138  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", catdir);
     139  AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, FALSE);
     140
     141  // assign images.coords.offsetMap -> table->map[i]
     142  if (table) {
     143    AstromOffsetTableMatchChips (image, Nimage, table);
     144  }
    134145
    135146  if (SOLO_MOSAIC && photcode) {
Note: See TracChangeset for help on using the changeset viewer.