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

ltg/lma/

pmb_get_lma_initiation.pro

LMA, Lightning, ATS509


When working with LMA data, you might need to get the initation source of each flash in a time period. This function will parse given times and flash number arrays of a set of sources and return the indices that are the initiation sources.

This is a working file designed primarily for use with ATS509.

Examples

Get some LMA data:

lma = pmb_import_lma_flash()
And find the indices of the sources that are initiation sources:
init_ind = pmb_get_lma_initiation(lma.times, lma.flash_number)

Author information

Author

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

History

Modification History:

First written: Oct 30, 2012

Routines

top pmb_get_lma_initiation

result = pmb_get_lma_initiation(times, flash_number [, Min_sources=integer] [, Count=numeric])

Given an array of source times and the flash number each sources belongs to, find the initiation source for each flash.

Return value

An array of indices of the initiation sources

Parameters

times in required type=numeric array

An array of the times of the sources

flash_number in required type=numeric array

An array of the flash numbers

Keywords

Min_sources in optional type=integer default=1

The minimum number of sources to be considered for a flash

Count out optional type=numeric

The number of initiation sources found

File attributes

Modification date: Tue Mar 25 17:15:40 2014
Lines: 25
Docformat: rst rst