Skip to content

Commit

Permalink
fix python scm_interp_routine used to compute ozone profile for SCM
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlewis committed Feb 28, 2024
1 parent ef5ad18 commit 92da4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exp/test_cases/column_test_case/scm_interp_routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def global_average_lat_lon(ds_in, var_name, radius=6371.e3):

var_out_dims = tuple(x for x in var_in_dims if x!='lat' and x!='lon')

ds_in[var_name+'_area_av'] = (var_out_dims, area_average)
ds_in[var_name+'_area_av'] = (var_out_dims, area_average.data)

def cell_area(dataset_in, radius = 6371.e3):

Expand Down Expand Up @@ -156,7 +156,7 @@ def cell_area(dataset_in, radius = 6371.e3):

area_array = xsize*ysize

dataset_in['area_array'] = (('lat','lon'), area_array.transpose('lat','lon'))
dataset_in['area_array'] = (('lat','lon'), area_array.transpose('lat','lon').data)

def pkbk(coord_option, nlevels, surf_res=.1, exponent=2.5, scale_heights=4.):

Expand Down

0 comments on commit 92da4a8

Please sign in to comment.