IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27363


Ignore:
Timestamp:
Mar 19, 2010, 2:42:27 PM (16 years ago)
Author:
rhenders
Message:

Now able to create stack-stage table descriptions.

File:
1 edited

Legend:

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

    r27345 r27363  
    2929defined $type;
    3030
    31 if ($type ne "DT" && $type ne "IN" && $type ne "OB") {
     31if ($type ne "DT" && $type ne "IN" && $type ne "OB" && $type ne "ST") {
    3232
    3333    print "Don't understand type '$type'\n";
     
    4545elsif ($type eq "DT") {createDetections($schemaPath);}
    4646elsif ($type eq "OB") {createDiffs($schemaPath);}
     47elsif ($type eq "ST") {createStacks($schemaPath);}
    4748
    4849# finish up XML
     
    5455
    5556
    56 # creates detections mappings
     57# creates detections tables
    5758sub createInit {
    5859    my ($schemaPath) = @_;
     
    7071}
    7172
    72 # creates init batch mappings
     73# creates init batch tables
    7374sub createDetections {
    7475    my ($schemaPath) = @_;
     
    8182}
    8283
    83 # creates diff batch mappings
     84# creates diff batch tables
    8485sub createDiffs {
    8586    my ($schemaPath) = @_;
     
    8990    parseTable("$schemaPath/PanSTARRS.Tables.Slice.sql", "dbo.StackLowSigDelta");
    9091    parseTable("$schemaPath/PanSTARRS.Tables.Slice.sql", "dbo.StackHighSigDelta");
     92}
     93
     94# creates stack batch tables
     95sub createStacks {
     96    my ($schemaPath) = @_;
     97
     98    parseTable("$schemaPath/PanSTARRS.Tables.Slice.sql", "dbo.StackMeta");
     99    parseTable("$schemaPath/PanSTARRS.Tables.Slice.sql", "dbo.StackDetection");
     100    parseTable("$schemaPath/PanSTARRS.Tables.LoadMerge.sql", "dbo.SkinnyObject");
     101    parseTable("$schemaPath/PanSTARRS.Tables.Slice.sql", "dbo.StackOrphan");
     102    parseTable("$schemaPath/PanSTARRS.Tables.Common.sql", "dbo.ObjectCalColor");
    91103}
    92104
Note: See TracChangeset for help on using the changeset viewer.