Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/check_pdb_cards.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 04:00:10 2016
Кодировка:

Поисковые слова: universe
Python: module check_pdb_cards
 
 
check_pdb_cards (version 1/ 7/05)
index
check_pdb_cards.py

PURPOSE --
 
This script does a basic format check of PRD files to see if they
 meet some of the most basic ICD26 requirements.
 
python check_pdb_cards.py <file name>
 
DEVELOPER --
K. Clark
 
MODIFICATION HISTORY --
 
o Initial implementation 4/ 2/04 KWC - Port of VMS check_pdb_cards.for
o Modified 4/ 6/04 KWC - Clean up error messages.
o Modified 4/ 7/04 KWC - Add CRPF support.
o Modified 5/ 4/04 KWC - Add DFSC support.
o Modified 1/ 7/05 KWC - Add PLCP group name check.

 
Modules
       
glob
os
string
sys

 
Classes
       
check_pdb_cards

 
class check_pdb_cards
     Methods defined here:
__init__(self, test_file_name=None)
Check a PRD file for basic ICD26 conformance.
check_CMDS_cards(self, card_list, SA_flag=None)
Checks for Command Data Specification (CMDS) specific card types.
check_DFSC_cards(self, card_list)
Checks for DF-224 Scenario Data (DFSC) specific card types.
check_EUDL_cards(self, card_list)
Checks for Engineering and Unique Data Log (EUDL) 
specific card types.
check_PLCP_cards(self, card_list)
Checks for Planning Command Pool (PLCP) specific card types.
check_PRD_file(self, PRD_file_name)
Check a PRD file for valid card formats.
check_SHPF_cards(self, card_list)
Checks for Standard Header Packet (SHPF) specific card types.
check_SIAF_cards(self, card_list, apper_sum_flag=None)
Checks for Science Instrument Aperture Definition (SIAF)
specific card types.
check_SICF_cards(self, card_list, factor_sum_flag=None)
Checks for Science Instrument Calibration Factors (SICF) 
specific card types.
check_SOIF_cards(self, card_list)
Checks for Symbol of Interest (SOIF) specific card types.
check_TFPF_cards(self, card_list)
Checks for Table Format and Parameter (TFPF) specific card types.
check_TIDF_cards(self, card_list)
Checks for Table Directory (TIDF) specific card types.
check_card_type(self, line)
Check if valid card for this PRD file type.
check_cards(self, card_list, full_report=None)
Check a list of PRD cards for errors.
Full report gives a summary listing of all cards found.
find_file(self, test_file_name)
Try to locate the requested file. The file name may contain
wildcards. Determine the PRD file type from the name or
the extension.
find_file_type(self, file_name)
Determine the PRD file type from the name or
the extension.
init_card_count(self)
Initialize the ICD26 cards count array.
read_file(self)
Read in the contents of a PRD file.
set_file_type(self, file_type)
Set the PRD file type to be processed.

Data and other attributes defined here:
PRD_cards = {'adfc': ['FD', 'GC', 'CRAZ'], 'cmds': ['FD', 'GC', 'CH', 'CC', 'CI', 'CD', 'CV', 'SV', 'DD', 'CS', 'SC', 'CW', 'CR', 'IC', 'CZ'], 'crpf': ['FD', 'GC', 'CR'], 'dfsc': ['FD', 'GC', 'TH', 'AC', 'A2'], 'eudl': ['FD', 'GC', 'EU', 'EF', 'TI', 'TC', 'TD'], 'plcp': ['FD', 'GC', 'CG', 'CX', 'CT', 'CU', 'CY'], 'ptld': ['FD', 'GC', 'TB', 'TE'], 'schf': ['FD', 'GC', 'PZ'], 'shpf': ['FD', 'GC', 'HP', 'TI', 'TC', 'TD'], 'siaf': ['FD', 'GC', 'AJ', 'AQ', 'AP', 'AK', 'AM', 'AN'], ...}
PRD_types = ['shpf', 'eudl', 'siaf', 'plcp', 'sicf', 'ptld', 'cmds', 'tfpf', 'tidf', 'zpat', 'adcf', 'tsdf', 'soif', 'soi0', 'soi1', 'soi2', 'soi3', 'schf', 'crpf', 'dfsc']

 
Functions
       
run(file_name=None, *args)
Check a PRD file to see if it has any card format errors.
     NOTE: This is just a rough check, it is not complete.
 
Usage:
do check_pdb_cards <file name>

 
Data
        __version__ = ' 1/ 7/05'