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

ats509/

ess_ingest_ch3_stream.pro

ATS509, Byte, Bit


This file is an example of how to interpet a data stream (here, represented by two bytes) into different values. It follows along with Chapter 3 in ATS509 Notes. See the <notes http://goo.gl/LW1rUR> for the breakout of which bits go to which values.

Examples

Following the example in the notes:

byte1 = 30 byte2 = 215 snd = ess_ingest_ch3_stream(byte1, byte2) print, snd, /IMPLIED

Author information

Author

Phillip M. Bitzer, University of Alabama in Huntsville, pm.bitzer "AT" uah.edu

History

Modification History:

First added to Git 20140924 PMB Documentation added. 20141013 PMB Update to make this a function. Routine name has been changed. 20170927.

Other file information

Uses:

None

Routines

top ess_ingest_ch3_stream

result = ess_ingest_ch3_stream(b1, b2)

This routine is used as a wrapper for the commands in Chapter 3 of the ATS509 notes. Basically, we take the commands from that chapter and wrap them up in a pretty bow.

Return value

A dictionary containg the keys for the desired values. On error, NaN is returned.

Parameters

b1 in required type=byte

The MSByte.

b2 in required type=byte

THe LSByte.

Other attributes

Uses:

None

File attributes

Modification date: Wed Oct 18 20:01:25 2017
Lines: 20
Docformat: rst rst