Changeset 35263 for trunk/Ohana/src/addstar
- Timestamp:
- Mar 7, 2013, 9:51:07 AM (13 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 5 edited
- 1 copied
-
. (modified) (1 prop)
-
src/addstar/Makefile (modified) (2 diffs)
-
src/addstar/include/addstar.h (modified) (2 diffs)
-
src/addstar/src/ImageIndex.c (copied) (copied from branches/eam_branches/ipp-20130306/Ohana/src/addstar/src/ImageIndex.c )
-
src/addstar/src/UpdateImageIDs.c (modified) (2 diffs)
-
src/addstar/test/simple.dvo (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130306/Ohana (added) merged: 35244-35246,35248-35259,35261-35262
- Property svn:mergeinfo changed
-
trunk/Ohana/src/addstar/Makefile
r34405 r35263 90 90 $(SRC)/GetFileMode.$(ARCH).o \ 91 91 $(SRC)/ReadImageHeader.$(ARCH).o \ 92 $(SRC)/ImageIndex.$(ARCH).o \ 92 93 $(SRC)/UpdateImageIDs.$(ARCH).o \ 93 94 $(SRC)/update_coords.$(ARCH).o \ … … 207 208 $(SRC)/ReadStarsTEXT.$(ARCH).o \ 208 209 $(SRC)/ReadStarsSDSS.$(ARCH).o \ 210 $(SRC)/ImageIndex.$(ARCH).o \ 209 211 $(SRC)/UpdateImageIDs.$(ARCH).o \ 210 212 $(SRC)/FilterStars.$(ARCH).o \ -
trunk/Ohana/src/addstar/include/addstar.h
r34405 r35263 56 56 char *refcat; 57 57 } DVO_DATA; 58 59 # define IDTYPE int 60 61 typedef struct { 62 IDTYPE Nimage; 63 IDTYPE minID; 64 IDTYPE maxID; 65 IDTYPE range; 66 IDTYPE *imageID; 67 IDTYPE *externID; 68 char *found; 69 } ImageIndex; 58 70 59 71 typedef struct sockaddr_in SockAddress; … … 275 287 int UpdateImageIDs (Stars *stars, unsigned int Nstars, Image *images, off_t Nimages); 276 288 289 int CheckDuplicateImageIDs (Image *images, off_t Nimages); 290 int ImageIndexFileInit (); 291 277 292 int 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); 278 293 int LoadDataPMM (FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars); -
trunk/Ohana/src/addstar/src/UpdateImageIDs.c
r28248 r35263 18 18 if (VERBOSE) fprintf (stderr, "can't find %s, creating a new one\n", ImageCat); 19 19 dvo_image_create (&db, GetZeroPoint()); 20 isEmpty = TRUE; 20 ImageIndexFileInit (); 21 isEmpty = TRUE; 21 22 } else { 22 23 /* position to start of file */ … … 51 52 } 52 53 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 53 58 imageID += Nimages; 54 59 status = gfits_modify (&db.header, "IMAGEID", "%u", 1, imageID); -
trunk/Ohana/src/addstar/test/simple.dvo
r34405 r35263 52 52 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 53 53 if ($TAP_VERBOSE) 54 echo exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 54 55 exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 55 56 else … … 68 69 69 70 for i 0 $testfields:n 71 if ($TAP_VERBOSE) echo $testfields:$i 70 72 list name -split $testfields:$i 71 73 if ("$name:0" == "SKIP") continue … … 337 339 PSF_INST_FLUX : SKIP # not ingested into DVO 338 340 PSF_INST_FLUX_SIG : SKIP # not ingested into DVO 339 AP_MAG _STANDARD: mag:aperinst # FAIL341 AP_MAG : mag:aperinst # FAIL 340 342 AP_MAG_RAW : SKIP # not ingested into DVO 341 343 AP_MAG_RADIUS : SKIP # not ingested into DVO … … 346 348 PEAK_FLUX_AS_MAG : SKIP # not ingested into DVO 347 349 SKY : sky 348 SKY_SIG : sky_err350 SKY_SIGMA : sky_err 349 351 PSF_CHISQ : psf_chisq 350 352 CR_NSIGMA : cr_nsigma
Note:
See TracChangeset
for help on using the changeset viewer.
