Changeset 13789
- Timestamp:
- 10/22/12 13:35:40 (12 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/inversions/misfit.m ¶
r13008 r13789 13 13 x=md.mesh.x; 14 14 y=md.mesh.y; 15 vx=md.initialization.vx; 16 vy=md.initialization.vy; 15 %vx=md.initialization.vx; 16 %vy=md.initialization.vy; 17 vx=md.results.DiagnosticSolution.Vx; 18 vy=md.results.DiagnosticSolution.Vy; 17 19 vx_obs=md.inversion.vx_obs; 18 20 vy_obs=md.inversion.vy_obs; … … 21 23 x=md.mesh.x2d; 22 24 y=md.mesh.y2d; 23 vx=project2d(md,md.initialization.vx,md.mesh.numberoflayers); 24 vy=project2d(md,md.initialization.vy,md.mesh.numberoflayers); 25 %vx=project2d(md,md.initialization.vx,md.mesh.numberoflayers); 26 %vy=project2d(md,md.initialization.vy,md.mesh.numberoflayers); 27 vx=project2d(md,md.results.DiagnosticSolution.Vx,md.mesh.numberoflayers); 28 vy=project2d(md,md.results.DiagnosticSolution.Vy,md.mesh.numberoflayers); 25 29 vx_obs=project2d(md,md.inversion.vx_obs,md.mesh.numberoflayers); 26 30 vy_obs=project2d(md,md.inversion.vy_obs,md.mesh.numberoflayers); -
TabularUnified issm/trunk-jpl/src/m/plot/northarrow.m ¶
r13009 r13789 74 74 xN=max([A(1) D(1) E(1) F(1) G(1)])+ratio/3*abs(lengtharrow); 75 75 yN=mean([A(2) F(2) H(2)]); 76 text(xN,yN,'N orth','FontSize',fontsize,'FontWeight','b');76 text(xN,yN,'N','FontSize',fontsize,'FontWeight','b'); -
TabularUnified issm/trunk-jpl/startup.py ¶
r13744 r13789 16 16 raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!') 17 17 18 #Now add all issm code paths necessary to run issm smoothly. 19 #We capture the error output, so that we can warn the user to update 20 #the variable ISSM_DIR in this file, in case it is not correctly setup. 21 22 #ISSM path. Go through src/py and load everything we find that looks like a python file 23 for root,dirs,files in os.walk(ISSM_DIR+ '/src/py'): 24 if '.svn' in dirs: 25 dirs.remove('.svn') 26 for file in files: 27 if file.find(".py") != -1: 28 if file.find(".pyc") == -1: 29 #add to path 30 sys.path.append(root) 31 file=os.path.splitext(file)[0] 32 #__import__(file) 33 18 #Go through src/m and append any directory that contains a *.py file to PATH 34 19 for root,dirs,files in os.walk(ISSM_DIR+ '/src/m'): 35 20 if '.svn' in dirs: … … 38 23 if file.find(".py") != -1: 39 24 if file.find(".pyc") == -1: 40 #add to path 41 sys.path.append(root) 42 file=os.path.splitext(file)[0] 43 #__import__(file) 25 if root not in sys.path: 26 sys.path.append(root) 44 27 45 28 sys.path.append(ISSM_DIR + '/lib')
Note:
See TracChangeset
for help on using the changeset viewer.