Changeset 20070
- Timestamp:
- 02/03/16 15:21:37 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/googlemaps.m
r18600 r20070 40 40 [linspace(ylim(1),ylim(1),100) linspace(ylim(1),ylim(2),100) linspace(ylim(2),ylim(2),100) linspace(ylim(2),ylim(1),100)],... 41 41 -1,0,71); 42 elseif md.mesh.epsg==26906, %UTM 6V Columbia Glacier Alaska 43 [latlist lonlist]= utm2ll(... 44 [linspace(xlim(1),xlim(2),100) linspace(xlim(2),xlim(2),100) linspace(xlim(2),xlim(1),100) linspace(xlim(1),xlim(1),100)],... 45 [linspace(ylim(1),ylim(1),100) linspace(ylim(1),ylim(2),100) linspace(ylim(2),ylim(2),100) linspace(ylim(2),ylim(1),100)],... 46 6); 47 elseif numel(md.mesh.lat)==numel(md.mesh.x), 48 latlist = md.mesh.lat; %That might work? 49 lonlist = md.mesh.long; 42 50 else 43 error('EPSG code not supported yet ');51 error('EPSG code not supported yet, and no lat long found in md.mesh'); 44 52 end 45 53 -
issm/trunk-jpl/src/m/plot/plot_googlemaps.m
r18558 r20070 25 25 xlim=getfieldvalue(options,'xlim',[min(x) max(x)]); 26 26 ylim=getfieldvalue(options,'ylim',[min(y) max(y)]); 27 if md.mesh.epsg==3413, 27 if md.mesh.epsg==3413, %UPS Greenland 28 28 [latlist lonlist]= xy2ll(... 29 29 [linspace(xlim(1),xlim(2),100) linspace(xlim(2),xlim(2),100) linspace(xlim(2),xlim(1),100) linspace(xlim(1),xlim(1),100)],... 30 30 [linspace(ylim(1),ylim(1),100) linspace(ylim(1),ylim(2),100) linspace(ylim(2),ylim(2),100) linspace(ylim(2),ylim(1),100)],... 31 31 +1,45,70); 32 elseif md.mesh.epsg==3031, 32 elseif md.mesh.epsg==3031, %UPS Antarctica 33 33 [latlist lonlist]= xy2ll(... 34 34 [linspace(xlim(1),xlim(2),100) linspace(xlim(2),xlim(2),100) linspace(xlim(2),xlim(1),100) linspace(xlim(1),xlim(1),100)],... 35 35 [linspace(ylim(1),ylim(1),100) linspace(ylim(1),ylim(2),100) linspace(ylim(2),ylim(2),100) linspace(ylim(2),ylim(1),100)],... 36 36 -1,0,71); 37 else 37 elseif md.mesh.epsg==26906, %UTM 6V Columbia Glacier Alaska 38 [latlist lonlist]= utm2ll(... 39 [linspace(xlim(1),xlim(2),100) linspace(xlim(2),xlim(2),100) linspace(xlim(2),xlim(1),100) linspace(xlim(1),xlim(1),100)],... 40 [linspace(ylim(1),ylim(1),100) linspace(ylim(1),ylim(2),100) linspace(ylim(2),ylim(2),100) linspace(ylim(2),ylim(1),100)],... 41 6); 42 elseif numel(md.mesh.lat)==numel(md.mesh.x), 38 43 latlist = md.mesh.lat; %That might work? 39 44 lonlist = md.mesh.long; 40 error('EPSG code not supported yet'); 45 else 46 error('EPSG code not supported yet, and no lat long found in md.mesh'); 41 47 end 42 48
Note:
See TracChangeset
for help on using the changeset viewer.