Changeset 35594
- Timestamp:
- May 24, 2013, 1:37:30 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509
- Files:
-
- 74 edited
- 13 copied
-
. (modified) (1 prop)
-
Nebulous (modified) (1 prop)
-
Nebulous-Server (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
Ohana/src/addstar/include/addstar.h (modified) (1 diff)
-
Ohana/src/addstar/src/ImageIndex.c (modified) (1 diff)
-
Ohana/src/addstar/src/UpdateImageIDs.c (modified) (2 diffs)
-
Ohana/src/addstar/src/args.c (modified) (2 diffs)
-
Ohana/src/dvomerge (modified) (1 prop)
-
Ohana/src/dvomerge/include/dvomerge.h (modified) (1 diff)
-
Ohana/src/dvomerge/src/args.c (modified) (2 diffs)
-
Ohana/src/dvomerge/src/dvomerge.c (modified) (2 diffs)
-
Ohana/src/dvomerge/src/dvomergeFromList.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvomergeUpdate.c (modified) (2 diffs)
-
Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c (modified) (2 diffs)
-
Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/help.c (modified) (2 diffs)
-
Ohana/src/dvopsps/include/dvopsps.h (modified) (1 diff)
-
Ohana/src/dvopsps/src/DetectionOps.c (modified) (8 diffs)
-
Ohana/src/dvopsps/src/insert_detections_dvopsps_catalog.c (modified) (4 diffs)
-
Ohana/src/libfits/include/gfitsio.h (modified) (1 diff)
-
Ohana/src/libfits/table/F_define_column.c (modified) (1 diff)
-
Ohana/src/libohana/src (modified) (1 prop)
-
Ohana/src/opihi (modified) (1 prop)
-
Ohana/src/opihi/cmd.astro (modified) (1 prop)
-
Ohana/src/opihi/cmd.data (modified) (1 prop)
-
Ohana/src/relastro/src (modified) (1 prop)
-
dbconfig/cam.md (modified) (1 prop)
-
dbconfig/changes.txt (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippScripts/scripts/chip_imfile.pl (modified) (1 prop)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
-
ippScripts/scripts/warp_skycell.pl (modified) (1 prop)
-
ippTasks (modified) (1 prop)
-
ippToPsps (modified) (1 prop)
-
ippTools/share (modified) (1 prop)
-
ippTools/share/Makefile.am (modified) (1 diff)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/chiptool_find_rawexp.sql (modified) (1 diff)
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (1 prop)
-
ippTools/share/laptool_definerunbyrelease.sql (copied) (copied from trunk/ippTools/share/laptool_definerunbyrelease.sql )
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 prop)
-
ippTools/share/warptool_towarped.sql (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/camtool.c (modified) (1 prop)
-
ippTools/src/camtoolConfig.c (modified) (1 prop)
-
ippTools/src/chiptool.c (modified) (2 diffs)
-
ippTools/src/chiptoolConfig.c (modified) (1 diff)
-
ippTools/src/laptool.c (modified) (3 diffs)
-
ippTools/src/laptool.h (modified) (1 diff)
-
ippTools/src/laptoolConfig.c (modified) (2 diffs)
-
ippTools/src/magictool.c (modified) (1 prop)
-
ippconfig (modified) (1 prop)
-
ippconfig/gpc1/ppStack.config (modified) (1 diff)
-
ippconfig/gpc1/psphot.config (modified) (1 prop)
-
ippconfig/recipes/ppStack.config (modified) (1 diff)
-
ippconfig/recipes/ppSub.config (modified) (1 diff, 1 prop)
-
ippconfig/recipes/psphot.config (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (2 diffs, 1 prop)
-
ppImage/src (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/detrend/pmDark.c (modified) (3 diffs)
-
psModules/src/objects/models/pmModel_TRAIL.c (modified) (1 diff)
-
psconfig (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
-
pstamp/scripts (modified) (1 prop)
-
pstamp/scripts/pstamp_save_server_status.pl (modified) (2 diffs)
-
pstamp/test/maketestreq (modified) (3 diffs)
-
psvideophot (modified) (1 prop)
-
pswarp/src/pswarpUpdateStatistics.c (modified) (1 diff)
-
tools/dvodb_calib (copied) (copied from trunk/tools/dvodb_calib )
-
tools/dvodb_calib/README (copied) (copied from trunk/tools/dvodb_calib/README )
-
tools/dvodb_calib/gene.run.relastro (copied) (copied from trunk/tools/dvodb_calib/gene.run.relastro )
-
tools/dvodb_calib/gene.run.relastro.part1 (copied) (copied from trunk/tools/dvodb_calib/gene.run.relastro.part1 )
-
tools/dvodb_calib/gene.run.relastro.part1. (copied) (copied from trunk/tools/dvodb_calib/gene.run.relastro.part1. )
-
tools/dvodb_calib/gene.run.relastro.part2 (copied) (copied from trunk/tools/dvodb_calib/gene.run.relastro.part2 )
-
tools/dvodb_calib/gene.run.relphot (copied) (copied from trunk/tools/dvodb_calib/gene.run.relphot )
-
tools/dvodb_calib/run.addstar.resort (copied) (copied from trunk/tools/dvodb_calib/run.addstar.resort )
-
tools/dvodb_calib/run.relastro.part1 (copied) (copied from trunk/tools/dvodb_calib/run.relastro.part1 )
-
tools/dvodb_calib/run.relastro.part2 (copied) (copied from trunk/tools/dvodb_calib/run.relastro.part2 )
-
tools/dvodb_calib/run.relphot (copied) (copied from trunk/tools/dvodb_calib/run.relphot )
-
tools/dvodb_calib/run.setphot (copied) (copied from trunk/tools/dvodb_calib/run.setphot )
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509
- Property svn:mergeinfo changed
/trunk (added) merged: 35566-35570,35572-35574,35576-35581,35583-35586,35590
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/Nebulous
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Nebulous-Server
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Ohana
- Property svn:mergeinfo changed
/trunk/Ohana (added) merged: 35578-35579,35590
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/Ohana/src/addstar/include/addstar.h
r35263 r35594 119 119 int ACCEPT_TIME; // accept time stamp (or 0) 120 120 int NO_STARS; // ignore the stars 121 int NO_DUPLICATE_IMAGES; // allow / skip duplicate images 122 int IMAGE_ID_OVERRIDE; // allow / skip duplicate images 121 123 int TEXTMODE; // force input file to be loaded as RAW 122 124 int SUBPIX; // apply a subpix correction -
branches/eam_branches/ipp-20130509/Ohana/src/addstar/src/ImageIndex.c
r35263 r35594 159 159 if (!index) { 160 160 fprintf (stderr, "image index file is not found, cannot check for image duplicates\n"); 161 exit ( 2);161 exit (1); 162 162 } 163 163 -
branches/eam_branches/ipp-20130509/Ohana/src/addstar/src/UpdateImageIDs.c
r35263 r35594 35 35 } 36 36 37 // TEST IMAGE_ID OVER-RIDE: 38 if (IMAGE_ID_OVERRIDE) { 39 imageID = IMAGE_ID_OVERRIDE; 40 } 41 37 42 // XXX should the first image ID be 1, not 0? 38 43 if (imageID == 0) imageID = 1; … … 54 59 // set and update the imageID sequence 55 60 // the file holding the index is created above if this is an empty db 56 CheckDuplicateImageIDs (images, Nimages); 61 if (NO_DUPLICATE_IMAGES) { 62 CheckDuplicateImageIDs (images, Nimages); 63 } 57 64 58 65 imageID += Nimages; -
branches/eam_branches/ipp-20130509/Ohana/src/addstar/src/args.c
r34405 r35594 308 308 if ((N = get_argument (argc, argv, "-no-stars"))) { 309 309 NO_STARS = TRUE; 310 remove_argument (N, &argc, argv); 311 } 312 /* skip the stars */ 313 NO_DUPLICATE_IMAGES = TRUE; 314 if ((N = get_argument (argc, argv, "-dup-images"))) { 315 NO_DUPLICATE_IMAGES = FALSE; 316 remove_argument (N, &argc, argv); 317 } 318 /* skip the stars */ 319 IMAGE_ID_OVERRIDE = 0; 320 if ((N = get_argument (argc, argv, "-image-id-override"))) { 321 remove_argument (N, &argc, argv); 322 IMAGE_ID_OVERRIDE = atoi(argv[N]); 310 323 remove_argument (N, &argc, argv); 311 324 } … … 438 451 fprintf (stderr, " -use-name : use the given name instead of the filename as the filename\n"); 439 452 fprintf (stderr, " -no-stars : skip the stars\n"); 453 fprintf (stderr, " -dup-images : skip the test for duplicate image IDs (test only!)\n"); 440 454 fprintf (stderr, " -force : force read of database with inconsistent info\n"); 441 455 fprintf (stderr, " -threads (N) : use N threads for resort option\n"); -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge
- Property svn:mergeinfo set to
-
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/include/dvomerge.h
r35416 r35594 25 25 26 26 int VERBOSE; 27 int VERIFY; 28 int IMAGES_ONLY; 27 29 char CATDIR[256]; 28 30 char GSCFILE[256]; -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/args.c
r35416 r35594 12 12 remove_argument (N, argc, argv); 13 13 } 14 15 /* verify merge status of output tables, but do not modify */ 16 VERIFY = FALSE; 17 if ((N = get_argument (*argc, argv, "-verify"))) { 18 VERIFY = TRUE; 19 remove_argument (N, argc, argv); 20 } 21 if ((N = get_argument (*argc, argv, "-check-only"))) { 22 VERIFY = TRUE; 23 remove_argument (N, argc, argv); 24 } 25 26 /* use a different photcode file to define mean values */ 14 27 if ((N = get_argument (*argc, argv, "-photcode-file"))) { 15 28 remove_argument (N, argc, argv); … … 113 126 } 114 127 128 /* verify merge status of output tables, but do not modify */ 129 VERIFY = FALSE; 130 if ((N = get_argument (*argc, argv, "-verify"))) { 131 VERIFY = TRUE; 132 remove_argument (N, argc, argv); 133 } 134 if ((N = get_argument (*argc, argv, "-check-only"))) { 135 VERIFY = TRUE; 136 remove_argument (N, argc, argv); 137 } 138 115 139 /* replace measurement, don't duplicate */ 116 140 REPLACE_BY_PHOTCODE = FALSE; -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomerge.c
r29938 r35594 10 10 if (argc == 6) { 11 11 if (!strcasecmp (argv[2], "and")) { 12 if (VERIFY) { 13 fprintf (stderr, "WARNING / ERROR : dvomerge (input1) and (input2) into (output) : VERIFY mode not implemented\n"); 14 exit (3); 15 } 12 16 dvomergeCreate (argc, argv); 13 17 } else { 18 if (VERIFY) { 19 fprintf (stderr, "WARNING / ERROR : dvomerge (input) into (output) from (list) : VERIFY mode not implemented\n"); 20 exit (3); 21 } 14 22 dvomergeFromList (argc, argv); 15 23 } … … 26 34 } 27 35 28 /* we have two possiblemodes of operation:36 /* we have two major modes of operation: 29 37 30 Create : dvomerge (in1) and (in2) to (out) -- create a new db from two input dbs 31 Update : dvomerge (in) into (out) -- merge a new db into an existing db 32 Continue : dvomerge (in) into (out) continue -- merge a new db into an existing db 38 Create : dvomerge (in1) and (in2) to (out) -- create a new db from two input dbs 39 Update : dvomerge (in) into (out) -- merge a new db into an existing db 33 40 41 we also have varients on Update: 42 Continue : dvomerge (in) into (out) continue -- merge only unmerged tables into the existing db 43 From List : dvomerge (in) into (out) from (list) -- merge only specified tables into the existing db 44 45 neither of the 2 above modes update the image table 34 46 */ -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeFromList.c
r35454 r35594 108 108 dmhObjectStats *inStats = dmhObjectStatsRead (inputfile); 109 109 110 // XXX : we are not checking for already-merged entries 111 110 112 LoadCatalog (&incatalog, NULL, inputfile, "r", NsecfiltInput); 111 113 -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate.c
r33963 r35594 23 23 CONTINUE = TRUE; 24 24 } 25 if (VERIFY) CONTINUE = TRUE; 25 26 26 27 input = argv[1]; … … 78 79 } else { 79 80 dvomergeImagesUpdate (&IDmap, input, output); 81 if (IMAGES_ONLY) exit (0); 80 82 } 81 83 -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r34405 r35594 76 76 } 77 77 if (!missed) { 78 if (VERBOSE ) fprintf (stderr, "skipping %s, empty oralready merged\n", inlist[0].filename[i]);78 if (VERBOSE || VERIFY) fprintf (stderr, "skipping %s, already merged\n", inlist[0].filename[i]); 79 79 OutputStatusFree (outstat, outlist->Nregions); 80 80 dmhObjectStatsFree (inStats); 81 81 SkyListFree (outlist); 82 continue; 83 } 84 if (VERIFY) { 85 fprintf (stderr, "%s NOT merged\n", inlist[0].filename[i]); 82 86 continue; 83 87 } … … 193 197 char tmpline[DVO_MAX_PATH]; 194 198 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 199 if (VERIFY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify", command); strcpy (command, tmpline); } 195 200 if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); } 196 201 -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c
r33657 r35594 129 129 output = argv[3]; 130 130 131 fprintf (stderr, "WARNING / ERROR : multi-threaded dvomerge does not handle merge tracking yet\n"); 132 exit (2); 133 131 134 if (ALTERNATE_PHOTCODE_FILE) { 132 135 fprintf (stderr, "cannot specify photcodes when merging into an existing catdir\n"); -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/help.c
r35416 r35594 59 59 fprintf (stderr, " optional flags:\n"); 60 60 fprintf (stderr, " -v : verbose mode\n"); 61 fprintf (stderr, " -verify : verify merge status of output tables, but do not modify\n"); 62 fprintf (stderr, " -check-only : verify merge status of output tables, but do not modify [same as -verify]\n"); 61 63 fprintf (stderr, " -help : this list\n"); 62 64 fprintf (stderr, " -h : this list\n\n"); … … 81 83 fprintf (stderr, " optional flags:\n"); 82 84 fprintf (stderr, " -v : verbose mode\n"); 85 fprintf (stderr, " -verify : verify merge status of output tables, but do not modify\n"); 86 fprintf (stderr, " -check-only : verify merge status of output tables, but do not modify [same as -verify]\n"); 83 87 fprintf (stderr, " -help : this list\n"); 84 88 fprintf (stderr, " -h : this list\n\n"); -
branches/eam_branches/ipp-20130509/Ohana/src/dvopsps/include/dvopsps.h
r35207 r35594 13 13 uint64_t ippObjID; 14 14 uint64_t objID; 15 int photcode; 15 16 unsigned int flags; 16 17 float zp; -
branches/eam_branches/ipp-20130509/Ohana/src/dvopsps/src/DetectionOps.c
r35098 r35594 54 54 GET_COLUMN(ippObjID , "ippObjID", int64_t); 55 55 GET_COLUMN(objID , "objID", int64_t); 56 GET_COLUMN(photcode , "photcode", int); 56 57 GET_COLUMN(flags , "flags", int); 57 58 GET_COLUMN(zp , "zp", float); … … 73 74 detections[i].ippObjID = ippObjID[i]; 74 75 detections[i].objID = objID[i]; 76 detections[i].photcode = photcode[i]; 75 77 detections[i].flags = flags[i]; 76 78 detections[i].zp = zp[i]; … … 90 92 free (ippObjID ); 91 93 free (objID ); 94 free (photcode ); 92 95 free (flags ); 93 96 free (zp ); … … 154 157 // gfits_define_bintable_column (&theader, "K", "ippObjID", NULL, NULL, 1.0, BZERO_INT64); 155 158 // gfits_define_bintable_column (&theader, "K", "objID", NULL, NULL, 1.0, BZERO_INT64); 159 gfits_define_bintable_column (&theader, "J", "photcode", NULL, NULL, 1.0, 0.0); 156 160 gfits_define_bintable_column (&theader, "J", "flags", NULL, NULL, 1.0, BZERO_INT32); 157 161 gfits_define_bintable_column (&theader, "E", "zp", NULL, NULL, 1.0, 0.0); … … 173 177 uint64_t *ippObjID ; ALLOCATE (ippObjID , uint64_t, Ndetections); 174 178 uint64_t *objID ; ALLOCATE (objID , uint64_t, Ndetections); 179 int *photcode ; ALLOCATE (photcode , int, Ndetections); 175 180 uint32_t *flags ; ALLOCATE (flags , uint32_t, Ndetections); 176 181 float *zp ; ALLOCATE (zp , float, Ndetections); … … 190 195 ippObjID[i] = detections[i].ippObjID ; 191 196 objID[i] = detections[i].objID ; 197 photcode[i] = detections[i].photcode ; 192 198 flags[i] = detections[i].flags ; 193 199 zp[i] = detections[i].zp ; … … 207 213 gfits_set_bintable_column (&theader, &ftable, "ippObjID", ippObjID , Ndetections); 208 214 gfits_set_bintable_column (&theader, &ftable, "objID", objID , Ndetections); 215 gfits_set_bintable_column (&theader, &ftable, "photcode", photcode , Ndetections); 209 216 gfits_set_bintable_column (&theader, &ftable, "flags", flags , Ndetections); 210 217 gfits_set_bintable_column (&theader, &ftable, "zp", zp , Ndetections); … … 222 229 free (ippObjID ); 223 230 free (objID ); 231 free (photcode ); 224 232 free (flags ); 225 233 free (zp ); -
branches/eam_branches/ipp-20130509/Ohana/src/dvopsps/src/insert_detections_dvopsps_catalog.c
r35416 r35594 49 49 // detections[Ndetections]. ((uint64_t)average->catID << 32) + (uint64_t)average->objID; // ippObjID 50 50 detections[Ndetections].objID = average->extID; // objID 51 detections[Ndetections].photcode = measure->photcode; // photcode 51 52 detections[Ndetections].flags = measure->dbFlags; // flags 52 53 detections[Ndetections].zp = code->C * 0.001 + code->K * (measure->airmass - 1) - measure->Mcal; // zp … … 168 169 } 169 170 170 PrintIOBuffer (buffer, "INSERT INTO dvoDetectionFull (imageID, ippDetectID, detectID, ippObjID, objID, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES \n");171 PrintIOBuffer (buffer, "INSERT INTO dvoDetectionFull (imageID, ippDetectID, detectID, ippObjID, objID, photcode, flags, zp, zpErr, airMass, expTime, ra, dec_, raErr, decErr) VALUES \n"); 171 172 172 173 return TRUE; … … 179 180 int insert_detections_mysql_value (IOBuffer *buffer, Average *average, Measure *measure) { 180 181 181 // XXX I am changing the def of ippObjID if I use the code below182 182 PhotCode *code = GetPhotcodebyCode(measure->photcode); 183 // PrintIOBuffer (buffer, " (%d, %u, %lu, %lu, %lu, %u, %f, %f, %f, %f, %lf, %lf, %f, %f),\n",184 // measure->imageID, // imageID185 // measure->detID, // ippDetectID186 // measure->extID, // detectID187 // ((uint64_t)average->catID * 1000000000) + (uint64_t)average->objID, // ippObjID188 // // NOTE: this is better, but the above is the current ippToPsps value189 // // ((uint64_t)average->catID << 32) + (uint64_t)average->objID, // ippObjID190 // average->extID, // objID191 // measure->dbFlags, // flags192 // code->C * 0.001 + code->K * (measure->airmass - 1) - measure->Mcal, // zp193 // measure->dMcal, // zpErr194 // measure->airmass,195 // pow(10.0, 0.4 * measure->dt), // expTime196 // average->R - measure->dR / 3600., // ra197 // average->D - measure->dR / 3600., // dec198 // measure->dXccd * 0.01 * fabs(measure->pltscale), // estimate of raErr199 // measure->dYccd * 0.01 * fabs(measure->pltscale) // estimate of decErr200 // );201 202 183 PrintIOBuffer (buffer, "(%d, ", measure->imageID); // imageID 203 184 PrintIOBuffer (buffer, "%u, ", measure->detID); // ippDetectID … … 207 188 // ((uint64_t)average->catID << 32) + (uint64_t)average->objID, // ippObjID 208 189 PrintIOBuffer (buffer, "%lu, ", average->extID); // objID 190 PrintIOBuffer (buffer, "%d, ", measure->photcode); // photcode 209 191 PrintIOBuffer (buffer, "%u, ", measure->dbFlags); // flags 210 192 -
branches/eam_branches/ipp-20130509/Ohana/src/libfits/include/gfitsio.h
r35162 r35594 26 26 # define FT_LINE_LENGTH 80 /* FITS header line length */ 27 27 # define FT_RECORD_SIZE 2880 /* FITS block size */ 28 29 # define FT_BZERO_INT16 1.0*0x8000 30 # define FT_BZERO_INT32 1.0*0x80000000 28 31 29 32 /* this structure defines the buffer which contains a header -
branches/eam_branches/ipp-20130509/Ohana/src/libfits/table/F_define_column.c
r33648 r35594 1 1 # include <ohana.h> 2 2 # include <gfitsio.h> 3 4 # if (0) 5 /*** special version of this function to define unsigned int columns (special values for BZERO, BSCALE) ********************/ 6 int gfits_define_bintable_column_unsigned_int (Header *header, char *format, char *label, char *comment, char *unit, int inttype) { 7 8 assert (label); 9 assert (format); 10 11 off_t Naxis1; 12 int Nfields, Nbytes, Nval; 13 char type[16], field[16]; 14 15 if (!gfits_bintable_format (format, type, &Nval, &Nbytes)) return (FALSE); 16 17 Nfields = 0; 18 gfits_scan (header, "TFIELDS", "%d", 1, &Nfields); 19 gfits_scan (header, "NAXIS1", OFF_T_FMT, 1, &Naxis1); 20 Nfields ++; 21 Naxis1 += Nbytes*Nval; 22 23 sprintf (field, "TTYPE%d", Nfields); 24 gfits_modify (header, field, "%s", 1, label); 25 gfits_modify_alt (header, field, "%C", 1, comment); 26 sprintf (field, "TUNIT%d", Nfields); 27 gfits_modify (header, field, "%s", 1, unit); 28 sprintf (field, "TFORM%d", Nfields); 29 gfits_modify (header, field, "%s", 1, format); 30 31 // add scaling parameters unless they amount to a noop 32 if ((bscale != 1.0) || (bzero != 0.0)) { 33 sprintf (field, "TSCAL%d", Nfields); 34 gfits_modify (header, field, "%lf", 1, bscale); 35 sprintf (field, "TZERO%d", Nfields); 36 gfits_modify (header, field, "%lf", 1, bzero); 37 } 38 39 /* update TFIELDS & NAXIS1 */ 40 gfits_modify (header, "TFIELDS", "%d", 1, Nfields); 41 gfits_modify (header, "NAXIS1", OFF_T_FMT, 1, Naxis1); 42 header[0].Naxis[0] = Naxis1; 43 44 return (TRUE); 45 } 46 # endif 3 47 4 48 /***********************/ -
branches/eam_branches/ipp-20130509/Ohana/src/libohana/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Ohana/src/opihi
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Ohana/src/opihi/cmd.astro
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Ohana/src/opihi/cmd.data
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/Ohana/src/relastro/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/dbconfig/cam.md
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/dbconfig/changes.txt
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippMonitor
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/chip_imfile.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippScripts/scripts/warp_skycell.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTasks
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippToPsps
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/share
- Property svn:mergeinfo changed
/trunk/ippTools/share (added) merged: 35566,35572
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ippTools/share/Makefile.am
r35397 r35594 449 449 diffphottool_data.sql \ 450 450 laptool_definerun.sql \ 451 laptool_definerunbyrelease.sql \ 451 452 laptool_exposures.sql \ 452 453 laptool_inactiveexp.sql \ -
branches/eam_branches/ipp-20130509/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/share/chiptool_find_rawexp.sql
r30049 r35594 6 6 FROM rawExp 7 7 JOIN newExp using (exp_id) 8 LEFT JOIN chipRun USING (exp_id)8 LEFT JOIN chipRun ON chipRun.exp_id = rawExp.exp_id -- JOIN hook %s 9 9 WHERE 10 10 rawExp.fault = 0 -
branches/eam_branches/ipp-20130509/ippTools/share/chiptool_setimfiletoupdate.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/share/warptool_towarped.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 35566-35568,35572-35573
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ippTools/src/camtool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/src/camtoolConfig.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippTools/src/chiptool.c
r34766 r35594 269 269 270 270 PXOPT_LOOKUP_STR(workdir, config->args, "-set_workdir", true, false); 271 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false);271 PXOPT_LOOKUP_STR(label, config->args, "-set_label", true, false); 272 272 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 273 273 PXOPT_LOOKUP_STR(expgroup, config->args, "-set_expgroup", false, false); … … 298 298 psFree(where); 299 299 300 psString labelHook = NULL; 300 301 if (unique) { 301 psStringAppend(&query, "AND chip_id IS NULL"); 302 psStringAppend(&labelHook, "\nAND chipRun.label = '%s'", label); 303 psStringAppend(&query, " AND chip_id IS NULL"); 302 304 } 303 305 304 if (!p_psDBRunQuery (config->dbh, query)) {306 if (!p_psDBRunQueryF(config->dbh, query, labelHook ? labelHook : "")) { 305 307 psError(PS_ERR_UNKNOWN, false, "database error"); 306 308 psFree(query); -
branches/eam_branches/ipp-20130509/ippTools/src/chiptoolConfig.c
r34766 r35594 52 52 53 53 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_workdir", 0, "define workdir (required)", NULL); 54 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_label", 0, "define label ", NULL);54 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_label", 0, "define label (required)", NULL); 55 55 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_reduction", 0, "define reduction class", NULL); 56 56 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_expgroup", 0, "define exposure group", NULL); -
branches/eam_branches/ipp-20130509/ippTools/src/laptool.c
r35308 r35594 22 22 // Run level 23 23 static bool definerunMode(pxConfig *config); 24 static bool definerunbyreleaseMode(pxConfig *config); 24 25 static bool pendingrunMode(pxConfig *config); 25 26 static bool updaterunMode(pxConfig *config); 27 26 28 // Exposure level 27 29 static bool pendingexpMode(pxConfig *config); … … 64 66 65 67 MODECASE(LAPTOOL_MODE_DEFINERUN, definerunMode); 68 MODECASE(LAPTOOL_MODE_DEFINERUNBYRELEASE, definerunbyreleaseMode); 66 69 MODECASE(LAPTOOL_MODE_PENDINGRUN, pendingrunMode); 67 70 MODECASE(LAPTOOL_MODE_UPDATERUN, updaterunMode); … … 401 404 } 402 405 406 static bool definerunbyreleaseMode(pxConfig *config) 407 { 408 PS_ASSERT_PTR_NON_NULL(config, false); 409 410 PXOPT_LOOKUP_S64(seq_id, config->args, "-seq_id", true, false); 411 PXOPT_LOOKUP_STR(projection_cell, config->args, "-projection_cell", true, false); 412 PXOPT_LOOKUP_STR(tess_id, config->args, "-tess_id", true, false); 413 PXOPT_LOOKUP_STR(filter, config->args, "-filter", true, false); 414 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 415 PXOPT_LOOKUP_STR(dist_group, config->args, "-dist_group", false, false); 416 PXOPT_LOOKUP_S64(rel_id, config->args, "-rel_id", false, false); 417 PXOPT_LOOKUP_STR(rel_name, config->args, "-release_name", false, false); 418 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 419 420 // Validate config 421 if ((!rel_name)&&(!rel_id)) { 422 // Die here. 423 } 424 425 lapRunRow *run = lapRunRowAlloc(0, // lap_id 426 seq_id, 427 tess_id, 428 projection_cell, 429 filter, 430 "registered", // state 431 label, 432 dist_group, 433 NULL, // registered 434 0, // fault 435 INT64_MAX, // quick_sass_id 436 INT64_MAX // final_sass_id 437 ); 438 if (!run) { 439 psError(PS_ERR_UNKNOWN, false, "failed to alloc lapRun object"); 440 return(true); 441 } 442 443 if (!psDBTransaction(config->dbh)) { 444 psError(PS_ERR_UNKNOWN, false, "database error"); 445 return(false); 446 } 447 448 if (!lapRunInsertObject(config->dbh, run)) { 449 if (!psDBRollback(config->dbh)) { 450 psError(PS_ERR_UNKNOWN, false, "database error"); 451 } 452 psError(PS_ERR_UNKNOWN, false, "database error"); 453 psFree(run); 454 return(false); 455 } 456 457 if (!lapRunPrintObject(stdout, run, !simple)) { 458 if (!psDBRollback(config->dbh)) { 459 psError(PS_ERR_UNKNOWN, false, "database error"); 460 } 461 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 462 psFree(run); 463 return(false); 464 } 465 466 psS64 lap_id = psDBLastInsertID(config->dbh); 467 468 psString query = pxDataGet("laptool_definerunbyrelease.sql"); 469 if (!query) { 470 if (!psDBRollback(config->dbh)) { 471 psError(PS_ERR_UNKNOWN, false, "database error"); 472 } 473 psError(PXTOOLS_ERR_SYS, false, "failed to retrieve SQL statement"); 474 return(false); 475 } 476 477 // Add constraints 478 psMetadata *relWhere = psMetadataAlloc(); 479 PXOPT_COPY_STR(config->args, relWhere, "-filter", "rawExp.filter", "=="); 480 PXOPT_COPY_STR(config->args, relWhere, "-release_name", "ippRelease.release_name", "=="); 481 PXOPT_COPY_S64(config->args, relWhere, "-rel_id", "ippRelease.rel_id", "=="); 482 PXOPT_COPY_TIME(config->args, relWhere, "-dateobs_begin", "rawExp.dateobs", ">="); 483 PXOPT_COPY_TIME(config->args, relWhere, "-dateobs_end", "rawExp.dateobs", "<="); 484 PXOPT_COPY_RADEC(config->args, relWhere, "-ra_min", "rawExp.ra", ">="); 485 PXOPT_COPY_RADEC(config->args, relWhere, "-ra_max", "rawExp.ra", "<"); 486 PXOPT_COPY_RADEC(config->args, relWhere, "-decl_min", "rawExp.decl", ">="); 487 PXOPT_COPY_RADEC(config->args, relWhere, "-decl_max", "rawExp.decl", "<"); 488 489 psMetadata *lapWhere = psMetadataAlloc(); 490 PXOPT_COPY_S64(config->args, lapWhere, "-seq_id", "lapRun.seq_id", "=="); 491 PXOPT_COPY_STR(config->args, lapWhere, "-filter", "lapRun.filter", "=="); 492 493 psString relWhereClause = psDBGenerateWhereConditionSQL(relWhere,NULL); 494 psString lapWhereClause = psDBGenerateWhereConditionSQL(lapWhere,NULL); 495 496 if (relWhereClause) { 497 psStringSubstitute(&query,relWhereClause,"@RELWHERE@"); 498 } 499 if (lapWhereClause) { 500 psStringSubstitute(&query,lapWhereClause,"@LAPWHERE@"); 501 } 502 psFree(relWhere); 503 psFree(lapWhere); 504 505 // Fetch exposures 506 if (!p_psDBRunQuery(config->dbh, query)) { 507 if (!psDBRollback(config->dbh)) { 508 psError(PS_ERR_UNKNOWN, false, "database error"); 509 } 510 511 psError(PS_ERR_UNKNOWN, false, "database error"); 512 psFree(query); 513 return(false); 514 } 515 psFree(query); 516 517 psArray *output = p_psDBFetchResult(config->dbh); 518 if (!output) { 519 if (!psDBRollback(config->dbh)) { 520 psError(PS_ERR_UNKNOWN, false, "database error"); 521 } 522 523 psError(PS_ERR_UNKNOWN, false, "database error"); 524 return(false); 525 } 526 if (!psArrayLength(output)) { 527 if (!psDBRollback(config->dbh)) { 528 psError(PS_ERR_UNKNOWN, false, "database error"); 529 } 530 531 psTrace("laptool", PS_LOG_INFO, "no rows found"); 532 psFree(output); 533 return(true); 534 } 535 536 // Insert the exposure data 537 for (long i = 0; i < output->n; i++) { 538 psMetadata *row = output->data[i]; // Row from select 539 // Add default values from this run: 540 psMetadataAddS64(row, PS_LIST_TAIL, "lap_id", 0, "", lap_id); 541 psMetadataAddS64(row, PS_LIST_TAIL, "pair_id", 0, "", INT64_MAX); 542 psMetadataAddStr(row, PS_LIST_TAIL, "data_state", 0, "", "new"); 543 lapExpRow *lapExp = lapExpObjectFromMetadata(row); 544 lapExp->lap_id = lap_id; 545 546 if (!lapExpInsertObject(config->dbh,lapExp)) { 547 if (!lapExpPrintObject(stdout, lapExp, !simple)) { 548 if (!psDBRollback(config->dbh)) { 549 psError(PS_ERR_UNKNOWN, false, "database error"); 550 } 551 psError(PS_ERR_UNKNOWN, false, "failed to print object"); 552 psFree(run); 553 return false; 554 } 555 556 if (!psDBRollback(config->dbh)) { 557 psError(PS_ERR_UNKNOWN, false, "database error"); 558 } 559 psError(PS_ERR_UNKNOWN, false, "database error"); 560 psFree(output); 561 psFree(lapExp); 562 return(false); 563 } 564 } 565 566 // point of no return 567 if (!psDBCommit(config->dbh)) { 568 psError(PS_ERR_UNKNOWN, false, "database error"); 569 return false; 570 } 571 572 573 psFree(output); 574 return(true); 575 } 576 577 578 579 580 403 581 static bool pendingrunMode(pxConfig *config) 404 582 { -
branches/eam_branches/ipp-20130509/ippTools/src/laptool.h
r35308 r35594 13 13 LAPTOOL_MODE_LISTSEQUENCE, 14 14 LAPTOOL_MODE_DEFINERUN, 15 LAPTOOL_MODE_DEFINERUNBYRELEASE, 15 16 LAPTOOL_MODE_PENDINGRUN, 16 17 LAPTOOL_MODE_UPDATERUN, -
branches/eam_branches/ipp-20130509/ippTools/src/laptoolConfig.c
r35308 r35594 57 57 ADD_OPT(Str, definerunArgs, "-label", "define the label used", NULL); 58 58 ADD_OPT(Str, definerunArgs, "-dist_group", "define the distribution group for this data", NULL); 59 59 60 60 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-obsmode", PS_META_DUPLICATE_OK, "search by obsmode", NULL); 61 61 ADD_OPT(Bool,definerunArgs, "-all_obsmode", "use all science obsmodes", false); 62 62 63 63 ADD_OPT(Bool,definerunArgs, "-simple", "use the simple output format", false); 64 65 // -definerunbyrelease 66 psMetadata *definerunbyreleaseArgs = psMetadataAlloc(); 67 ADD_OPT(S64, definerunbyreleaseArgs, "-seq_id", "define the LAP sequence for this run (required)", 0); 68 ADD_OPT(Str, definerunbyreleaseArgs, "-projection_cell", "define the projection cell for this run (required)", NULL); 69 ADD_OPT(Str, definerunbyreleaseArgs, "-tess_id", "define the tessellation used (required)", NULL); 70 ADD_OPT(Str, definerunbyreleaseArgs, "-filter", "define the filter used (required)", NULL); 71 ADD_OPT(Str, definerunbyreleaseArgs, "-label", "define the label used", NULL); 72 ADD_OPT(Str, definerunbyreleaseArgs, "-dist_group", "define the distribution group for this data", NULL); 73 ADD_OPT(S64, definerunbyreleaseArgs, "-rel_id", "define the release to copy", 0); 74 ADD_OPT(Str, definerunbyreleaseArgs, "-release_name", "define the release to copy", NULL); 75 76 ADD_OPT(Bool, definerunbyreleaseArgs, "-simple", "use the simple output format", false); 77 psMetadataAddTime(definerunbyreleaseArgs, PS_LIST_TAIL, "-dateobs_begin", 0, "search for exposures by time (>=)", NULL); 78 psMetadataAddTime(definerunbyreleaseArgs, PS_LIST_TAIL, "-dateobs_end", 0, "search for exposures by time (<=)", NULL); 79 psMetadataAddF64(definerunbyreleaseArgs, PS_LIST_TAIL, "-ra_min", 0, "search by min RA (degrees) ", NAN); 80 psMetadataAddF64(definerunbyreleaseArgs, PS_LIST_TAIL, "-ra_max", 0, "search by max RA (degrees) ", NAN); 81 psMetadataAddF64(definerunbyreleaseArgs, PS_LIST_TAIL, "-decl_min", 0, "search by min DEC (degrees)", NAN); 82 psMetadataAddF64(definerunbyreleaseArgs, PS_LIST_TAIL, "-decl_max", 0, "search by max DEC (degrees)", NAN); 64 83 65 84 // -pendingrun … … 204 223 PXOPT_ADD_MODE("-listsequence", "", LAPTOOL_MODE_LISTSEQUENCE, listsequenceArgs); 205 224 PXOPT_ADD_MODE("-definerun", "", LAPTOOL_MODE_DEFINERUN, definerunArgs); 225 PXOPT_ADD_MODE("-definerunbyrelease", "", LAPTOOL_MODE_DEFINERUNBYRELEASE, definerunbyreleaseArgs); 206 226 PXOPT_ADD_MODE("-pendingrun", "", LAPTOOL_MODE_PENDINGRUN, pendingrunArgs); 207 227 PXOPT_ADD_MODE("-listrun", "", LAPTOOL_MODE_PENDINGRUN, listrunArgs); -
branches/eam_branches/ipp-20130509/ippTools/src/magictool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig (added) merged: 35580-35581
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ippconfig/gpc1/ppStack.config
r35492 r35594 81 81 END 82 82 83 STACK_ALLDEEP METADATA # N>>20 inputs, typically MD fields, no cuts 83 84 STACK_MD_REF METADATA ## revised config for MD refstacks vs PS1_REFERENCE above after ppStack mods 5/03/13 84 85 OUTPUT.NOCOMP BOOL TRUE 85 86 OUTPUT.LOGFLUX BOOL FALSE 86 87 OUTPUT.REPLICATE BOOL TRUE 88 STACK.TYPE STR DEEP_STACK ## needed? 89 PSF.INPUT.CLIP.SIMPLE BOOL True 90 PSF.INPUT.MAX F32 6.0 # never really want >6 pixels in refstack 91 PSF.INPUT.CLIP.NSIGMA F32 1.0 # sample typically on rising side of distribution (set even smaller?) 92 PSF.INPUT.THRESH F32 NAN 93 PSF.INPUT.ASYMMETRY F32 NAN 94 MATCH.REJ F32 4.0 # need ot tune? 95 SAFE BOOL FALSE 96 END 97 98 STACK_MD_DEEP METADATA ## revised config for MD deepstack above after ppStack mods 5/03/13 99 OUTPUT.NOCOMP BOOL TRUE 100 OUTPUT.LOGFLUX BOOL FALSE 101 OUTPUT.REPLICATE BOOL TRUE 102 STACK.TYPE STR DEEP_STACK 103 PSF.INPUT.CLIP.SIMPLE BOOL True 104 PSF.INPUT.MAX F32 10.0 105 PSF.INPUT.CLIP.NSIGMA F32 100.0 106 PSF.INPUT.THRESH F32 NAN 107 PSF.INPUT.ASYMMETRY F32 NAN 108 MATCH.REJ F32 4.0 # need ot tune? 109 SAFE BOOL FALSE 110 END 111 112 STACK_ALLDEEP METADATA # no cuts, everything in changes after ppStack mods 5/03/13 113 OUTPUT.NOCOMP BOOL TRUE 114 OUTPUT.LOGFLUX BOOL FALSE 115 OUTPUT.REPLICATE BOOL TRUE 116 STACK.TYPE STR DEEP_STACK 117 PSF.INPUT.CLIP.SIMPLE BOOL True 118 PSF.INPUT.MAX F32 100.0 119 PSF.INPUT.CLIP.NSIGMA F32 100.0 120 PSF.INPUT.THRESH F32 NAN 121 PSF.INPUT.ASYMMETRY F32 NAN 122 MATCH.REJ F32 4.0 # need ot tune? 123 SAFE BOOL FALSE 87 124 END 88 125 -
branches/eam_branches/ipp-20130509/ippconfig/gpc1/psphot.config
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippconfig/recipes/ppStack.config
r35529 r35594 164 164 END 165 165 166 STACK_MD_REF METADATA 167 END 168 169 STACK_MD_DEEP METADATA 170 END 171 166 172 STACK_ALLDEEP METADATA 167 173 END 174 175 176 168 177 169 178 TEST1 METADATA -
branches/eam_branches/ipp-20130509/ippconfig/recipes/ppSub.config
- Property svn:mergeinfo changed
/trunk/ippconfig/recipes/ppSub.config merged: 35581
r35562 r35594 108 108 END 109 109 110 # test setup for nodual case 111 DIFF_NODUAL METADATA 112 DUAL BOOL FALSE # Dual convolution? 113 INVERSE BOOL TRUE # Generate inverse subtraction? 114 PHOTOMETRY BOOL TRUE # Perform photometry? 115 CONVOLVE.TARGET STR SINGLE_AUTO 116 117 @ISIS.WIDTHS F32 1.5 3.0 6.0 # Gaussian kernel FWHM values 118 @ISIS.ORDERS S32 6 4 2 # Polynomial orders for ISIS kernels 119 120 SCALE.REF F32 5.0 # FWHM reference for kernel parameter scaling 121 KERNEL.SIZE S32 20 # Kernel half-size (pixels) 122 STAMP.FOOTPRINT S32 20 # Size of stamps (pixels) 123 END 124 110 125 # Difference of two warps 111 126 WARPWARP METADATA - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ippconfig/recipes/psphot.config
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed
/trunk/ippconfig/recipes/reductionClasses.mdc merged: 35580-35581
r35562 r35594 299 299 END 300 300 301 # sweetspot no dual test case 302 SWEETSPOT_NODUAL METADATA 303 DIFF_PPSUB STR DIFF_NODUAL 304 DIFF_PSPHOT STR SSTF_DIFF 305 JPEG_BIN1 STR PPIMAGE_J1 306 JPEG_BIN2 STR PPIMAGE_J2 307 END 301 308 302 309 CONSTANT_WEIGHTPHOT METADATA … … 544 551 END 545 552 553 ## MD refstack 554 MD_REF_STACK METADATA 555 STACK_PPSTACK STR STACK_MD_REF 556 STACK_PPSUB STR STACK 557 STACK_PSPHOT STR STACK 558 STACKPHOT_PSPHOT STR STACKPHOT 559 STATICSKY_CALIBRATION STR STATICSKY_DEEPCAL 560 END 561 562 ## MD deepstack 563 MD_DEEP_STACK METADATA 564 STACK_PPSTACK STR STACK_MD_DEEP 565 STACK_PPSUB STR STACK 566 STACK_PSPHOT STR STACK 567 STACKPHOT_PSPHOT STR STACKPHOT 568 STATICSKY_CALIBRATION STR STATICSKY_DEEPCAL 569 END 546 570 547 571 # quick stacks - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/ppImage/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/psModules
- Property svn:mergeinfo changed
/trunk/psModules (added) merged: 35577,35583,35586
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/psModules/src/detrend/pmDark.c
r34800 r35594 383 383 } 384 384 values_set->data[i] = values; 385 } 386 385 psFree(orders); 386 } 387 387 388 // retrieve the norm vector, if supplied 388 389 psVector *norm = psMetadataLookupPtr(&mdok, output->analysis, "DARK.NORM"); … … 433 434 } 434 435 pmReadout *readout = inputs->data[r]; // Input readout 436 if ((!readout)||(!readout->image)) { 437 mask->data.PS_TYPE_VECTOR_MASK_DATA[r] = 0xff; 438 continue; 439 } 435 440 int yIn = i - readout->row0; // y position on input readout 436 441 int xIn = j - readout->col0; // x position on input readout … … 504 509 psFree(mask); 505 510 511 for (int i = 0; i < max_orders->n; i++) { 512 psFree(poly_set->data[i]); 513 psArray *values = values_set->data[i]; 514 for (int j = 0; j < values->n; j++) { 515 psFree(values->data[j]); 516 } 517 psFree(values_set->data[i]); 518 } 519 psFree(values_set); 520 psFree(poly_set); 521 psFree(logL); 522 506 523 return true; 507 524 } -
branches/eam_branches/ipp-20130509/psModules/src/objects/models/pmModel_TRAIL.c
r35560 r35594 169 169 dPAR[PM_PAR_SIGMA] = 0; // we don't actually allow this to vary, so we do not need to calculate it 170 170 171 for (int i = 0; i < 7; i++) {172 if (isnan(dPAR[i])) {173 fprintf (stderr, "*");174 }175 }176 } 177 if (isnan(f)) {178 fprintf (stderr, "!");179 }171 // for (int i = 0; i < 7; i++) { 172 // if (isnan(dPAR[i])) { 173 // fprintf (stderr, "*"); 174 // } 175 // } 176 } 177 // if (isnan(f)) { 178 // fprintf (stderr, "!"); 179 // } 180 180 return(f); 181 181 } -
branches/eam_branches/ipp-20130509/psconfig
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/psphot
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/psphot/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/pstamp/scripts
- Property svn:mergeinfo changed
/trunk/pstamp/scripts (added) merged: 35569-35570
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/pstamp/scripts/pstamp_save_server_status.pl
r30469 r35594 12 12 use Pod::Usage qw( pod2usage ); 13 13 14 # XXX: We should get this from site.config, but that would about double15 # the execution time for this script.16 my $rundir = "/data/ippc17.0/pstamp";17 18 my $status_file = "$rundir/web/status.html";19 20 14 my $updatelink; 21 15 my $verbose; 22 16 my $save_temps; 17 my $pstamp_workdir; 23 18 24 19 GetOptions( 25 ' rundir=s' => \$rundir,20 'workdir=s' => \$pstamp_workdir, 26 21 'update-link' => \$updatelink, 27 22 'verbose' => \$verbose, … … 37 32 } 38 33 34 if (!$pstamp_workdir) { 35 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 36 $pstamp_workdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR'); 37 } 38 39 if (!$pstamp_workdir) { 40 warn("Failed to find PSTAMP_WORKDIR in the config\n"); 41 exit($PS_EXIT_CONFIG_ERROR); 42 } 43 my $status_file = "$pstamp_workdir/server_status/status.html"; 44 39 45 my ($sec, $min, $hour, $mday, $month, $year) = gmtime; 40 46 $year += 1900; 41 47 $month += 1; 42 48 43 my $dir = sprintf "$ rundir/work/server_status/%4d/%02d/%02d", $year, $month, $mday;49 my $dir = sprintf "$pstamp_workdir/server_status/%4d/%02d/%02d", $year, $month, $mday; 44 50 45 51 if (!-e $dir ) { -
branches/eam_branches/ipp-20130509/pstamp/test/maketestreq
r35441 r35594 30 30 } 31 31 32 # XXX: get these from site.config33 $pstamptool .= " -dbserver ippc19 -dbname ippRequestServer";34 35 32 36 33 my ($input, $submit, $listfile, $delete, $simple, $tag_req_name, $req_name, $email); 34 my ($dbname, $dbserver); 37 35 my ($save_temps, $verbose); 38 36 … … 50 48 'label=s' => \$label, 51 49 'email=s' => \$email, 50 51 'dbname=s' => \$dbname, 52 'dbserver=s' => \$dbserver, 52 53 53 54 'listfile|l' => \$listfile, … … 68 69 die ("Input file $input not found\n") unless (-e $input); 69 70 die ("Input file $input not readable\n") unless (-r $input); 71 72 if (!$dbname or !$dbserver) { 73 my $ipprc = PS::IPP::Config->new('GPC1'); 74 75 if (!$dbserver) { 76 $dbserver = metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER'); 77 die ("couldn't find dbserver in site.config\n") unless $dbserver; 78 } 79 if (!$dbname) { 80 $dbname = metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBNAME'); 81 die ("couldn't find dbname in site.config\n") unless $dbname; 82 } 83 } 84 $pstamptool .= " -dbserver $dbserver -dbname $dbname"; 85 70 86 71 87 # if request name was not supplied make one -
branches/eam_branches/ipp-20130509/psvideophot
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130509/pswarp/src/pswarpUpdateStatistics.c
r35563 r35594 73 73 // skip empty output readouts 74 74 if (!readout->data_exists) { 75 Nreadout ++;76 75 continue; 77 76 } 77 Nreadout ++; 78 78 79 79 psString readoutName = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
