Skip to content

Commit

Permalink
Fixed bug in heat transport diagnostic method in EBM code.
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Apr 9, 2015
1 parent f45c284 commit 12857ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions climlab/model/ebm.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def global_mean_temperature(self):

def inferred_heat_transport( self ):
'''Returns the inferred heat transport (in PW) by integrating the TOA energy imbalance from pole to pole.'''
phi = self.phi
energy_in = self.diagnostics['net_radiation']
phi = np.deg2rad(self.lat)
energy_in = np.squeeze(self.diagnostics['net_radiation'])
return ( 1E-15*2* np.math.pi*const.a**2 *
integrate.cumtrapz(np.cos(phi)*energy_in,
x=phi, initial=0. ) )
Expand Down

0 comments on commit 12857ec

Please sign in to comment.