substitute for gbyte(s)

Jon Ahlquist (ahlquist@rossby.met.fsu.edu)
Wed, 27 Sep 95 23:05:45 EDT


Date: Wed, 27 Sep 95 23:05:45 EDT
From: Jon Ahlquist <ahlquist@rossby.met.fsu.edu>
Message-Id: <9509280305.AA16154@rossby.met.fsu.edu>
To: ccm-users@ncar.UCAR.EDU
Subject: substitute for gbyte(s)

To: ccm-users@ncar.ucar.edu
Date: 27 September 1995

David Hansen asked whether anyone had experience
with the NCAR gbytes subroutine.

I can't speak directly on NCAR's version of gbytes, but, if it is of any
help, I have written both a C and Fortran version of a packing/unpacking
subroutine called bitmov(). It is more general than NCAR's gbytes.
The Fortran version includes a "front end" subroutine that makes
bitmov() look like subroutines gbyte, gbytes, sbyte, and sbytes.

The C version is intended for an ANSI standard C compiler but will also
work (after a minor documented modification) with a compiler
that meets the old Kernighan and Ritchie standards.
The Fortran version requires Fortran 77 with a minimum of extensions,
all of which are well documented. The C version automatically
adapts to the word size of the computer on which it is run,
while the word size must be set by a parameter in the Fortran version.

The software and documentation are free and are available by
anonymous ftp from ftp.met.fsu.edu in directory /pub/data_storage.
Note that "ftp" is part of the address "ftp.met.fsu.edu".

Jon Ahlquist (ahlquist@met.fsu.edu)
Dept. of Meteorology
Florida State University
Tallahassee, Florida
USA