GeoDataSet

new GeoDataSet(width, height, bbox, data)

Mostly the same a DataSet except it has bounds. A few methods, like slope, dzdx, dzdy, and aspect are different because they take into account the size of the bbox in meters

Parameters:
NameTypeDescription
widthNumber

width of the DataSet in pixels

heightNumber

height of the DataSet in pixels

bboxArray

[west, south, east, north]

dataTypedArray

Methods

(static) viewFromDataSet(dataSet, bbox) → {GeoDataSet}

Create a view of a Dataset including the bounds.

Parameters:
NameTypeDescription
dataSetDataSet
bboxArray

[west, south, east, north]

Returns:

GeoDataSet view of the dataset data. It is a view not a copy.

Type: 
GeoDataSet

sampleGeo(geoX, geoY, useNearest) → {Number}

Samples a pixel at a given latitude and longitude

Parameters:
NameTypeDefaultDescription
geoXNumber

longitude

geoYNumber

latitude

useNearestBooleantrue
Throws:

Out Of Range Error - when it is outside of the bbox

Returns:
Type: 
Number

dzdx() → {GeoDataset}

Change in z value in terms of x. Finite difference.

Returns:
Type: 
GeoDataset

dzdy() → {GeoDataSet}

Change in z value in terms of y. Finite difference.

Returns:
Type: 
GeoDataSet

slopeAndAspect() → {SlopeAndAspect}

Create dzdx, dzdy, slope, and aspect in one function.

Returns:

{dzdx, dzdy, slope, aspect}

Type: 
SlopeAndAspect

aspect(dzdx, dzdy) → {GeoDataSet}

The aspect of each pixel in radians.

Parameters:
NameTypeDescription
dzdxGeoDataset
dzdyGeoDataSet
Returns:

Aspect in radians.

Type: 
GeoDataSet

slope(dzdx, dzdy) → {GeoDataset}

Returns the slope in radians

Parameters:
NameTypeDescription
dzdxGeoDataset
dzdyGeoDataset
Returns:
Type: 
GeoDataset