AMRSlice is an orthogonal slice through the data, taking all the points at the finest resolution available and then indexing them. It is more appropriately thought of as a slice ‘operator’ than an object, however, as its field and coordinate can both change.
Methods
clear_cache() | Clears out all cache, freeing memory. |
clear_data() | Clears out all data from the AMRData instance, freeing memory. |
convert(datatype) | This will attempt to convert a given unit to cgs from code units. |
get_data([fields]) | Iterates over the list of fields and generates/reads them all. |
get_field_parameter(name[, default]) | This is typically only used by derived field functions, but |
has_field_parameter(name) | Checks if a field parameter is set. |
has_key(key) | Checks if a data field already exists. |
interpolate_discretize(LE, RE, field, side) | This returns a uniform grid of points between LE and RE, |
keys() | |
reslice(coord) | Change the entire dataset, clearing out the current data and slicing at a new location. |
save_object(name[, filename]) | Save an object. |
select_grid_indices(level) | |
select_grids(level) | Return all grids on a given level. |
set_field_parameter(name, val) | Here we set up dictionaries that get passed up and down and ultimately |
shift(val) | Moves the slice coordinate up by either a floating point value, or an |
write_out(filename[, fields, format]) |
Slice along axisHow do I specify an axis?, at the coordinate coord. Optionally supply fields.
Methods
clear_cache() | Clears out all cache, freeing memory. |
clear_data() | Clears out all data from the AMRData instance, freeing memory. |
convert(datatype) | This will attempt to convert a given unit to cgs from code units. |
get_data([fields]) | Iterates over the list of fields and generates/reads them all. |
get_field_parameter(name[, default]) | This is typically only used by derived field functions, but |
has_field_parameter(name) | Checks if a field parameter is set. |
has_key(key) | Checks if a data field already exists. |
interpolate_discretize(LE, RE, field, side) | This returns a uniform grid of points between LE and RE, |
keys() | |
reslice(coord) | Change the entire dataset, clearing out the current data and slicing at a new location. |
save_object(name[, filename]) | Save an object. |
select_grid_indices(level) | |
select_grids(level) | Return all grids on a given level. |
set_field_parameter(name, val) | Here we set up dictionaries that get passed up and down and ultimately |
shift(val) | Moves the slice coordinate up by either a floating point value, or an |
write_out(filename[, fields, format]) |