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 |
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 |
calculate_scale(data, out_dtype, allow_intercept) | Calculate scaling and optional intercept for data |
can_cast(in_type, out_type[, has_intercept, ...]) | Return True if we can safely cast in_type to out_type |
finite_range(arr) | Return range (min, max) of finite values of arr |
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 |
scale_min_max(mn, mx, out_type, allow_intercept) | Return scaling and intercept min, max of data, given output type |
shape_zoom_affine(shape, zooms[, x_flip]) | Get affine implied by given shape and zooms |
Classes
DtypeMapper() | Specialized mapper for numpy dtypes |
Recoder(codes[, fields, map_maker]) | class to return canonical code(s) from code or aliases |