Changeset 25074
- Timestamp:
- Aug 14, 2009, 12:39:56 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
ippScripts/scripts/publish_file.pl (modified) (5 diffs)
-
ippTools/src/difftool.c (modified) (1 diff)
-
ppMops/src/ppMops.c (modified) (3 diffs)
-
ppMops/src/ppMops.h (modified) (1 diff)
-
ppMops/src/ppMopsData.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/publish_file.pl
r25072 r25074 82 82 my %zp; # Zero points 83 83 my %exp_id; # Exposure identifiers 84 my %exp_name; # Exposure names 84 85 { 85 86 my $command; # Command to run … … 118 119 $zp{"$skycell_id.pos"} = $zp; 119 120 $zp{"$skycell_id.neg"} = $zp if defined $comp->{bothways} and $comp->{bothways}; 120 $exp_id{"$skycell_id.pos"} = $comp->{exp1}; 121 $exp_id{"$skycell_id.neg"} = $comp->{exp2} if defined $comp->{bothways} and $comp->{bothways}; 121 $exp_id{"$skycell_id.pos"} = $comp->{exp_id_1}; 122 $exp_id{"$skycell_id.neg"} = $comp->{exp_id_2} if defined $comp->{bothways} and $comp->{bothways}; 123 $exp_name{"$skycell_id.pos"} = $comp->{exp_name_1}; 124 $exp_name{"$skycell_id.neg"} = $comp->{exp_name_2} if defined $comp->{bothways} and $comp->{bothways}; 122 125 } elsif ($stage eq 'camera') { 123 126 my $cam_id = $comp->{cam_id}; … … 125 128 $zp{$cam_id} = $zp; 126 129 $exp_id{$cam_id} = $comp->{exp_id}; 130 $exp_name{$cam_id} = $comp->{exp_name}; 127 131 } 128 132 } … … 140 144 my $zp = $zp{$comp}; 141 145 my $exp_id = $exp_id{$comp}; 146 my $exp_name = $exp_name{$comp}; 142 147 if ($product eq "IPP-MOPS") { 143 148 my $outuri = "$outroot.$comp.fits"; … … 145 150 &my_die( "Unable to resolve output file $outuri", $pub_id, $PS_EXIT_SYS_ERROR); 146 151 147 my $command = "$ppMops $file $zp $exp_id $ out";152 my $command = "$ppMops $file $zp $exp_id $exp_name $out"; 148 153 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 149 154 run(command => $command, verbose => $verbose); -
trunk/ippTools/src/difftool.c
r25071 r25074 1179 1179 1180 1180 if (!available && (num != skycell_count)) { 1181 psTrace("difftool", PS_LOG_INFO, "%" PRId64 " skyfiles with stack found for warp_id %" 1182 PRId64 " need %" PRId64, num, skycell_count, warp_id);1181 psTrace("difftool", PS_LOG_INFO, "%" PRId64 " skyfiles with stack found for warp_id %" PRId64 1182 " need %" PRId64, num, warp_id, skycell_count); 1183 1183 continue; 1184 1184 } -
trunk/ppMops/src/ppMops.c
r25072 r25074 6 6 int main(int argc, char *argv[]) 7 7 { 8 if (argc != 5) {8 if (argc != 6) { 9 9 fprintf(stderr, "Insufficient arguments.\n"); 10 10 fprintf(stderr, "Usage: %s DETECTIONS ZP EXP_ID OUTPUT\n", argv[0]); … … 16 16 data->zp = atof(argv[2]); 17 17 data->exp_id = atoll(argv[3]); 18 data->output = psStringCopy(argv[4]); 18 data->exp_name = psStringCopy(argv[4]); 19 data->output = psStringCopy(argv[5]); 19 20 20 21 if (!isfinite(data->zp)) { … … 137 138 psMetadataAddF64(outHeader, PS_LIST_TAIL, "TEL_ALT", 0, "Telescope altitude", alt); 138 139 psMetadataAddF64(outHeader, PS_LIST_TAIL, "TEL_AZ", 0, "Telescope azimuth", az); 139 psMetadataAddS32(outHeader, PS_LIST_TAIL, "DIFFIMID", 0, "Difference image identifier", imageid); 140 psMetadataAddS32(outHeader, PS_LIST_TAIL, "FPA_ID", 0, "Exposure identifier", data->exp_id); 140 psMetadataAddS64(outHeader, PS_LIST_TAIL, "DIFFIMID", 0, "Difference image identifier", imageid); 141 psMetadataAddStr(outHeader, PS_LIST_TAIL, "FPA_ID", 0, "Exposure name", data->exp_name); 142 psMetadataAddS64(outHeader, PS_LIST_TAIL, "EXP_ID", 0, "Exposure identifier", data->exp_id); 141 143 psMetadataAddStr(outHeader, PS_LIST_TAIL, "OBSCODE", 0, "IAU Observatory code", OBSERVATORY_CODE); 142 144 psMetadataAddF32(outHeader, PS_LIST_TAIL, "STARPSF", 0, "Stellar PSF (arcsec)", psf); -
trunk/ppMops/src/ppMops.h
r25072 r25074 17 17 float zp; // Magnitude zero point 18 18 psS64 exp_id; // Exposure identifier 19 psString exp_name; // Exposure name 19 20 psString output; // Output filename 20 21 } ppMopsData; -
trunk/ppMops/src/ppMopsData.c
r24242 r25074 11 11 { 12 12 psFree(data->detections); 13 psFree(data->exp_name); 13 14 psFree(data->output); 14 15 return; … … 22 23 data->detections = NULL; 23 24 data->zp = NAN; 25 data->exp_id = 0; 26 data->exp_name = NULL; 24 27 data->output = NULL; 25 28
Note:
See TracChangeset
for help on using the changeset viewer.
