Changeset 25058


Ignore:
Timestamp:
06/18/20 00:04:23 (5 years ago)
Author:
Eric.Larour
Message:

CHG: added latlon plot for 3Dsurface meshes.

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_coastlines.m

    r24882 r25058  
    98929892        set(p,'LineWidth',getfieldvalue(options,'coast_linewidth',1));
    98939893else
    9894         [x,y,z]=AboveGround(coastlat,coastlon,mesh.r(1),1000);
    9895         hold on, p=plot3(x,y,z,'k-');
     9894        if ~strcmpi(getfieldvalue(options,'coord','xy'),'latlon'),
     9895                [x,y,z]=AboveGround(coastlat,coastlon,mesh.r(1),1000);
     9896                hold on, p=plot3(x,y,z,'k-');
     9897        else
     9898                hold on, p=plot(coastlon,coastlat,'k-');
     9899        end
    98969900        set(p,'Color',getfieldvalue(options,'coast_color','k'));
    98979901        set(p,'LineWidth',getfieldvalue(options,'coast_linewidth',1));
  • issm/trunk-jpl/src/m/plot/processmesh.m

    r21958 r25058  
    2424if strcmp(domaintype(md.mesh),'3Dsurface'),
    2525        [x y z elements is2d isplanet] = processmesh(md.mesh,options);
     26        if strcmpi(getfieldvalue(options,'coord','xy'),'latlon'),
     27                x=md.mesh.long;
     28                y=md.mesh.lat;
     29                elements=delaunay(x,y);
     30                z=md.mesh.lat; z(:)=0;
     31        end
    2632        return;
    2733end
Note: See TracChangeset for help on using the changeset viewer.