Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Info_1D.m

Go to the documentation of this file.
00001 function [err, Info] = Info_1D(v, fname)
00002 %
00003 % [err, Info] = Info_1D(M, name);
00004 % an Info structure for a 1D file. To use with WriteBrik
00005 %
00006 % Specify name if you want Info.RootName and Info.Extension_1D to be filled out 
00007 % otherwise, you can do that on your own later.
00008 % 
00009 % see also Read_1D, BrikLoad, and BrikInfo
00010 %     Ziad S. Saad ziad@nih.gov, SSCC/NIMH/NIH/USA
00011 
00012 FuncName = 'Info_1D';
00013 err = 1;
00014 Info = [];
00015 
00016 if (isempty(v)),
00017    fprintf(2,'Error %s:\nEmpty M.\n', FuncName);
00018    return;
00019 end
00020 
00021 
00022 %some fake Info stuff
00023 if (nargin == 2),
00024    [Info.RootName, Info.Extension_1D] = Remove1DExtension(fname); 
00025 else
00026    fname = '';
00027    Info.RootName = '';
00028    Info.Extension_1D = '';
00029 end
00030 
00031 Info.TypeName = '';
00032 Info.TypeBytes = 0;
00033 Info.Orientation = '';
00034 Info.ByteOrder = '';
00035 Info.FileFormat = '1D';
00036 Info.DATASET_DIMENSIONS = [size(v, 1) 1 1 0 0];
00037 Info.DATASET_RANK = [3 size(v,2) 0 0 0 0 0 0];
00038 Info.BRICK_TYPES = [];
00039 Info.BRICK_STATS = [];
00040 Info.BRICK_FLOAT_FACS = '';
00041 Info.BYTEORDER_STRING = '';
00042 Info.ORIENT_SPECIFIC = [];
00043 Info.ORIGIN = [0.0 0.0 0.0];
00044 Info.DELTA = [1 1 1];
00045 Info.BRICK_LABS = '';
00046 Info.BRICK_KEYWORDS = '';
00047 Info.SCENE_DATA = [];
00048 Info.TYPESTRING = '';
00049 Info.IDCODE_STRING = '';
00050 Info.IDCODE_DATE = '';
00051 Info.BRICK_STATAUX = [];
00052 Info.STAT_AUX = [];
00053 Info.HISTORY_NOTE = [];
00054 Info.IDCODE_ANAT_PARENT = '';
00055 
00056 err = 0;
00057 return;
 

Powered by Plone

This site conforms to the following standards: