IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33720


Ignore:
Timestamp:
Apr 5, 2012, 1:00:05 PM (14 years ago)
Author:
bills
Message:

Add table skycell to the database and the program
sctool (skycelltool but easier to type)

Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/skycells_to_mdc.c

    r33719 r33720  
    4848            fprintf(mdcfile, "    radeg\tF32\t%f\n", raCenter);
    4949            fprintf(mdcfile, "    decdeg\tF32\t%f\n", decCenter);
    50             fprintf(mdcfile, "    glonCenter\tF32\t%f\n", glonCenter);
    51             fprintf(mdcfile, "    glatCenter\tF32\t%f\n", glatCenter);
     50            fprintf(mdcfile, "    glong\tF32\t%f\n", glonCenter);
     51            fprintf(mdcfile, "    glat\tF32\t%f\n", glatCenter);
    5252            fprintf(mdcfile, "    width\tF32\t%f\n", width);
    5353            fprintf(mdcfile, "    height\tF32\t%f\n", height);
  • trunk/dbconfig/ipp.m4

    r33035 r33720  
    3838include(lap.md)
    3939include(vp.md)
     40include(skycell.md)
  • trunk/dbconfig/skycell.md

    r14023 r33720  
    1 # $Id: skycell.md,v 1.4 2007-07-06 01:16:08 jhoblitt Exp $
    2 
    3 skyCell METADATA
    4     skycell_id  STR         64      # Primary Key
    5     tess_id     STR         64      # Primary Key
    6     ra1         F64         0.0
    7     decl1       F64         0.0
    8     ra2         F64         0.0
    9     decl2       F64         0.0
    10     ra3         F64         0.0
    11     decl3       F64         0.0
    12     ra4         F64         0.0
    13     decl4       F64         0.0
     1skycell METADATA
     2    tess_id     STR     64
     3    skycell_id  STR     64
     4    radeg       F32     0
     5    decdeg      F32     0
     6    glong       F32     0
     7    glat        F32     0
     8    width       F32     0
     9    height      F32     0
    1410END
    15 
    16 skyCellMap METADATA
    17     skycell_id  STR         64      # Primary Key
    18     tess_id     STR         64      # Primary Key
    19     exp_id     S64         64      # Primary Key
    20     p3_version  S32         0       # Primary Key
    21 # class is not yet consistently carried through pXtools
    22 #    class       STR         64      # Primary Key
    23     class_id    STR         64      # Primary Key
    24 END
    25 
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r33119 r33720  
    21272127) ENGINE=innodb DEFAULT CHARSET=latin1;
    21282128
     2129CREATE TABLE skycell (
     2130    tess_id     VARCHAR(64),
     2131    skycell_id  VARCHAR(64),
     2132    radeg       float,
     2133    decdeg      float,
     2134    glong       float,
     2135    glat        float,
     2136    width       float,
     2137    height      float,
     2138    PRIMARY KEY (tess_id, skycell_id),
     2139    KEY(radeg),
     2140    KEY(decdeg),
     2141    KEY(glong),
     2142    KEY(glat)
     2143) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     2144
    21292145
    21302146-- This comment line is here to avoid empty query error.
  • trunk/ippTools/share/pxadmin_drop_tables.sql

    r32960 r33720  
    108108DROP TABLE IF EXISTS skycalRun;
    109109DROP TABLE IF EXISTS skycalResult;
     110DROP TABLE IF EXISTS skycell;
    110111
    111112SET FOREIGN_KEY_CHECKS=1
  • trunk/ippTools/src/Makefile.am

    r33031 r33720  
    3131        mergetool \
    3232        laptool \
    33         vptool
     33        vptool \
     34        sctool
    3435
    3536pkginclude_HEADERS = \
     
    8384        mergetool.h \
    8485        laptool.h \
    85         vptool.h
     86        vptool.h \
     87        sctool.h
    8688
    8789lib_LTLIBRARIES = libpxtools.la
     
    316318    vptoolConfig.c
    317319
     320sctool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
     321sctool_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la
     322sctool_SOURCES = \
     323    sctool.c \
     324    sctoolConfig.c
     325
    318326clean-local:
    319327        -rm -f TAGS
Note: See TracChangeset for help on using the changeset viewer.