IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2013, 9:12:29 AM (13 years ago)
Author:
eugene
Message:

get primary skycell info from boundary tree via projID/skycellID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/relphot/src/ImageOps.c

    r35604 r35735  
    414414// returns image.Mcal - ff(x,y)
    415415int MatchImageName (off_t meas, int cat, char *name) {
     416
     417  off_t i;
     418
     419  if (!name) return FALSE;
     420  if (!name[0]) return FALSE;
     421
     422  if (!MeasureToImage) return FALSE;
     423
     424  i = MeasureToImage[cat][meas];
     425  if (i == -1) return FALSE;
     426
     427  // this is a bit crude: stack image names are of the form:
     428  // RINGS.V3.skycell.1495.027.sky.191211.stk.988232.cmf.
     429
     430  // the primaryCell has a name of the form RINGS.V3.skycell.1495 or RINGS.V3.skycell.1495.027
     431  // (if we use projection or skycell as the primary)
     432
     433  if (!strncmp(image[i].name, name, strlen(name))) return TRUE;
     434  return FALSE;
     435}
     436
     437// returns image.Mcal - ff(x,y)
     438int MatchImageSkycellID (off_t meas, int cat, char *name) {
    416439
    417440  off_t i;
Note: See TracChangeset for help on using the changeset viewer.