.:ioPython:home

From ADPAA
Jump to: navigation, search

Module Name

adpaa.py (ADPAA class)

Purpose

Creates an object of the ADPAA class. Built-in methods allow data within a NASA/UND-formatted ASCII file to be extracted and stored in an object of the ADPAA class and allow information within an object of the ADPAA class to be written to a file in proper NASA/UND format.

Imported Modules

  • readfile.py (ReadFile class)
  • writefile.py (WriteFile class)
  • constants.py (constants class)
  • julian_date.py (julian_date class)
  • adpaa_help.py (adpaa_help class)

Syntax

The methods within an instantiated object of the ADPAA class that allow for data input/output are described below.

 ReadFile([name= ])
  • Purpose: Read a NASA/UND-formatted ASCII file into an ADPAA object.
  • Input: 'name' - optional keyword argument to set the filename of the file to input (uses ADPAA class attribute 'name' by default).
  • Returns: nothing
 WriteFile([name= ])
  • Purpose: Write information contained in an ADPAA object to a properly-formatted NASA/UND ASCII file.
  • Input: 'name' - optional keyword argument to set the filename of the file being written to (uses ADPAA class attribute 'name' by default)
  • Returns: nothing