IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2005, 4:57:00 PM (21 years ago)
Author:
eugene
Message:

moving to autocode on imregister

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/generate

    r3536 r3609  
    4141        # not a simple key/value entry
    4242        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";
    4445            push @element, $element;
    4546            push @field,   $field;
     
    106107        if ($type eq "float")  { $pt1 = "E"; }
    107108        if ($type eq "double") { $pt1 = "D"; }
     109
     110        if ($type eq "rawshort") { $pt1 = "I"; }
    108111
    109112        printf FILE "  fits_define_bintable_column (header, ";
     
    130133        if ($type eq "double") { $pt1 = sprintf "F%s", $length; }
    131134
     135        if ($type eq "rawshort")  { $pt1 = sprintf "I%s", $length; }
     136
    132137        printf FILE "  fits_define_table_column (header, ";
    133138        printf FILE "\"%s\", ",   $pt1;
     
    179184            next;
    180185        }
     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        }
    181191        if ($type eq "short")  {
    182192            $T = "BYTE";
     
    229239        if ($type eq "float")  { $Nbytes += 4; }
    230240        if ($type eq "double") { $Nbytes += 8; }
     241
     242        if ($type eq "rawshort")  { $Nbytes += 2; }
    231243    }
    232244    return ($Nbytes);
Note: See TracChangeset for help on using the changeset viewer.