HWRF  trunk@4391
Functions | Variables
scripts.exhwrf_para_archive Namespace Reference

Generates an archive file from HWRF COM directory outputs. More...

Detailed Description

Generates an archive file from HWRF COM directory outputs.

This archive file can be on disk, or on the HPSS archiving system (via the htar command).

How this is done depends on the [config] section archive option, in the HWRF configuration files:

Functions

def main_disk ()
 Main program for disk archiving. More...
 
def main_tape ()
 Main program for tape archiving. More...
 

Variables

tuple acase = os.environ.get('ARCHIVE_STEP','BOTH')
 

Function Documentation

def scripts.exhwrf_para_archive.main_disk ( )

Main program for disk archiving.

Creates an on-disk archiving for one of two cases:

  • disk:/path/to/archive.tar.gz — generates an on-disk *.tar.gz archive in a long-term storage disk area
  • hpsz:/path/to/tape-archive.tar.gz — generates an on-disk *.tar.gz archive in a temporary location so it can be copied to tape in a later step.

Definition at line 31 of file exhwrf_para_archive.py.

Referenced by scripts.exhwrf_para_archive.main_tape().

def scripts.exhwrf_para_archive.main_tape ( )

Main program for tape archiving.

Does one of two things:

  • hpss:/path/to/archive.tar — will use the htar command to archive COM directory outputs
  • hpsz:/path/to/archive.tar.gz — will copy a tar.gz file from a temporary area, made by the disk archiving step, to a tape destination using the "hsi put" command.

Definition at line 88 of file exhwrf_para_archive.py.