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
Name | Type | Description |
---|---|---|
width | Number | width of the DataSet in pixels |
height | Number | height of the DataSet in pixels |
bbox | Array | [west, south, east, north] |
data | TypedArray |
- Source
Methods
(static) viewFromDataSet(dataSet, bbox) → {GeoDataSet}
Create a view of a Dataset including the bounds.
Name | Type | Description |
---|---|---|
dataSet | DataSet | |
bbox | Array | [west, south, east, north] |
- Source
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
Name | Type | Default | Description |
---|---|---|---|
geoX | Number | longitude | |
geoY | Number | latitude | |
useNearest | Boolean | true |
- Source
Out Of Range Error - when it is outside of the bbox
- Type:
- Number
dzdx() → {GeoDataset}
Change in z value in terms of x. Finite difference.
- Source
- Type:
- GeoDataset
dzdy() → {GeoDataSet}
Change in z value in terms of y. Finite difference.
- Source
- Type:
- GeoDataSet
slopeAndAspect() → {SlopeAndAspect}
Create dzdx, dzdy, slope, and aspect in one function.
- Source
{dzdx, dzdy, slope, aspect}
- Type:
- SlopeAndAspect
aspect(dzdx, dzdy) → {GeoDataSet}
The aspect of each pixel in radians.
Name | Type | Description |
---|---|---|
dzdx | GeoDataset | |
dzdy | GeoDataSet |
- Source
Aspect in radians.
- Type:
- GeoDataSet
slope(dzdx, dzdy) → {GeoDataset}
Returns the slope in radians
Name | Type | Description |
---|---|---|
dzdx | GeoDataset | |
dzdy | GeoDataset |
- Source
- Type:
- GeoDataset