db.grid.refine {RGeostats} | R Documentation |

Duplicate a Grid Db, refining or dividing the number of meshes

db.grid.refine(dbgrid, nmult, flag.refine = TRUE, flag.copy=FALSE)

`dbgrid` |
The |

`nmult` |
The vector giving the multipliers. The dimension of this vector must be equal to the space dimension. The number of grid meshes along the i-th dimension must be either divided or multiplied by 'nmult[i]', according to 'flag.refine'. The value of the grid mesh is modified consistently so as the final and the initial grid cover the same area. |

`flag.refine` |
When TRUE, the resulting grid is finer than the initial one: there are more grid nodes, and the grid mesh is smaller. When FALSE, the resulting grid is coarser then the initial one: there are less grid nodes, and the grid mesh is larger. |

`flag.copy` |
When TRUE, all the variables are copied from the input to the output file. Moreover, the new variables keep the same 'name' and 'locator' in the output file, as they had in the input file. |

A `db-class`

of grid type.

[Package *RGeostats* version 11.0.6 Index]