IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2011, 1:25:16 PM (15 years ago)
Author:
rhenders
Message:

using a default of 24 chars for string types in votable; changed votable file output name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/pspsSchema2xml.pl

    r31101 r31104  
    6767
    6868# VOTable file
    69 my $votOutput = new IO::File(">votable.xml");
     69my $votOutput = new IO::File(">tables.vot");
    7070my $votWriter = new XML::Writer(OUTPUT => $votOutput, DATA_MODE => 1, DATA_INDENT=>2);
    7171$votWriter->xmlDecl('UTF-8');
     
    381381    # get VOTable type
    382382    my $votType = "undef";
     383    my $arraySize = 1;
    383384    if ($type eq "TBYTE") {$votType = "unsignedByte";}
    384385    elsif ($type eq "TSHORT") {$votType = "short";}
     
    387388    elsif ($type eq "TFLOAT") {$votType = "float";}
    388389    elsif ($type eq "TDOUBLE") {$votType = "double";}
    389     elsif ($type eq "TSTRING") {$votType = "char";}
     390    elsif ($type eq "TSTRING") {$votType = "char"; $arraySize = 24;}
    390391
    391392    $votWriter->startTag('FIELD',
    392393            "name" => $name,
     394            "arraysize" => $arraySize,
    393395            "datatype" => $votType);
    394396    $votWriter->endTag();
Note: See TracChangeset for help on using the changeset viewer.