IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2013, 9:51:07 AM (13 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20130306: addstar now can block against duplicate image IDs; mextract, mmatch now use a subset of image metadata instead of the whole table

Location:
trunk/Ohana
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/addstar/Makefile

    r34405 r35263  
    9090$(SRC)/GetFileMode.$(ARCH).o \
    9191$(SRC)/ReadImageHeader.$(ARCH).o \
     92$(SRC)/ImageIndex.$(ARCH).o \
    9293$(SRC)/UpdateImageIDs.$(ARCH).o \
    9394$(SRC)/update_coords.$(ARCH).o \
     
    207208$(SRC)/ReadStarsTEXT.$(ARCH).o \
    208209$(SRC)/ReadStarsSDSS.$(ARCH).o \
     210$(SRC)/ImageIndex.$(ARCH).o \
    209211$(SRC)/UpdateImageIDs.$(ARCH).o \
    210212$(SRC)/FilterStars.$(ARCH).o \
  • trunk/Ohana/src/addstar/include/addstar.h

    r34405 r35263  
    5656  char *refcat;
    5757} DVO_DATA;
     58
     59# define IDTYPE int
     60
     61typedef struct {
     62  IDTYPE Nimage;
     63  IDTYPE minID;
     64  IDTYPE maxID;
     65  IDTYPE range;
     66  IDTYPE *imageID;
     67  IDTYPE *externID;
     68  char *found;
     69} ImageIndex;
    5870
    5971typedef struct sockaddr_in SockAddress;
     
    275287int UpdateImageIDs (Stars *stars, unsigned int Nstars, Image *images, off_t Nimages);
    276288
     289int CheckDuplicateImageIDs (Image *images, off_t Nimages);
     290int ImageIndexFileInit ();
     291
    277292int LoadDataSDSS (FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages);
    278293int LoadDataPMM (FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars);
  • trunk/Ohana/src/addstar/src/UpdateImageIDs.c

    r28248 r35263  
    1818    if (VERBOSE) fprintf (stderr, "can't find %s, creating a new one\n", ImageCat);
    1919    dvo_image_create (&db, GetZeroPoint());
    20     isEmpty = TRUE;
     20    ImageIndexFileInit ();
     21  isEmpty = TRUE;
    2122  } else {
    2223    /* position to start of file */
     
    5152  }
    5253
     54  // set and update the imageID sequence
     55  // the file holding the index is created above if this is an empty db
     56  CheckDuplicateImageIDs (images, Nimages);
     57
    5358  imageID += Nimages;
    5459  status = gfits_modify (&db.header, "IMAGEID", "%u", 1, imageID);
  • trunk/Ohana/src/addstar/test/simple.dvo

    r34405 r35263  
    5252  exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1
    5353  if ($TAP_VERBOSE)
     54    echo exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5455    exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5556  else
     
    6869
    6970  for i 0 $testfields:n
     71    if ($TAP_VERBOSE) echo $testfields:$i
    7072    list name -split $testfields:$i
    7173    if ("$name:0" == "SKIP") continue
     
    337339  PSF_INST_FLUX     : SKIP # not ingested into DVO
    338340  PSF_INST_FLUX_SIG : SKIP # not ingested into DVO
    339   AP_MAG_STANDARD   : mag:aperinst # FAIL
     341  AP_MAG            : mag:aperinst # FAIL
    340342  AP_MAG_RAW        : SKIP # not ingested into DVO
    341343  AP_MAG_RADIUS     : SKIP # not ingested into DVO
     
    346348  PEAK_FLUX_AS_MAG  : SKIP # not ingested into DVO
    347349  SKY               : sky       
    348   SKY_SIG           : sky_err   
     350  SKY_SIGMA         : sky_err   
    349351  PSF_CHISQ         : psf_chisq
    350352  CR_NSIGMA         : cr_nsigma
Note: See TracChangeset for help on using the changeset viewer.