flipsharp, pipesharp - Prepare ESA Sharp HRPT image files for ingest

SYNOPSIS

flipsharp  [ inputfile ... ]
pipesharp  outputfile

DESCRIPTION

flipsharp and pipesharp prepare ESA Sharp HRPT image files for ingest by avin or hrptin. These functions determine whether ESA Sharp HRPT image files have been rotated 180 degrees; if so, these functions un-rotate the image files. If the image files are not rotated, then flipsharp and pipesharp make no changes.

flipsharp operates in places, i.e., directly modifies the input files. pipesharp reads from standard input. It can be used to pipe the output of the UNIX dd function. For example

     mt -t /dev/nrst0 fsf 2
     dd if=/dev/nrst0 bs=22680 | pipesharp outputfile
     mt -t /dev/nrst0 rew

The third file on the typical ESA Sharp HRPT archive tape is the so-called image file. The first two files are the volume directory file and the leader file, respectively. The blocksize of the image file is 22680 bytes.

EXAMPLES

The following two examples accomplish the same thing. Note that hrpt_format parameter is OPTIONAL, meaning that unless is appears on the command line, the default hrpt_format=auto is used.

Example 1

    [1] % mt -t /dev/nrst0 fsf 2
    [2] % dd if=/dev/nrst0 bs=22680 | pipesharp rawsharp
    [3] % avin hrpt_format=sharp
    output file(s) : char(255) ? [.]
    on_pass_disk   : char(  3) ? [yes] no
    tape_device    : char(255) ? [/dev/ncht0] rawsharp
    :

Example 2

    [1] % mt -t /dev/nrst0 fsf 2
    [2] % dd if=/dev/nrst0 bs=22680 of=rawsharp
    [3] % flipsharp rawsharp
    [4] % avin hrpt_format=sharp
    output file(s) : char(255) ? [.]
    on_pass_disk   : char(  3) ? [yes] no
    tape_device    : char(255) ? [/dev/ncht0] rawsharp
    :

SEE ALSO

avin, hrptin

NOTES

ESA Sharp HRPT image files appear to be flipped only for ascending NOAA satellite passes. For descending passes, avin and hrptin should be able to process the image file directly from tape.


Last Update: $Date: 1999/05/10 20:13:58 $