Changeset 42385
- Timestamp:
- Feb 8, 2023, 12:11:27 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 10 edited
- 5 copied
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/fpcam.md (copied) (copied from branches/eam_branches/ipp-20220316/dbconfig/fpcam.md )
-
dbconfig/ipp.m4 (modified) (1 diff)
-
extsrc/gpcsw/gpcsrc/Make.Common (modified) (1 diff)
-
extsrc/gpcsw/gpcsrc/fits/libfh (modified) (1 prop)
-
extsrc/gpcsw/gpcsrc/fits/libfh/fh_registry.asm (deleted)
-
fpcamera (copied) (copied from branches/eam_branches/ipp-20220316/fpcamera )
-
ippTasks/Makefile.am (modified) (1 diff)
-
ippTasks/automate.pro (modified) (3 diffs)
-
ippTasks/fpcamera.pro (copied) (copied from branches/eam_branches/ipp-20220316/ippTasks/fpcamera.pro )
-
ippTasks/simtest.images.auto (copied) (copied from branches/eam_branches/ipp-20220316/ippTasks/simtest.images.auto )
-
ippTasks/simtest.images.config (copied) (copied from branches/eam_branches/ipp-20220316/ippTasks/simtest.images.config )
-
ippTasks/simtest.pro (modified) (5 diffs)
-
ppSim/src/ppSimSequence.c (modified) (3 diffs)
-
ppSim/src/ppSimSequence.h (modified) (1 diff)
-
ppSim/src/ppSimSequenceObject.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/changes.txt
r41296 r42385 2575 2575 REFERENCES stackExternalCamera(ext_camera_id) 2576 2576 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2577 2578 -- EAM 2022.05.09 : adding fpcamRun, fpcamProcessedExp 2579 2580 CREATE TABLE fpcamRun ( 2581 fpcam_id BIGINT AUTO_INCREMENT, 2582 cam_id BIGINT, 2583 chip_id BIGINT, 2584 state VARCHAR(64), 2585 workdir VARCHAR(255), 2586 workdir_state VARCHAR(64), 2587 label VARCHAR(64), 2588 data_group VARCHAR(64), 2589 dist_group VARCHAR(64), 2590 reduction VARCHAR(64), 2591 dvodb VARCHAR(255), 2592 software_ver VARCHAR(16), 2593 note VARCHAR(255), 2594 PRIMARY KEY(fpcam_id), 2595 KEY(cam_id), 2596 KEY(chip_id), 2597 KEY(state), 2598 KEY(label), 2599 INDEX(chip_id, cam_id), 2600 FOREIGN KEY (cam_id) REFERENCES camRun(cam_id), 2601 FOREIGN KEY (chip_id) REFERENCES chipRun(chip_id)) 2602 ENGINE=innodb DEFAULT CHARSET=latin1; 2603 2604 CREATE TABLE fpcamProcessedExp ( 2605 fpcam_id BIGINT, 2606 path_base VARCHAR(255), 2607 2608 zpt_obs FLOAT, 2609 zpt_stdev FLOAT, 2610 zpt_lq FLOAT, 2611 zpt_uq FLOAT, 2612 2613 dtime_script FLOAT, 2614 2615 hostname VARCHAR(64), 2616 n_stars INT, 2617 fault SMALLINT NOT NULL, 2618 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 2619 2620 software_ver VARCHAR(16), 2621 2622 deteff_obs FLOAT, 2623 deteff_err FLOAT, 2624 deteff_lq FLOAT, 2625 deteff_uq FLOAT, 2626 2627 quality SMALLINT 2628 2629 PRIMARY KEY(fpcam_id), 2630 KEY(fault), 2631 FOREIGN KEY (fpcam_id) REFERENCES fpcamRun(fpcam_id), 2632 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2633 -
trunk/dbconfig/ipp.m4
r36507 r42385 42 42 include(ff.md) 43 43 include(remote.md) 44 include(fpcam.md) -
trunk/extsrc/gpcsw/gpcsrc/Make.Common
r34800 r42385 163 163 CCWARN = -Wall -Wstrict-prototypes # -Wshadow 164 164 CFLAGS = $(CCDEBUG) $(EXTRA_CFLAGS) $(CCWARN) $(CCDEFS) $(CCINCS) $(CCHACKS) 165 LDFLAGS = $(CCDEBUG) $(EXTRA_CFLAGS) $(CCLIBS) 165 LDFLAGS = $(CCDEBUG) $(EXTRA_CFLAGS) $(CCLIBS) -Wl,--allow-multiple-definition 166 166 CXXFLAGS = $(subst -Wstrict-prototypes,,$(CFLAGS)) 167 167 ARFLAGS = -rc -
trunk/extsrc/gpcsw/gpcsrc/fits/libfh
- Property svn:ignore
-
old new 1 1 obj 2 fh_registry.asm
-
- Property svn:ignore
-
trunk/ippTasks/Makefile.am
r36852 r42385 50 50 bg.regeneration.pro \ 51 51 remote.pro \ 52 fpcamera.pro \ 52 53 fullforce.pro 53 54 -
trunk/ippTasks/automate.pro
r24189 r42385 17 17 # DONE (action finished) 18 18 19 macro automate.status 20 21 ## Pull out the ones that are to be run regularly 22 local npages 23 book npages automate -var npages 24 for i 0 $npages 25 book getpage automate $i -var pageName 26 echo $i : $pageName 27 book getword automate $pageName pantaskState -var myState 28 if ("$myState" != "NULL") 29 echo $pageName : $myState 30 end 31 end 32 end 33 19 34 macro automate.reset 20 35 ## probably should not always init … … 27 42 break 28 43 end 29 queueload tmp -x "cat $MODULES:0/$1" 44 45 file $1 isFound 46 if ($isFound) 47 queueload tmp -x "cat $1" 48 else 49 # search module path list for existing file 50 queueload tmp -x "cat $MODULES:0/$1" 51 end 30 52 31 53 pwd -var cwd 54 $username = `whoami` 32 55 33 56 ## interpolate standard values … … 35 58 queuesubstr tmp @DBNAME@ $3 36 59 queuesubstr tmp @CWD@ $cwd 37 38 $username = `whoami`39 60 queuesubstr tmp @USER@ $username 40 61 -
trunk/ippTasks/simtest.pro
r28767 r42385 66 66 if (("$init" == "new") || ("$init" == "inject")) 67 67 # XXX this will fail and exit the script if the db does not exist or is old... 68 # XXX this step is too dangerous and was eliminated 68 69 exec pxadmin -delete -dbname $dbname 69 70 70 71 # XXX this gives warnings if the db exists... 72 # XXX this step is too dangerous and was eliminated 71 73 exec pxadmin -create -dbname $dbname 72 74 … … 74 76 # the labels "wait" and "proc" are special names used in automate.pro 75 77 76 $ppsim = "ppSimSequence $MODULES:0/$SIMTEST_SEQUENCE simtest.mkimages simtest.inject -path $SIMTEST_RAWDIR -workdir $SIMTEST_WORKDIR -dbname $dbname -label wait -dvodb DVO -tess_id TESS" 78 # make a reference database 79 mkref refcat 10 80 81 $ppsim = "ppSimSequence $SIMTEST_SEQUENCE simtest.mkimages simtest.inject -path $SIMTEST_RAWDIR -workdir $SIMTEST_WORKDIR -dbname $dbname -label wait -dvodb DVO -tess_id TESS -refcat refcat.catdir" 77 82 if ("$PPSIM_RECIPE" != "default") 78 83 $ppsim = $ppsim -ppsim_recipe $PPSIM_RECIPE … … 101 106 module automate.pro 102 107 103 module.tasks 104 105 add.label proc 108 module chip.pro 109 module camera.pro 110 module register.pro 111 # module.tasks 112 113 # XXX consolidate design of label / state / ?? for processing sequences 114 add.label simtest 106 115 107 116 if ($SIMTEST_THREADS == 0) … … 115 124 automate.load $SIMTEST_AUTO $SIMTEST_CAMERA $dbname 116 125 117 tasks.revert.off126 # tasks.revert.off 118 127 119 128 run … … 159 168 $SIMTEST_AUTO = simtest.flatcorr.auto 160 169 end 170 171 # basic options for the these images (filter, location, obstype) 172 $BaseOptions = -type OBJECT -filter r -skymags 20.86 -ra 270.70 -dec -23.70 -pa 0.0 173 $BaseOptions = $BaseOptions -Df PSASTRO:DVO.GETSTAR.MAX.RHO 50000.0 174 $BaseOptions = $BaseOptions -nx 2500 -ny 2500 175 176 # options for the reference image 177 $RefOptions = $BaseOptions -exptime 100.0 -seeing 1.0 178 $RefOptions = $RefOptions -D PSF.MODEL PS_MODEL_GAUSS 179 $RefOptions = $RefOptions -Df STARS.SIGMA.LIM 0.5 180 $RefOptions = $RefOptions -Db PSF.CONVOLVE T 181 182 # create a reference database of fake stars to be used by ppSim below 183 macro mkref 184 if ($0 != 3) 185 echo "mkref (refbase) (density)" 186 break 187 end 188 189 local refbase 190 $refbase = $1 191 192 exec rm -rf $refbase.catdir 193 exec rm -f $refbase.fits 194 195 $RefOptions = $RefOptions -Df STARS.DENSITY $2 196 197 # create an image with fake sources and insert the resulting cmf file into a dvodb 198 $RefConfig = -camera SIMTEST -recipe PPSIM STACKTEST.MAKE -D PSASTRO:PSASTRO.CATDIR $refbase.catdir 199 200 exec ppSim $RefOptions $RefConfig $refbase 201 202 file synth.photcodes found 203 if (not($found)) 204 echo "making photcodes file" 205 mkphotcodes synth.photcodes 206 end 207 208 exec addstar -D CAMERA simtest -D CATDIR $refbase.catdir -accept-astrom -photcode SYNTH.r -D PHOTCODE_FILE synth.photcodes $refbase.cmf -quick-airmass 209 exec relphot -averages -D CATDIR $refbase.catdir -update -region 260 280 -33 -13 210 end 211 212 # if we run this test as a stand-alone program somewhere, we may need to create a local copy of the photcode file: 213 macro mkphotcodes 214 if ($0 != 2) 215 echo "USAGE: mkphotcodes (filename)" 216 break 217 end 218 219 exec /bin/rm -f $1 220 output $1 221 echo "# airmass color astrometry mag photom astrom mask photom mask" 222 echo "# code name type zero slope offset c1 c2 slope zero equiv sys scale scale sys poor bad poor bad" 223 echo " 1 g_SYNTH sec 0.000 0.000 0.000 1 3 0.0000 0 21 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 224 echo " 2 r_SYNTH sec 0.000 0.000 0.000 2 3 0.0000 0 22 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 225 echo " 3 i_SYNTH sec 0.000 0.000 0.000 2 3 0.0000 0 23 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 226 echo " 4 z_SYNTH sec 0.000 0.000 0.000 3 4 0.0000 0 24 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 227 echo " 5 y_SYNTH sec 0.000 0.000 0.000 4 5 0.0000 0 25 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 228 echo " 3001 SYNTH.g ref 0.000 0.000 0.000 - - 0.0000 0 1 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 229 echo " 3002 SYNTH.r ref 0.000 0.000 0.000 - - 0.0000 0 2 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 230 echo " 3003 SYNTH.i ref 0.000 0.000 0.000 - - 0.0000 0 3 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 231 echo " 3004 SYNTH.z ref 0.000 0.000 0.000 - - 0.0000 0 4 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 232 echo " 3005 SYNTH.y ref 0.000 0.000 0.000 - - 0.0000 0 5 0.000 0.000 0.000 0.000 0x0000 0x0000 0x0000 0x0000" 233 output stdout 234 end 235 -
trunk/ppSim/src/ppSimSequence.c
r27967 r42385 48 48 psArgumentRemove(argNum, &argc, argv); 49 49 ppsim_recipe = psStringCopy (argv[argNum]); 50 psArgumentRemove(argNum, &argc, argv); 51 } 52 53 char *refcat = NULL; 54 if ((argNum = psArgumentGet (argc, argv, "-refcat"))) { 55 psArgumentRemove(argNum, &argc, argv); 56 refcat = psStringCopy (argv[argNum]); 50 57 psArgumentRemove(argNum, &argc, argv); 51 58 } … … 96 103 fprintf (stderr, " -label (label)\n"); 97 104 fprintf (stderr, " -dvodb (dvodb)\n"); 105 fprintf (stderr, " -refcat (catdir)\n"); 98 106 fprintf (stderr, " -tess_id (tess_id)\n"); 99 107 exit (2); … … 242 250 } 243 251 if (!strcasecmp (type, "OBJECT")) { 244 ppSimSequenceObject (simfile, inject, sequence, i, rng, path, basename, ppSimCommandReal, injectCommandReal, files);252 ppSimSequenceObject (simfile, inject, sequence, i, rng, path, basename, refcat, ppSimCommandReal, injectCommandReal, files); 245 253 psFree (injectCommandReal); 246 254 psFree (ppSimCommandReal); -
trunk/ppSim/src/ppSimSequence.h
r27967 r42385 15 15 bool ppSimSequenceDark (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *ppSimCommand, const char *injectCommand, psArray *files); 16 16 bool ppSimSequenceFlat (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *ppSimCommand, const char *injectCommand, psArray *files); 17 bool ppSimSequenceObject (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char * ppSimCommand, const char *injectCommand, psArray *files);17 bool ppSimSequenceObject (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *refcat, const char *ppSimCommand, const char *injectCommand, psArray *files); 18 18 19 19 #endif -
trunk/ppSim/src/ppSimSequenceObject.c
r27967 r42385 1 1 # include "ppSimSequence.h" 2 2 3 bool ppSimSequenceObject (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char * ppSimCommand, const char *injectCommand, psArray *files) {3 bool ppSimSequenceObject (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *refcat, const char *ppSimCommand, const char *injectCommand, psArray *files) { 4 4 5 5 bool status; … … 97 97 psStringAppend (&command, " -obs_mode OBJECT.%s", (char *) filters->data[i]); 98 98 99 if (refcat) { psStringAppend (&command, " -D PSASTRO:PSASTRO.CATDIR %s", refcat); } 100 99 101 double frnd = psRandomUniform(rng); 100 102 float seeing = IQmin + (IQmax - IQmin)*frnd;
Note:
See TracChangeset
for help on using the changeset viewer.
