Changeset 19935
- Timestamp:
- 01/07/16 10:10:31 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_manager.js
r19934 r19935 10 10 checkplotoptions(md,options); 11 11 //get data to be displayed 12 data=options.getfieldvalue('data');12 var data=options.getfieldvalue('data'); 13 13 14 14 //standard plot: initialize open Gl for each canvas, if needed: -
issm/trunk-jpl/src/m/plot/radarpower.m
r19894 r19935 36 36 %figure out if we should go look for Greenland or Antarctica geotiff, or if user provided one. 37 37 if ~exist(options,'overlay_image'), 38 if md.mesh.epsg==3413, 38 if md.mesh.epsg==3413, %Greenland 39 %old code {{{ 39 40 %if ~exist(['/u/astrid-r1b/ModelData/MOG/mog150_greenland_map.jpg']), 40 41 % error(['radarpower error message: file ' '/u/astrid-r1b/ModelData/MOG/mog150_greenland_map.jpg not found.']); … … 68 69 %md.radaroverlay.pwr=double(flipud(im(1:pixelskip:end,1:pixelskip:end))); 69 70 %md.radaroverlay.x=(xmin:(xmax-xmin)/(size(md.radaroverlay.pwr,2)-1):xmax); 70 %md.radaroverlay.y=(ymin:(ymax-ymin)/(size(md.radaroverlay.pwr,1)-1):ymax); 71 %md.radaroverlay.y=(ymin:(ymax-ymin)/(size(md.radaroverlay.pwr,1)-1):ymax); % }}} 71 72 if ~exist(options,'geotiff_name'), 72 73 if highres, … … 107 108 system('rm -rf ./temp.tif'); 108 109 end 109 elseif md.mesh.epsg==3031, 110 elseif md.mesh.epsg==3031, %Antarctica 110 111 if ~exist(options,'geotiff_name'), 111 112 if highres, … … 135 136 md.radaroverlay.y=(y0:(y1-y0)/(size(md.radaroverlay.pwr,1)-1):y1); 136 137 137 %Erase image138 system('rm -rf ./temp.tif');139 138 %Erase image or keep it? 140 139 if ~getfieldvalue(options,'keep_image',0), … … 174 173 175 174 %Was a triangulation requested for the area of the image that is not covered by the mesh? 176 if getfieldvalue(options,'outertriangulation','yes'),175 if strcmpi(getfieldvalue(options,'outertriangulation','no'),'yes'), 177 176 178 177 %create expfile that is a box controlled by xlim and ylim, with a hole defined by the mesh outer segments. … … 190 189 box(2).y=[box(2).y; box(2).y(1)]; 191 190 192 box(2).x=flipud(box(2).x); 193 box(2).y=flipud(box(2).y); 191 if strcmpi(getfieldvalue(options,'outertriangulationflip','no'),'yes'), 192 box(2).x=flipud(box(2).x); 193 box(2).y=flipud(box(2).y); 194 end 194 195 195 196 %write contour to file … … 198 199 %mesh: 199 200 maxarea=max(GetAreas(md.mesh.elements,md.mesh.x,md.mesh.y)); 200 outermd=triangle(model(),'./outertriangulation.exp', maxarea);201 outermd=triangle(model(),'./outertriangulation.exp',sqrt(maxarea)); 201 202 202 203 %save the triangulation: -
issm/trunk-jpl/src/m/plot/slider.js
r19909 r19935 16 16 precision=options.getfieldvalue('precision',3); 17 17 step=options.getfieldvalue('step',1); 18 slidersdiv=options.getfieldvalue('slidersdiv','#sliders'); 18 19 19 $('<div id="slider_'+slidername+'"></div>').appendTo( '#sliders');20 $('<div id="info_'+slidername+'">'+startmessage[0]+initialvalue.toString()+startmessage[1]+'</div>').appendTo( '#sliders');20 $('<div id="slider_'+slidername+'"></div>').appendTo(slidersdiv); 21 $('<div id="info_'+slidername+'">'+startmessage[0]+initialvalue.toString()+startmessage[1]+'</div>').appendTo(slidersdiv); 21 22 var info=$('#info_'+slidername); 22 23 $('#slider_'+slidername).slider({
Note:
See TracChangeset
for help on using the changeset viewer.