Home > Applications > Horace > @sqw > is_sqw_type_file.m

iFit/is_sqw_type_file

PURPOSE ^

Determine if file contains data of an sqw-type object or dnd-type sqw object

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Determine if file contains data of an sqw-type object or dnd-type sqw object
 
   >> [sqw_type, ndims, data_source, mess] = is_sqw_type_file(sqw, infile)

 Input:
 --------
   w           Dummy sqw object, whose sole purpose is to get to this function
   infile      File name, character array of file names, or cellstr of file names

 Output:
 --------
   sqw_type    =true  if sqw-type contents; =false if dnd-type contents (array)
   ndims       Number of dimensions (array if more than one file)
   filename    Cell array of file names (even if only one file, this is still a cell array)
   mess        Error message; blank if no errors, non-blank otherwise
%   Overloaded methods:
      sqw/is_sqw_type_file
      sqw/is_sqw_type_file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1