subset-scidbst-method: Subset / Filter method for scidbst objects

Description Usage Arguments Value Note See Also Examples

Description

This function wraps scidbs subset function for scidbst objects. Internally, scidb uses its filter function to create the subset. To formulate the filter expression, please have a look at the scidb documentation (subset.scidb). Since scidbs filter function is used, the resulting array will probably be sparse. Out of convenience the subset operation can also be used with filter instead of subset.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'scidbst'
subset(x, ...)

## S4 method for signature 'scidbst'
subset(x, ...)

## S4 method for signature 'scidbst'
filter(x, ...)

Arguments

x

scidbst object

...

filter expression

Value

a scidbst object

Note

It is recommended to use the string based SciDB filter syntax.

See Also

subset.scidb

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
scidbconnect()
ls7_ndvi = scidbst("LS7_BRAZIL_NDVI")

#using subset
ls7_ndvi_gr05 = subset(ls7_ndvi, "NDVI > 0.5")

# using filter
ls7_ndvi_sm05 = filter(ls7_ndvi, "NDVI < 0.5 and height > 1500")

## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.