Univeristy of Alabama in Huntsville

UAH LTG IDL Library

IDL Routines from Phillip Bitzer and UAH Lightning Group

summary     class     fields     routine details     file attributes

hamma/deprecated/

hamma_open_file.pro


NAME:

PURPOSE:

Depending on the version of the software used to read in the data from a HAMMA sensor, the header information could be big endian or little endian. This function figures out which it should be, and returns a lun to the correctly opened file.

NOTE: If the function is successful, the file will stay open. It is up to the user to close the file and free the lun when he is done with it. The function returns -1, then the file was not a valid HAMMA file, and the file is closed.

AUTHOR:

Phillip M. Bitzer

CATEGORY:

misc_routines

CALLING SEQUENCE:

lun = hamma_open_file(file)

ARGUMENTS:

file - the file you wish to be opened

OUTPUTS:

lun - if this is a valid hafca data file, this will be the lun of the correctly opened file. If there is an error, the file will be closed, and lun=-1

INPUT KEYWORDS:

None

OUTPUT KEYWORDS:

None

DEPENDENCIES:

MODIFICATION HISTORY:

It works. 07-09 PMB Renamed 07-21-11 PMB Added error catch 20120610 PMB Updated for gzipped files 20120610 PMB Renamed file to hamma_open_file from open_hamma_data_file 20130404 PMB

Routines

top hamma_open_file

result = hamma_open_file(file, VERSION=VERSION, SYNC_PATTERN=SYNC_PATTERN, N_BYTES=N_BYTES)

Parameters

file

Keywords

VERSION
SYNC_PATTERN
N_BYTES

File attributes

Modification date: Wed Jul 19 11:06:31 2017
Lines: 52