Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/spst/UnixTransition/doc/receive_ccs.html
Дата изменения: Fri Apr 8 12:46:15 2016 Дата индексирования: Mon Apr 11 01:31:56 2016 Кодировка: Поисковые слова: р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п |
receive_ccs (version 15.12.22) | index receive_ccs.py |
PURPOSE --
A tool for processing PNMs.
Developed from RECEIVE_CCS.COM written by Danny Jones.
Processes Product Notification Messages (PNMs) sent to
the DISK$SPST_MS:[CCSXFER] directory by the Control
Center System (CCS). Each PNM sent by CCS is copied to
PASSOPS:[CCSXFER.RECEIVED] for archiving purposes. All
files referenced by the PNMs are FTPed to PASSOPS:
[RECEIVE.HOLDING]. Once these files are attempted to be
processed, they are moved to subdirectories of PASSOPS:
[FROMCCS]:
- If the PNM header does not specify OPS in the 3rd
line, all files are moved to PASSOPS:[FROMCCS.TEST]
- If the file does not contain the expected name of
one of the standard PASS calibration files or the
name of an onboard ephemeris file, it is moved to
PASSOPS:[FROMCCS.UNPROCESSED].
- If an error prevented the file from being processed,
it is moved to PASSOPS:[FROMCCS.ERROR].
- A successfully processed file is moved to
PASSOPS:[FROMCCS.PROCESSED].
After each PNM is processed, a mail message is sent to
the distribution RECEIVE_CCS.DIS describing any warnings
and errors.
DEVELOPER --
Don Chance
MODIFICATION HISTORY --
o initial implementation 09/25/01
o Use spss_sys_util.filecopy because shutil.copy does not work
correctly on VMS. drc 12/18/01
o Mods to allow the passfile commands to rshell off to unix while
the main routine remains on VMS for now. mdr 8/15/02
o mailmessage uninitialized when error path taken. drc 11/14/02
o added new code to pickle new calibration file. gww 12/27/02.
o chmod on pnm. gww 9/26/03
o send calibration files to the PASS test system; remove
vestigial vms code. drc 5/2/07
o fix bug in getting pickle path. drc 5/29/07
o fix for when multiple pnm's are receieved at once. drc 10/24/11
o enhanced to accept a 'starcat' file. drc 12/22/15
Modules | ||||||
|
Functions | ||
|
Data | ||
ADD_PASS_ARCHIVE_DIR = '/data/scheduling/spss_flight_data/pass/archive/add' CALIBRATION_DIR = '/data/scheduling/spss_flight_data/pass/calib' CALIB_FILES = {'fgs_align_cones.cal': ['fnconprm', 'fnfgsprm'], 'fgs_distort.cal': ['fndstprm'], 'fgs_fov_border.cal': ['fgsfovps'], 'fgs_plate.cal': ['fnpltprm'], 'fhst_align.cal': ['fnfstprm'], 'fhst_coef.cal': ['fhstcoef'], 'fhst_mag_sen.cal': ['fnsenprm']} CCSXFER = '/data/scheduling/spss_flight_data/pass/ccsxfer' CCSXFERIN = '/data/scheduling/spss_flight_data/pass/ccsxfer' ERROR_DIR = '/data/scheduling/spss_flight_data/pass/fromccs/error' FILE_TYPE_TO_VAR = {'fgsfovps': 'FGS_FOV_BORDER', 'fhstcoef': 'FHST_COEF', 'fnconprm': 'FGS_ALIGN_CONES', 'fndstprm': 'FGS_DISTORT', 'fnfgsprm': 'CFG_FNFGSPRM', 'fnfstprm': 'FHST_ALIGN', 'fnpltprm': 'FGS_PLATE', 'fnsenprm': 'FHST_MAG_SEN', 'starcat': 'CFG_STARCAT', 'vtimeprm': 'TIME_CORR'} FTP_DEST_DIR = '/data/scheduling/spss_flight_data/pass/receive/holding' NEW_FILE_FORMATS = {'fgsfovps': 'fgs_fov_border_%s.cal', 'fhstcoef': 'fhst_coef_%s.cal', 'fnconprm': 'fgs_align_cones_%s.cal', 'fndstprm': 'fgs_distort_%s.cal', 'fnfgsprm': 'fgs_align_cones_%s.cal', 'fnfstprm': 'fhst_align_%s.cal', 'fnpltprm': 'fgs_plate_%s.cal', 'fnsenprm': 'fhst_mag_sen_%s.cal', 'starcat': 'starcat_%s.cat', 'vtimeprm': 'time_corr_%s.cal'} PASS_ARCHIVE_DIR = '/data/scheduling/spss_flight_data/pass/archive' PASS_TO_SPUNIX_DIR = '/data/scheduling/spss_flight_data/pass/tospunix' PROCESSED_DIR = '/data/scheduling/spss_flight_data/pass/fromccs/processed' SAVED_PNM_DIR = '/data/scheduling/spss_flight_data/pass/ccsxfer/received' TEST_DIR = '/data/scheduling/spss_flight_data/pass/fromccs/test' TIME_CORR_FILE = 'time_corr.cal' UNPROCESSED_DIR = '/data/scheduling/spss_flight_data/pass/fromccs/unprocessed' __version__ = '15.12.22' |