Files
nexrad-level-2-data/docs/Level2Radar.html
T
2022-04-11 16:23:23 -05:00

2521 lines
28 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Documentation Class: Level2Radar</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top ">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">Documentation</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="topNavigation">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li><a href="Level2Radar.html">Level2Radar</a></li><li><a href="Level2Record.html">Level2Record</a></li><li><a href="parseData.html">parseData</a></li><li><a href="RandomAccessFile.html">RandomAccessFile</a></li>
</ul>
</li>
<li class="dropdown">
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li><a href="global.html">Global</a></li>
</ul>
</li>
</ul>
<div class="col-sm-3 col-md-3">
<form class="navbar-form" role="search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
<div class="input-group-btn">
<button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="container" id="toc-content">
<div class="row">
<div class="col-md-8">
<div id="main">
<h1 class="page-title">Class: Level2Radar</h1>
<section>
<header>
<h2>
Level2Radar
</h2>
</header>
<article>
<div class="container-overview">
<hr>
<dt>
<h4 class="name" id="Level2Radar"><span class="type-signature"></span>new Level2Radar(file [, options])</h4>
</dt>
<dd>
<div class="description">
Parses a Nexrad Level 2 Data archive or chunk. Provide `rawData` as a `Buffer`. Returns an object formatted per the [ICD FOR RDA/RPG - Build RDA 20.0/RPG 20.0 (PDF)](https://www.roc.noaa.gov/wsr88d/PublicDocs/ICDs/2620002U.pdf), or as close as can reasonably be represented in a javascript object. Additional data accessors are provided in the returned object to pull out typical data in a format ready for processing.
Radar data is accessed through the get* methods
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>file</code></td>
<td class="type">
<span class="param-type">Buffer</span>
|
<span class="param-type"><a href="Level2Radar.html">Level2Radar</a></span>
</td>
<td class="attributes">
</td>
<td class="description last">Buffer with Nexrad Level 2 data. Alternatively a Level2Radar object, typically used internally when combining data.</td>
</tr>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type"><a href="global.html#ParserOptions">ParserOptions</a></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Parser options</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</div>
<h3 class="subsection-title">Members</h3>
<dl>
<hr>
<dt class="name" id="hasGaps">
<h4 id="hasGaps"><span class="type-signature"></span>hasGaps<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
<div class="description">
Gaps were found in the source data
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">boolean</span>
</li>
</ul>
<dl class="details">
</dl>
</dd>
<hr>
<dt class="name" id="header">
<h4 id="header"><span class="type-signature"></span>header<span class="type-signature"> :<a href="global.html#Header">Header</a></span></h4>
</dt>
<dd>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type"><a href="global.html#Header">Header</a></span>
</li>
</ul>
<dl class="details">
</dl>
</dd>
<hr>
<dt class="name" id="isTruncated">
<h4 id="isTruncated"><span class="type-signature"></span>isTruncated<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
<div class="description">
Source data was truncated
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">boolean</span>
</li>
</ul>
<dl class="details">
</dl>
</dd>
<hr>
<dt class="name" id="vcp">
<h4 id="vcp"><span class="type-signature"></span>vcp<span class="type-signature"> :<a href="global.html#Vcp">Vcp</a></span></h4>
</dt>
<dd>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type"><a href="global.html#Vcp">Vcp</a></span>
</li>
</ul>
<dl class="details">
</dl>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<hr>
<dt>
<h4 class="name" id=".combineData"><span class="type-signature">&lt;static> </span>combineData(data)</h4>
</dt>
<dd>
<div class="description">
Combines the data returned by multiple runs of the Level2Data constructor. This is typically used in "chunks" mode to combine all azimuths from one revolution into a single data set. data can be provided as an array of Level2Radar objects, individual Level2Data parameters or any combination thereof.
The combine function blindly combines data and the right-most argument will overwrite any previously provided data. Individual azimuths located in Level2Radar.data[] will be appended. It is up to the calling routine to properly manage the parsing of related chunks and send it in to this routine.
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>data</code></td>
<td class="type">
<span class="param-type"><a href="Level2Radar.html">Level2Radar</a></span>
</td>
<td class="attributes">
&lt;repeatable><br>
</td>
<td class="description last">Data to combine</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Combined data
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Level2Radar.html">Level2Radar</a></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getAzimuth"><span class="type-signature"></span>getAzimuth( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an single azimuth value or array of azimuth values for the current elevation and scan (or all scans if not provided).
The order of azimuths in the returned array matches the order of the data in other get* functions.
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Azimuth angle
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">number</span>
|
<span class="param-type">Array.&lt;number></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHeader"><span class="type-signature"></span>getHeader( [scan])</h4>
</dt>
<dd>
<div class="description">
Return message_header information for all scans or a specific scan for the selected elevation
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan, omit to return all scans for this elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#MessageHeader">MessageHeader</a></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresCorrelationCoefficient"><span class="type-signature"></span>getHighresCorrelationCoefficient( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar correlation coefficient data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan or null for all scans in elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res correlation coefficient data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresDiffPhase"><span class="type-signature"></span>getHighresDiffPhase( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar differential phase data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan or null for all scans in elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res differential phase data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresDiffReflectivity"><span class="type-signature"></span>getHighresDiffReflectivity( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar differential reflectivity data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan or null for all scans in elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res differential reflectivity data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresReflectivity"><span class="type-signature"></span>getHighresReflectivity( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar reflectivity data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan or null for all scans in elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res reflectivity data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresSpectrum"><span class="type-signature"></span>getHighresSpectrum( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar spectrum data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan, or null for all scans in this elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res spectrum data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getHighresVelocity"><span class="type-signature"></span>getHighresVelocity( [scan])</h4>
</dt>
<dd>
<div class="description">
Returns an Object of radar velocity data for the current elevation and scan (or all scans if not provided)
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scan</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">Selected scan, or null for all scans in this elevation</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Scan's high res velocity data, or an array of the data.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="global.html#HighResData">HighResData</a></span>
|
<span class="param-type">Array.&lt;<a href="global.html#HighResData">HighResData</a>></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="getScans"><span class="type-signature"></span>getScans()</h4>
</dt>
<dd>
<div class="description">
Return the number of scans in the current elevation
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">number</span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="listElevations"><span class="type-signature"></span>listElevations()</h4>
</dt>
<dd>
<div class="description">
List all available elevations
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Array.&lt;number></span>
</dd>
</dl>
</dd>
<hr>
<dt>
<h4 class="name" id="setElevation"><span class="type-signature"></span>setElevation(elevation)</h4>
</dt>
<dd>
<div class="description">
Sets the elevation in use for get* methods
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>elevation</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">Selected elevation number</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</dl>
</article>
</section>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-3">
<div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
</div>
</div>
</div>
<div class="modal fade" id="searchResults">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Search results</h4>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<footer>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a>
on 2022-04-11T16:22:13-05:00
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
</footer>
<script src="scripts/docstrap.lib.js"></script>
<script src="scripts/toc.js"></script>
<script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
<script>
$( function () {
$( "[id*='$']" ).each( function () {
var $this = $( this );
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
} );
$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
var $this = $( this );
var example = $this.find( "code" );
exampleText = example.html();
var lang = /{@lang (.*?)}/.exec( exampleText );
if ( lang && lang[1] ) {
exampleText = exampleText.replace( lang[0], "" );
example.html( exampleText );
lang = lang[1];
} else {
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
lang = langClassMatch ? langClassMatch[1] : "javascript";
}
if ( lang ) {
$this
.addClass( "sunlight-highlight-" + lang )
.addClass( "linenums" )
.html( example.html() );
}
} );
Sunlight.highlightAll( {
lineNumbers : false,
showMenu : true,
enableDoclinks : true
} );
$.catchAnchorLinks( {
navbarOffset: 10
} );
$( "#toc" ).toc( {
anchorName : function ( i, heading, prefix ) {
return $( heading ).attr( "id" ) || ( prefix + i );
},
selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
showAndHide : false,
smoothScrolling: true
} );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
$( '.dropdown-toggle' ).dropdown();
$( "table" ).each( function () {
var $this = $( this );
$this.addClass('table');
} );
} );
</script>
<!--Navigation and Symbol Display-->
<!--Google Analytics-->
<script type="text/javascript">
$(document).ready(function() {
SearcherDisplay.init();
});
</script>
</body>
</html>