repart-scidbst: Repartion a scidbst array

Description Usage Arguments Value Note See Also Examples

Description

Repartions a scidb array with new chunk and overlap sizes. It will move the values into new chunks.

Usage

1
2
## S4 method for signature 'scidbst'
repart(x, schema, upper, chunk, overlap)

Arguments

x

the scidbst array

schema

The new schema as a string

upper

A vector of upper boundaries for the array

chunk

A vector of chunksizes for each dimension

overlap

A vector of chunk overlaps for the repartitioned array

Value

scidbst array with modified chunks

Note

This function might take a while, because all data values need to be moved (restored) accordingly. You might either state a valid schema parameter or build a schema from the parameters "upper", "chunk" and "overlap".

See Also

repart

Examples

1
2
3
4
5
6
7
8
## Not run: 
   scidbconnect()
   trmm.sub = scidbst("trmm_sub")

   # repartition the array by stating a new schema with the same attributes and dimensions
   trmm.reparted = repart(trmm.sub,schema="<band1:double,dimy:double,dimx:double,dimt:double>[y=0:399,30,1,x=0:1439,30,1,t=0:*,365,6]")

## End(Not run)

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