Ignore:
Timestamp:
02/08/21 14:40:10 (4 years ago)
Author:
jdquinn
Message:

CHG: Reordering of steps; added caxis bounds to sensitivity plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/UncertaintyQuantification/runme.m

    r25986 r25987  
    11%PIG Uncertainty Quantification Tutorial
    2 steps=[1];
    3 
    4 if any(steps==1) 
     2steps=[1:7];
     3
     4if any(steps==1)
    55        disp('   Step 1: plot flux gates');
    66
     
    2828                '8','9','10','11','12','13'},...
    2929                'textposition',textpositions);
    30 end 
    31 
    32 if any(steps==2) 
     30end
     31
     32if any(steps==2)
    3333        disp('   Step 2: compute cross overs from CRESIS');
    3434
     
    5858
    5959        save Models/PIG.CrossOvers DeltaHH
    60 end 
    61 
    62 if any(steps==3) 
     60end
     61
     62if any(steps==3)
    6363        disp('   Step 3: sampling analysis');
    6464
     
    141141
    142142        %Dakota runs in parallel with a master/slave configuration.
    143         % At least 2 cpu's are needed to run the UQ
     143        % At least 2 CPUs are needed to run the UQ
    144144        md.qmu.params.evaluation_scheduling='master';
    145145        md.qmu.params.processors_per_evaluation=md.cluster.np-1;
     
    150150
    151151        save ./Models/PIG.Sampling md;
    152 end
    153 
    154 if any(steps==4)
    155         disp('   Step 4: sensitivity analysis');
     152end
     153
     154if any(steps==4)
     155        disp('   Step 4: plot partition');
     156
     157        %load model
     158        md = loadmodel('./Models/PIG.Sampling');
     159
     160        plotmodel(md,'data','mesh','partition',partition,...
     161        'linewidth',2, 'axis#all','image','unit','km','colorbar','off',...
     162        'title','Partition Edges on ISSM mesh','grid','on');
     163end
     164
     165if any(steps==5)
     166        disp('   Step 5: sensitivity analysis');
    156167
    157168        %load model
     
    231242
    232243        %Dakota runs in parallel with a master/slave configuration.
    233         % At least 2 cpu's are needed to run the UQ
     244        % At least 2 CPUs are needed to run the UQ
    234245        md.qmu.params.evaluation_scheduling='master';
    235246        md.qmu.params.processors_per_evaluation=md.cluster.np-1;
     
    242253
    243254        save ./Models/PIG.Sensitivity md;
    244 end
    245 
    246 if any(steps==5)
    247         disp('   Step 5: plot partition');
    248 
    249         %load model
    250         md = loadmodel('./Models/PIG.Sampling');
    251 
    252         plotmodel(md,'data','mesh','partition',partition,...
    253         'linewidth',2, 'axis#all','image','unit','km','colorbar','off',...
    254         'title','Partition Edges on ISSM mesh','grid','on');
    255 end
    256 
    257 if any(steps==6)
     255end
     256
     257if any(steps==6)
    258258        disp('   Step 6: plot histogram');
    259259
     
    272272        'xlabelplt','M (Gt/yr)','ylabelplt','F','FontSize',8,'FaceColor',...
    273273        'none','EdgeColor','red');
    274 
    275 end
    276 
    277 if any(steps==7)
     274end
     275
     276if any(steps==7)
    278277        disp('   Step 7: plot sensitivity');
    279278
     
    295294                'expstyle#all','b-','linewidth#all',2,...
    296295                'nlines',3,'ncols',1, 'axis#all','image',...
     296                'caxis#1',[0 150],'caxis#2',[-20 0],'caxis#3',[-25 0],...
    297297                'colorbar#all','on','colorbarfontsize#all',10,...
    298298                'colorbartitle#1','S_{H}', 'colorbartitle#2','S_{\alpha}',...
     
    313313                'colorbartitle#3','If_{B}','unit#all','km','figure',2,...
    314314                'title','Importance Factors: H, \alpha, B');
    315 end 
     315end
Note: See TracChangeset for help on using the changeset viewer.