Ignore:
Timestamp:
05/17/20 17:15:00 (5 years ago)
Author:
jdquinn
Message:

CHG: Translated MATLAB changes to Python that allow for distributing variable over partition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test244.py

    r24261 r24870  
    7373
    7474#variables
    75 md.qmu.variables.surface_mass_balanceC = normal_uncertain.normal_uncertain('scaled_SmbC', 1, 0.5)
     75md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain(
     76    'descriptor', 'scaled_SmbC',
     77    'mean', np.ones(md.qmu.numberofpartitions),
     78    'stddev', .5 * np.ones(md.qmu.numberofpartitions),
     79    'partition', md.qmu.epartition
     80    )
    7681Tmin = 273.
    7782telms = np.atleast_2d(np.min(md.smb.Ta[0:-1, :], 1))
     
    8590
    8691mint_on_partition[np.where(np.isnan(mint_on_partition))] = 10**-10
    87 md.qmu.variables.surface_mass_balanceTa = uniform_uncertain.uniform_uncertain('scaled_SmbTa', 1, 0.05)
    88 md.qmu.variables.surface_mass_balanceTa[0].lower = 0.95
    89 md.qmu.variables.surface_mass_balanceTa[0].upper = np.maximum(np.minimum(np.maximum(1.05, mint_on_partition), 0.9999), 0.0001)
     92md.qmu.variables.surface_mass_balanceTa = uniform_uncertain.uniform_uncertain(
     93    'descriptor', 'scaled_SmbTa',
     94    'lower', .95 * np.ones(md.qmu.numberofpartitions),
     95    'upper', np.maximum(np.minimum(np.maximum(1.05, mint_on_partition), 0.9999), 0.0001),
     96    'partition', md.qmu.epartition
     97    )
    9098
    9199#responses
    92 md.qmu.responses.IceVolume = response_function.response_function('IceVolume', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])
    93 md.qmu.responses.IceMass = response_function.response_function('IceMass', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])
    94 md.qmu.responses.TotalSmb = response_function.response_function('TotalSmb', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])
     100md.qmu.responses.IceVolume = response_function.response_function('descriptor','IceVolume')
     101md.qmu.responses.IceMass = response_function.response_function('descriptor','IceMass')
     102md.qmu.responses.TotalSmb = response_function.response_function('descriptor','TotalSmb')
    95103
    96104#  nond_sampling study
Note: See TracChangeset for help on using the changeset viewer.