Changeset 740
- Timestamp:
- 06/03/09 08:48:38 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_transient_movie.m
r338 r740 16 16 end 17 17 else 18 choice=input('Which field do you want to plot? (vel/vx/vy/vz/thickness/surface/bed/temperature )','s');18 choice=input('Which field do you want to plot? (vel/vx/vy/vz/thickness/surface/bed/temperature/melting)','s'); 19 19 if ~strcmp(choice,'vel') & ~strcmp(choice,'vx') & ~strcmp(choice,'vy') & ~strcmp(choice,'vz') & ~strcmp(choice,'temperature') & ~strcmp(choice,'thickness') & ~strcmp(choice,'bed') & ~strcmp(choice,'surface') 20 20 disp('plot_transient_movie error message: input not supported yet, exiting...') … … 27 27 28 28 %loop over the time steps 29 for i=1:length(md. transient_results)30 eval(['data=md. transient_results(' num2str(i) ').' num2str(choice) ';']);29 for i=1:length(md.results.transient) 30 eval(['data=md.results.transient(' num2str(i) ').' num2str(choice) ';']); 31 31 32 32 %process data 33 33 [data isongrid]=processdata(md,data,options_structure); 34 titlestring=[choice ' at time ' num2str(md. transient_results(i).time) ' year'];34 titlestring=[choice ' at time ' num2str(md.results.transient(i).time) ' year']; 35 35 plot_unit(x,y,z,elements,data,isongrid,is2d,options_structure) 36 36 apply_options_movie(md,options_structure,titlestring); -
issm/trunk/src/m/classes/public/plot/plot_transient_results.m
r1 r740 23 23 24 24 string='plotmodel(md'; 25 for i=1:length(md. transient_results),26 string=[string ',''data'','' transient_results(' num2str(i) ').thickness'',''title'',''Thickness at time ' num2str(md.transient_results(i).time) ' a'''];25 for i=1:length(md.results.transient), 26 string=[string ',''data'',''results.transient(' num2str(i) ').thickness'',''title'',''Thickness at time ' num2str(md.results.transient(i).time) ' a''']; 27 27 end 28 28 string=[string ',''figure'',1,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');']; … … 31 31 32 32 string='plotmodel(md'; 33 for i=1:length(md. transient_results),34 string=[string ',''data'','' transient_results(' num2str(i) ').vel'',''view'',3,''title'',''Velocity at time ' num2str(md.transient_results(i).time) ' a'''];33 for i=1:length(md.results.transient), 34 string=[string ',''data'',''results.transient(' num2str(i) ').vel'',''view'',3,''title'',''Velocity at time ' num2str(md.results.transient(i).time) ' a''']; 35 35 end 36 36 string=[string ',''figure'',2,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');']; … … 39 39 40 40 string='plotmodel(md'; 41 for i=1:length(md. transient_results),42 string=[string ',''data'','' transient_results(' num2str(i) ').temperature'',''view'',3,''title'',''Temperature at time ' num2str(md.transient_results(i).time) ' a'''];41 for i=1:length(md.results.transient), 42 string=[string ',''data'',''results.transient(' num2str(i) ').temperature'',''view'',3,''title'',''Temperature at time ' num2str(md.results.transient(i).time) ' a''']; 43 43 end 44 44 string=[string ',''figure'',3,''colorbar#all'',''on'',''view'',3,''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');']; … … 47 47 48 48 string='plotmodel(md'; 49 for i=2:length(md. transient_results),50 string=[string ',''data'',md. transient_results(' num2str(i) ').thickness-md.transient_results(' num2str(i-1) ').thickness,''title'',''Delta thickness at time ' num2str(md.transient_results(i).time) ' a'''];49 for i=2:length(md.results.transient), 50 string=[string ',''data'',md.results.transient(' num2str(i) ').thickness-md.results.transient(' num2str(i-1) ').thickness,''title'',''Delta thickness at time ' num2str(md.results.transient(i).time) ' a''']; 51 51 end 52 52 string=[string ',''figure'',4,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');']; … … 55 55 56 56 string='plotmodel(md'; 57 for i=2:length(md. transient_results),58 string=[string ',''data'',md. transient_results(' num2str(i) ').vel-md.transient_results(' num2str(i-1) ').vel,''view'',3,''title'',''Delta velocity at time ' num2str(md.transient_results(i).time) ' a'''];57 for i=2:length(md.results.transient), 58 string=[string ',''data'',md.results.transient(' num2str(i) ').vel-md.results.transient(' num2str(i-1) ').vel,''view'',3,''title'',''Delta velocity at time ' num2str(md.results.transient(i).time) ' a''']; 59 59 end 60 60 string=[string ',''figure'',5,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');']; … … 63 63 64 64 string='plotmodel(md'; 65 for i=2:length(md. transient_results),66 string=[string ',''data'',md. transient_results(' num2str(i) ').temperature-md.transient_results(' num2str(i-1) ').temperature,''view'',3,''title'',''Delta temperature at time ' num2str(md.transient_results(i).time) ' a'''];65 for i=2:length(md.results.transient), 66 string=[string ',''data'',md.results.transient(' num2str(i) ').temperature-md.results.transient(' num2str(i-1) ').temperature,''view'',3,''title'',''Delta temperature at time ' num2str(md.results.transient(i).time) ' a''']; 67 67 end 68 68 string=[string ',''figure'',6,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');'];
Note:
See TracChangeset
for help on using the changeset viewer.