def _amira_data_to_numpy(am_data, header_dict, flip_z=True):
    Zdim = header_dict['array_dimensions']['z_dimension']
    Ydim = header_dict['array_dimensions']['y_dimension']
    Xdim = header_dict['array_dimensions']['x_dimension']
    # Strip out null characters from the string of binary values
    # Dictionary of the encoding types for AmiraMesh files
    am_format_dict = {'BINARY-LITTLE-ENDIAN': '<',
                      'BINARY': '>',
                      'ASCII': 'unknown'}
    # Dictionary of the data types encountered so far in AmiraMesh files
    am_dtype_dict = {'float': 'f4',
                     'short': 'h4',
                     'ushort': 'H4',
                     'byte': 'b'}
    # Had to split out the stripping of new line characters and conversion
    # of the original string data based on whether source data is BINARY
    # format or ASCII format. These format types require different stripping
    # tools and different string conversion tools.
    if header_dict['data_format'] == 'BINARY-LITTLE-ENDIAN':
        data_strip = am_data.strip('\n')
        flt_values = np.fromstring(
            data_strip, (am_format_dict[header_dict['data_format']] +
                         am_dtype_dict[header_dict['data_type']]))
    if header_dict['data_format'] == 'ASCII':
        data_strip = am_data.translate(None, '\n')
        string_list = data_strip.split(" ")
        string_list = string_list[0:(len(string_list)-2)]
        flt_values = np.array(
            string_list).astype(am_dtype_dict[header_dict['data_type']])
    # Resize the 1D array to the correct ndarray dimensions
    # Note that resize is in-place whereas reshape is not
    flt_values.resize(Zdim, Ydim, Xdim)
    output = flt_values
    if flip_z:
        output = flt_values[::-1, ..., ...]
    return output
Lists all available virtual machine sizes that can be used to create a
dataset/ETHPy150Open scikit-beam/scikit-beam/skbeam/io/avizo_io.py/_amira_data_to_numpy--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-compute/azure/mgmt/compute/operations/availability_sets_operations.py/AvailabilitySetsOperations.list_available_sizes