Changeset 19304
- Timestamp:
- 04/23/15 11:05:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-ad2/src/m/plot/plot_gl.m
r18356 r19304 52 52 %zoom 53 53 replacestringinfile('./generic/editables.js','initialZoomFactor = -.20;',['initialZoomFactor = ' num2str(getfieldvalue(options,'zoom',-.25)) ';']); 54 54 55 56 %initialize model: 57 model.title=title; 58 model.initialZoomFactor=getfieldvalue(options,'zoom',-.25); 59 60 %Deal with contour {{{ 61 62 contour_lat=md.mesh.lat(md.mesh.segments(:,1)); 63 contour_long=md.mesh.long(md.mesh.segments(:,1)); 64 contour_surface=md.geometry.surface(md.mesh.segments(:,1)); 65 66 R=6371000*ones(length(contour_surface),1)+scaling_factor*contour_surface; 67 68 contourx = R .* cosd(contour_lat) .* cosd(contour_long); 69 contoury = R .* cosd(contour_lat) .* sind(contour_long); 70 contourz = R .* sind(contour_lat); 71 72 model.contourx=contourx; 73 model.contoury=contoury; 74 model.contourz=contourz; 75 76 %}}} 55 77 %Deal with mesh and results {{{ 56 78 … … 68 90 z = R .* sind(lat); 69 91 70 %initialize model:71 model.title='Brunt Ice Shelf';72 92 73 93 %Deal with triangulation: … … 110 130 111 131 %Write model to javascript database file: 112 writejsfile([database 'brunt.js'],model,'brunt')132 writejsfile([database directory '.js'],model,directory); 113 133 %}}} 114 134
Note:
See TracChangeset
for help on using the changeset viewer.