Changeset 3609 for trunk/Ohana/src/libautocode/generate
- Timestamp:
- Mar 31, 2005, 4:57:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libautocode/generate (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/generate
r3536 r3609 41 41 # not a simple key/value entry 42 42 if ($key eq "FIELD") { 43 ($element, $field, $format, $comment, $unit) = split (/,\s+/, $value); 43 ($element, $field, $format, $comment, $unit) = split (/,\s+/, $value, 5); 44 # print "$element : $field : $format : $comment : $unit\n"; 44 45 push @element, $element; 45 46 push @field, $field; … … 106 107 if ($type eq "float") { $pt1 = "E"; } 107 108 if ($type eq "double") { $pt1 = "D"; } 109 110 if ($type eq "rawshort") { $pt1 = "I"; } 108 111 109 112 printf FILE " fits_define_bintable_column (header, "; … … 130 133 if ($type eq "double") { $pt1 = sprintf "F%s", $length; } 131 134 135 if ($type eq "rawshort") { $pt1 = sprintf "I%s", $length; } 136 132 137 printf FILE " fits_define_table_column (header, "; 133 138 printf FILE "\"%s\", ", $pt1; … … 179 184 next; 180 185 } 186 # this is a patch for old photreg tables: provide a fix for the tables 187 if ($type eq "rawshort") { 188 $N +=2; 189 next; 190 } 181 191 if ($type eq "short") { 182 192 $T = "BYTE"; … … 229 239 if ($type eq "float") { $Nbytes += 4; } 230 240 if ($type eq "double") { $Nbytes += 8; } 241 242 if ($type eq "rawshort") { $Nbytes += 2; } 231 243 } 232 244 return ($Nbytes);
Note:
See TracChangeset
for help on using the changeset viewer.
