% Purpose % gets axis information from the data file. % % Synopsis % mexeps('inqaxis',varcode,axid) % [ax_code] = mexeps('inqaxis',varcode,axid) % [ax_code,name] = mexeps('inqaxis',varcode,axid) % [ax_code,name,frmt] = mexeps('inqaxis',varcode,axid) % [ax_code,name,frmt,units] = mexeps('inqaxis',varcode,axid) % [ax_code,name,frmt,units,type] = mexeps('inqaxis',varcode,axid) % [ax_code,name,frmt,units,type,spc] = mexeps('inqaxis',varcode,axid) % % Description % It returns spacial axis information of a variable from the data % file. The variable is refered to by its variable code, varcode, % which must be presented in the current data file. The axis is % refered to by a number, axid: 1 for x-axis; 2 for y-axis; and 3 % for z-axis. If no output argument, the result will be printed % on screen: % % axis code : name : format : units : type: spacing % % When there are 1 to 6 output arguments on right side, it returns % above information to them depending the number of output arguments. % % Examples % Open a data file and print all spacial axes information of first % variable on screen. % % currentfile = mexeps('openr','datafile.cdf'); % var_list = mexeps('varlist'); % varcode = var_list(1); % mexeps('inqaxis',varcode,1) % mexeps('inqaxis',varcode,2) % mexeps('inqaxis',varcode,3) % ... % % See Also % varlist, inqcode, inqvar %