Utility functions for analyze-like formats
digraph inheritancef6800d3ac5 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "Recoder" [shape=ellipse,URL="nibabel.volumeutils.Recoder.html#nibabel.volumeutils.Recoder",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "DtypeMapper" [shape=ellipse,URL="nibabel.volumeutils.DtypeMapper.html#nibabel.volumeutils.DtypeMapper",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }
Functions
allopen(fname, *args, **kwargs) | Generic file-like object open |
apply_read_scaling(arr[, slope, inter]) | Apply scaling in slope and inter to array arr |
array_from_file(shape, in_dtype, infile[, ...]) | Get array from file with specified shape, dtype and file offset |
array_to_file(data, fileobj[, out_dtype, ...]) | Helper function for writing arrays to disk |
best_write_scale_ftype(arr[, slope, inter, ...]) | Smallest float type to contain range of arr after scaling |
better_float_of(first, second[, default]) | Return more capable float type of first and second |
finite_range(arr) | Return range (min, max) of finite values of arr |
int_scinter_ftype(ifmt[, slope, inter, default]) | float type containing int type ifmt * slope + inter |
make_dt_codes(codes_seqs) | Create full dt codes Recoder instance from datatype codes |
pretty_mapping(mapping[, getterfunc]) | Make pretty string from mapping |
rec2dict(rec) | Convert recarray to dictionary |
seek_tell(fileobj, offset) | Seek in fileobj or check we’re in the right place already |
shape_zoom_affine(shape, zooms[, x_flip]) | Get affine implied by given shape and zooms |
working_type(in_type[, slope, inter]) | Return array type from applying slope, inter to array of in_type |
write_zeros(fileobj, count[, block_size]) | Write count zero bytes to fileobj |
Classes
DtypeMapper() | Specialized mapper for numpy dtypes |
Recoder(codes[, fields, map_maker]) | class to return canonical code(s) from code or aliases |