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

Поисковые слова: р п р п р п р п р п р п р п р п р п р п р п р п
Python: module spc_util
 
 
spc_util (version 1/3/11)
index
spc_util.py

PURPOSE --
Decode SPC and QBF files.
 
Based on the data format descriptions from Appendix A of ICD-T1.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
Date        Who            What
====        ===            ====
12/07/10    DRC            Initial implementation
 1/03/11    DRC            Add diff function

 
Modules
       
difflib
os
struct
time_util

 
Classes
       
__builtin__.object
stored_program_command_load_file
qbf
spc_file
hst486
nssc1_atp
nssc1_rts

 
class hst486(spc_file)
    Class for deciphering HST 486 SPC files.
 
 
Method resolution order:
hst486
spc_file
stored_program_command_load_file
__builtin__.object

Methods defined here:
__init__(self, spc_file)
header_report(self)

Methods inherited from spc_file:
filename_data(self)
text_tdrs(self)

Methods inherited from stored_program_command_load_file:
data_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
parse_filename(self)
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors inherited from stored_program_command_load_file:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class nssc1_atp(spc_file)
    A class for deciphering NSSC1 ATP SPC files.
 
 
Method resolution order:
nssc1_atp
spc_file
stored_program_command_load_file
__builtin__.object

Methods defined here:
__init__(self, spc_file)

Methods inherited from spc_file:
filename_data(self)
text_tdrs(self)

Methods inherited from stored_program_command_load_file:
data_report(self)
header_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
parse_filename(self)
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors inherited from stored_program_command_load_file:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class nssc1_rts(spc_file)
    
Method resolution order:
nssc1_rts
spc_file
stored_program_command_load_file
__builtin__.object

Methods defined here:
__init__(self, spc_file)

Methods inherited from spc_file:
filename_data(self)
text_tdrs(self)

Methods inherited from stored_program_command_load_file:
data_report(self)
header_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
parse_filename(self)
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors inherited from stored_program_command_load_file:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class qbf(stored_program_command_load_file)
    
Method resolution order:
qbf
stored_program_command_load_file
__builtin__.object

Methods defined here:
__init__(self, spc_file)
filename_data(self)
header_report(self)
parse_filename(self)
parse_transfer_descriptor(self)

Methods inherited from stored_program_command_load_file:
data_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors inherited from stored_program_command_load_file:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class spc_file(stored_program_command_load_file)
    
Method resolution order:
spc_file
stored_program_command_load_file
__builtin__.object

Methods defined here:
filename_data(self)
text_tdrs(self)

Methods inherited from stored_program_command_load_file:
__init__(self, spc_file)
data_report(self)
header_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
parse_filename(self)
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors inherited from stored_program_command_load_file:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class stored_program_command_load_file(__builtin__.object)
    Base class for all stored program command load file objects.
 
  Methods defined here:
__init__(self, spc_file)
data_report(self)
filename_data(self)
Converts to human readable form information encoded into
the filename.
 
Returns a string.
header_report(self)
parse_data(self, start_byte=256)
Parse data part on an SPC file.
parse_filename(self)
pprint(self)
Print the report string.
report(self)
text_link_flag(self)
Convert the link flag code into a more descriptive form.
text_load_generation_flag(self)
Convert the load generation code into something a human can understand.
text_load_type(self)
Convert the load type code into a more descriptive form.
write(self, filename)
Write the report string to a file.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
crc16(buff, crc=0, poly=40961)
Compute CRC value.
diff(spc_file1, spc_file2, ignore_filename=True, ignore_header=True)
Difference two spc files.
spc(spc_file)
Return the appropriate stored program command load file object
based on the first character of the input file name.

 
Data
        QBF_TRANSFER_DATA_FORMAT = '<3Ic3IHIc220xHH'
SPC_DATA_FORMAT = '<63IHH'
SPC_HEADER_FORMAT = '<9s3s4s3s11s11s4s1s3s12s1s8s15s3s1s3s5s5s20s30s4s6s5s2s9s11s11s2s50sHH'
__version__ = '1/3/11'