issmdir

PURPOSE ^

ISSMDIR - Get ISSM_DIR environment variable contents.

SYNOPSIS ^

function ISSM_DIR=issmdir()

DESCRIPTION ^

ISSMDIR - Get ISSM_DIR environment variable contents.

   Usage:
      ISSM_DIR=issmdir()

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ISSM_DIR=issmdir()
0002 %ISSMDIR - Get ISSM_DIR environment variable contents.
0003 %
0004 %   Usage:
0005 %      ISSM_DIR=issmdir()
0006 
0007 [status,ISSM_DIR]=system('echo $ISSM_DIR');
0008 if status~=0,
0009     error('issmdir error message: problem when running ''echo $ISSM_DIR'' shell command');
0010 end
0011 
0012 if (isempty(ISSM_DIR)) | (length(ISSM_DIR)==1),
0013     error('issmdir error message: ''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!');
0014 end
0015 
0016 %get rid of return carriage
0017 ISSM_DIR=ISSM_DIR(1:end-1);

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003