Skip to content

Commit

Permalink
ensure variable is 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
theabro committed Oct 6, 2021
1 parent eabe218 commit 3489423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/convert_pp2nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def convert_units(cube):
divcube = cube / density
cube.data = divcube.data

# ensure that cube data is 32-bit
cube.data = np.float32(cube.data)

return cube

def mask_outside_valid_range(cube):
Expand Down
2 changes: 1 addition & 1 deletion src/global_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from datetime import datetime
import uuid

data_version='20210924'
data_version='20211006'

class global_attrs():
def __init__(self, suiteid, variable_name, iris_version, CV, member=1, table='Amon', expt_id='refD1', grid_label='gn', source_type='AER AGCM CHEM', model_name='UKESM1-StratTrop'):
Expand Down

0 comments on commit 3489423

Please sign in to comment.