Changeset 37649
- Timestamp:
- Nov 20, 2014, 9:38:34 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/relastro/src
- Files:
-
- 5 edited
-
FrameCorrection.c (modified) (3 diffs)
-
UpdateChips.c (modified) (1 diff)
-
bcatalog.c (modified) (1 diff)
-
load_catalogs.c (modified) (1 diff)
-
relastro_images.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/FrameCorrection.c
r37642 r37649 160 160 161 161 // XXX write out an image to represent the correction 162 FrameCorrectionWriteImageSH (frame, "map.dR.fits", TRUE); 163 FrameCorrectionWriteImageSH (frame, "map.dD.fits", FALSE); 162 static int version = 0; 163 char filenameR[1024], filenameD[1024]; 164 snprintf (filenameR, 1024, "%s/map.dR.%02d.dat", CATDIR, version); 165 snprintf (filenameD, 1024, "%s/map.dD.%02d.dat", CATDIR, version); 166 version ++; 167 168 FrameCorrectionWriteImageSH (frame, filenameR, TRUE); 169 FrameCorrectionWriteImageSH (frame, filenameD, FALSE); 164 170 165 171 SHtermsFree (dRc); … … 236 242 SHterms *Ylm = SHtermsInit (dRc->lmax); 237 243 238 FILE *f = fopen ("sh.dat", "w"); 244 static int version = 0; 245 char filename[1024]; 246 snprintf (filename, 1024, "%s/sh.%02d.dat", CATDIR, version); 247 FILE *f = fopen (filename, "w"); 239 248 myAssert (f, "oops"); 249 version ++; 240 250 241 251 for (i = 0; i < Nicrf; i++) { … … 612 622 // *** save the icrf points and fit residuals 613 623 { 614 FILE *f = fopen ("map.dat", "w"); 624 static int version = 0; 625 char filename[1024]; 626 snprintf (filename, 1024, "%s/map.%02d.dat", CATDIR, version); 627 FILE *f = fopen (filename, "w"); 628 version ++; 615 629 616 630 for (i = 0; i < Npts; i++) { -
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/UpdateChips.c
r37631 r37649 274 274 continue; 275 275 } 276 if (Nraw <= IMFIT_TOO_FEW) { 277 threadinfo->Nskip ++; 278 threadinfo->mode[i] = 0; 279 free (raw); 280 continue; 281 } 276 282 277 283 /* convert average coordinates to ref entries */ -
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/bcatalog.c
r37623 r37649 63 63 int Nicrf = 0; 64 64 65 FILE *f = fopen ("test.icrf.dat", "a"); 65 char filename[1024]; 66 snprintf (filename, 1024, "%s/test.icrf.dat", CATDIR); 67 FILE *f = fopen (filename, "a"); 66 68 67 69 /* exclude stars not in range or with too few measurements */ -
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/load_catalogs.c
r37604 r37649 19 19 20 20 ALLOCATE (catalog, Catalog, skylist[0].Nregions); 21 22 if (subselect && USE_GALAXY_MODEL) { 23 char filename[1024]; 24 snprintf (filename, 1024, "%s/test.icrf.dat", CATDIR); 25 unlink (filename); 26 } 21 27 22 28 // load data from each region file, only use bright stars -
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/relastro_images.c
r37631 r37649 74 74 // XXX is is really possible that I do not update the measure.R,D on each loop?? 75 75 UpdateObjects (catalog, Ncatalog, (i > 0)); // calculate <R>,<D>; if (i > 0), apply Galaxy Motion Model (if desired) 76 FrameCorrection (catalog, Ncatalog); 77 // if (i > 2) FrameCorrection (catalog, Ncatalog); 76 if ((i > 1) || !USE_GALAXY_MODEL) { 77 // if GALAXY_MODEL is selected, we want to delay the frame correction until we have 78 // applied the galaxy model a couple of times. 79 FrameCorrection (catalog, Ncatalog); 80 } 78 81 UpdateChips (catalog, Ncatalog); // measure.X,Y -> R,D, fit image.coords 79 82 MARKTIME("update chips: %f sec\n", dtime);
Note:
See TracChangeset
for help on using the changeset viewer.
