Changeset 12421 for trunk/ippScripts/scripts/warp_overlap.pl
- Timestamp:
- Mar 12, 2007, 5:01:10 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_overlap.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_overlap.pl
r12416 r12421 78 78 } 79 79 80 # Make sure everything is from the same exposure, and get the exposure tag 81 my $exp_tag; # Exposure tag 82 foreach my $imfile ( @$imfiles ) { 83 unless (defined $exp_tag) { 84 $exp_tag = $imfile->{exp_tag}; 85 } elsif ($exp_tag ne $imfile->{exp_tag}) { 86 &my_die("Multiple exposures in the same warp.", $warp_id, $PS_EXIT_SYS_ERROR); 87 } 88 } 89 80 90 unless ($no_op) { 81 91 … … 93 103 if (defined $workdir) { 94 104 $workdir = $ipprc->convert_filename_absolute( $workdir ); 105 $workdir = File::Spec->catdir( $workdir, $exp_tag ); 95 106 } else { 96 107 my $example = $ipprc->convert_filename_absolute( $$imfiles[0]->{uri} ); … … 98 109 $workdir = $dir; 99 110 } 100 101 $workdir = File::Spec->catfile( $workdir, "warp$warp_id" );102 111 system "mkdir -p $workdir" unless -d $workdir; 103 112 … … 108 117 foreach my $imfile (@$imfiles) { 109 118 print $overlapFile "warpSkyCellMap\tMETADATA\n"; 110 print $overlapFile "\twarp_id\t S32\t" . $warp_id . "\n";119 print $overlapFile "\twarp_id\t\tS32\t" . $warp_id . "\n"; 111 120 print $overlapFile "\tskycell_id\tSTR\t" . $imfile->{skycell_id} . "\n"; 112 121 print $overlapFile "\ttess_id\t\tSTR\t" . $imfile->{tess_id} . "\n"; 113 print $overlapFile "\texp_tag\t\tSTR\t" . $imfile->{exp_tag} . "\n"; 114 print $overlapFile "\tcam_version\tS32\t" . $imfile->{cam_version} . "\n"; 115 print $overlapFile "\tclass_id\t\tSTR\t" . $imfile->{class_id} . "\n"; 116 print $overlapFile "\tfault\tS16\t" . $imfile->{fault} . "\n"; 122 print $overlapFile "\tcam_id\t\tS32\t" . int($imfile->{cam_id}) . "\n"; 123 print $overlapFile "\tclass_id\tSTR\t" . $imfile->{class_id} . "\n"; 124 print $overlapFile "\tfault\t\tS16\t" . $imfile->{fault} . "\n"; 117 125 print $overlapFile "END\n\n"; 118 126 }
Note:
See TracChangeset
for help on using the changeset viewer.
