Property

new Sounding([options])

Parameter

Name Type Optional Description

options

 

Yes

Options.

Property

public read-only

parcelCollection  module:meteoJS/base/collection.Collection

Methods

addLevel(levelData[, options]) → module:meteoJS/sounding.Sounding

Adds/replaces Data for a certain level.

Parameters

Name Type Optional Description

levelData

module:meteoJS/sounding~levelData

 

Data to add.

options

module:meteoJS/sounding~options

Yes

Options.

Returns

module:meteoJS/sounding.Sounding This.

addLevels(levelsData[, options]) → module:meteoJS/sounding.Sounding

Adds/replaces sounding data.

Parameters

Name Type Optional Description

levelsData

Array of module:meteoJS/sounding~levelData

 

Array with data at different levels.

options

module:meteoJS/sounding~options

Yes

Options.

Returns

module:meteoJS/sounding.Sounding This.

calculateMissingData(d) → module:meteoJS/sounding~levelData

Calculates different parameters, if missing.

Parameter

Name Type Optional Description

d

module:meteoJS/sounding~levelData

 

Data.

Returns

module:meteoJS/sounding~levelData Adjusted data.

getData(pres) → (module:meteoJS/sounding~levelData or undefined)

Get the data for a specific level. Returns the levelData as passed to the constructor or addLevel.

Parameter

Name Type Optional Description

pres

float

 

Level [hPa].

Returns

(module:meteoJS/sounding~levelData or undefined) Data at a level, undefined if no data available.

getLevels() → Array of module:meteoJS/sounding~levelData

Get data for all defined levels. Upward sorted.

Returns

Array of module:meteoJS/sounding~levelData Array of all the data.

getNearestLevel(pres) → (float or undefined)

Get nearest level [hPa] with data.

Parameter

Name Type Optional Description

pres

float

 

Pressure [hPa].

Returns

(float or undefined) Level with data or undefined. [hPa]

removeLevel(pres) → module:meteoJS/sounding.Sounding

Removes the Data for a certain level (if existing).

Parameter

Name Type Optional Description

pres

float

 

Remove the data at this Level [hPa].

Returns

module:meteoJS/sounding.Sounding this.