Class FixCardReduction

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FixCardReduction
    extends PostgresConnection
    To fix the card reduction tables due to incomplete ingestions in the local database
    Author:
    talonso
    • Constructor Detail

      • FixCardReduction

        public FixCardReduction​(PostgresConnection.DATABASE_LOCATION dbLoc,
                                long timeout)
                         throws java.sql.SQLException,
                                spice.basic.SpiceErrorException,
                                java.io.IOException
        Constructor
        Parameters:
        dbLoc - Database location
        timeout - Timeout, 0 to disable
        Throws:
        java.sql.SQLException - Database errors
        java.io.IOException - File system errors
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.sql.SQLException,
                                spice.basic.SpiceErrorException,
                                java.io.IOException
        Main action program to fix the card reduction tables. Local database is used
        Parameters:
        args - Not used
        Throws:
        java.sql.SQLException - Database errors
        java.io.IOException - File system errors
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
      • doFixCardReduction

        public void doFixCardReduction​(boolean numericalIntegration)
                                throws java.sql.SQLException,
                                       java.lang.InterruptedException,
                                       spice.basic.SpiceErrorException,
                                       java.io.IOException
        Fixes the card reduction tables
        Parameters:
        numericalIntegration - True to use numerical integration in the ingestion of the card reduction tables
        Throws:
        java.sql.SQLException - Database errors
        java.io.IOException - File system errors
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
        java.lang.InterruptedException - For remote database a confirmation is required from the console