Changeset 22701
- Timestamp:
- 04/19/18 19:57:49 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_gridded.m
r21828 r22701 51 51 image_rgb = ind2rgb(uint16((data_grid - data_min)*(length(map)/(data_max-data_min))),map); 52 52 if exist(options,'shaded'), 53 54 if exist(options,'dem'), 55 dem_grid=InterpFromMeshToGrid(elements,x,y,getfieldvalue(options,'dem'),x_m,y_m,NaN); 56 else 57 dem_grid=data_grid_save; 58 end 53 59 a = -45; 54 60 scut = 0.2; 55 61 c = 1; 56 62 % computes lighting from elevation gradient 57 [fx,fy] = gradient(d ata_grid_save,x_m,y_m);63 [fx,fy] = gradient(dem_grid,x_m,y_m); 58 64 fxy = -fx*sind(a) - fy*cosd(a); 59 65 clear fx fy % free some memory...
Note:
See TracChangeset
for help on using the changeset viewer.