259 |
.def("setToZero",&escript::Data::setToZero,"After this call the object will store values of the same shape as before but all components will be zero.") |
.def("setToZero",&escript::Data::setToZero,"After this call the object will store values of the same shape as before but all components will be zero.") |
260 |
.def("interpolate",&escript::Data::interpolate,args("functionspace"),"Interpolate this object's values into a new functionspace.") |
.def("interpolate",&escript::Data::interpolate,args("functionspace"),"Interpolate this object's values into a new functionspace.") |
261 |
.def("interpolateTable", &escript::Data::interpolateFromTable2DP, |
.def("interpolateTable", &escript::Data::interpolateFromTable2DP, |
262 |
(arg("table"),arg("Amin"),arg("Astep"), arg("B"), arg("Bmin"), arg("Bstep"), arg("undef")=1.e50), |
(arg("table"),arg("Amin"),arg("Astep"), arg("B"), arg("Bmin"), arg("Bstep"), arg("undef")=1.e50, arg("check_boundaries")=false), |
263 |
"Creates a new Data object by interpolating using the source data (which are\n" |
"Creates a new Data object by interpolating using the source data (which are\n" |
264 |
"looked up in ``table``)\n``A`` must be the outer dimension on the table\n\n" |
"looked up in ``table``)\n``A`` must be the outer dimension on the table\n\n" |
265 |
":param table: two dimensional collection of values\n" |
":param table: two dimensional collection of values\n" |
270 |
":type B: `Data`\n" |
":type B: `Data`\n" |
271 |
":param Bmin: The base of locations in table for 2nd dimension\n:type Bmin: float\n" |
":param Bmin: The base of locations in table for 2nd dimension\n:type Bmin: float\n" |
272 |
":param Bstep: size of gap between each item in the table for 2nd dimension\n:type Bstep: float\n" |
":param Bstep: size of gap between each item in the table for 2nd dimension\n:type Bstep: float\n" |
273 |
|
":param check_boundaries: if true table boundaries are checked.\n" |
274 |
":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``" |
":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``" |
275 |
"\n:rtype: `Data`" |
"\n:rtype: `Data`" |
276 |
) |
) |
277 |
.def("interpolateTable", &escript::Data::interpolateFromTable1DP, |
.def("interpolateTable", &escript::Data::interpolateFromTable1DP, |
278 |
(arg("table"),arg("Amin"),arg("Astep"), arg("undef")=1.e50), |
(arg("table"),arg("Amin"),arg("Astep"), arg("undef")=1.e50, arg("check_boundaries")=false), |
279 |
"Creates a new Data object by interpolating using the source data (which are\n" |
"Creates a new Data object by interpolating using the source data (which are\n" |
280 |
"looked up in ``table``)\n\n" |
"looked up in ``table``)\n\n" |
281 |
":param table: one dimensional collection of values\n" |
":param table: one dimensional collection of values\n" |
282 |
":param Amin: The base of locations in table\n:type Amin: float\n" |
":param Amin: The base of locations in table\n:type Amin: float\n" |
283 |
":param Astep: size of gap between each item in the table\n:type Astep: float\n" |
":param Astep: size of gap between each item in the table\n:type Astep: float\n" |
284 |
":param undef: upper bound on interpolated values\n:type undef: float\n" |
":param undef: upper bound on interpolated values\n:type undef: float\n" |
285 |
|
":param check_boundaries: if true table boundaries are checked.\n" |
286 |
":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``" |
":raise RuntimeError(DataException): if the cordinates do not map into the table or if the interpolated value is above ``undef``" |
287 |
"\n:rtype: `Data`" |
"\n:rtype: `Data`" |
288 |
) |
) |