HiRISE

HiRISE.HiPlan.HiCat
Class Copy_Observation_Record

java.lang.Object
  extended by HiRISE.HiPlan.HiCat.Copy_Observation_Record

public class Copy_Observation_Record
extends Object

A command-line utility to copy one or more observations from one database into another.

Version:
2.7
Author:
Christian Schaller - UA/PIRL

Field Summary
static int FAILURE
          Exit status for an unsuccessful operation.
static String ID
          Class identification name with source code version and date.
static int SUCCESS
          Exit status for a successful operation.
 
Method Summary
static void main(String[] args)
          Invokes an instance of Copy_Observation_Record and processes the command-line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Exit status for a successful operation.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Exit status for an unsuccessful operation.

See Also:
Constant Field Values
Method Detail

main

public static void main(String[] args)
Invokes an instance of Copy_Observation_Record and processes the command-line arguments. At least one input source of observation IDs must be supplied; see Observation_ID_Accumulator for information about sources.

The observation records are returned as a collection of PVL parameters, grouped by observation, per the Observation_Record.parameter() method. The records are written to the standard output stream.

Usage

Copy_Observation_Record --from from_configuration_pathname --to to_configuration_pathname [--reset-commanding] [--geometry] [--allow-informal-ids] observation_id_source [...]

Copy_Observation_Record --usage

Copy_Observation_Record --version

Options are not case-sensitive and may be reduced to their shortest unique form. One or two dashes may be used.

Arguments

--from from_configuration_pathname
Sets the pathname of the configuration file from which to configure the application for record retrieval. See Configuration_Helper.getConfiguration(String,String,String...) for details on the configuration pathname; if this option is not used, the config source argument is null.
--to to_configuration_pathname
Sets the pathname of the configuration file from which to configure the application for record insertion. See Configuration_Helper.getConfiguration(String,String,String...) for details on the configuration pathname; if this option is not used, the config source argument is null.
--reset-commanding
Resets the COMMANDER, COMMAND_FILE_GENERATION_TIME, COMMAND_FILE_PATHNAME, COMMAND_FILE_DOM_RECEIPT_TIME, COMMAND_FILE_ASP_RECEIPT_TIME, COMMAND_FILE_MRO_UPLINK_TIME, SCMF, and SUCCESS_ACQUIRED_TIME fields on copy. The STATUS field is set to PLAN.
--geometry
Sets the application to copy data from the Observation_Geometry table as well.
--allow-informal-ids
Allows informal observation IDs to be used. Without this observation, only formal HiRISE observation IDs (e.g., ESP_026497_1755) are allowed, and informal IDs are silently rejected.

Parameters:
args - the command-line arguments.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona