unpack2.c is the subprogram provided by the data provider for decoding packed binary data from the POES SEM-1 instrument. The NGDC generated code is for illustrative purposes only. /* Sem1PoesScan.c This is a program designed to test dcwdecode.c interface. It should print out some fields from the first and last records of a NOAA packed file on tape. It should compile with any ANSI-compliant compiler (such as gcc). Written by Greg Ushomirskiy using code (and most of the hard work) by Minh Huynh Modified by Dan Wilkinson 11/29/95 to do byte swapping w/o external library functions. Now runs under DOS. Speed increase with a search to end rather that read to end. */ /* dcwdecode.c This code was extracted from the unpack2.c routine to allow reading data from sequential blocked devices (i.e. tapes). It takes as input a 332-byte packed record and unpacks it. For more information see the header in unpack2.c Unpack2.c written by Minh Huynh Decode.c code extracted from the above by Greg Ushomirskiy This version of decode was modified by Dan Wilkinson to provide coded swapping routines since the Microsoft Visual C compiler and library didn't support Minh's system routines. To properly swap the NOAA data bytes open file dcwswap.h and follow the instructions for your machine before compiling. */