Skip to content

Commit

Permalink
interp at same precision as dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyas committed Jul 23, 2024
1 parent 91a3cd4 commit cbe6e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ufs2arco/fv3dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def calc_pressure_interfaces(self, pressfc) -> xr.DataArray:
prsi (xr.DataArray): 3D pressure field (or 4D if input has time) at vertical grid interfaces (Pa)
"""

return self.ak + pressfc*self.bk
return self.ak.astype(pressfc.dtype) + pressfc*self.bk.astype(pressfc.dtype)

def calc_pressure_thickness(self, prsi) -> xr.DataArray:
"""Compute pressure thickness at each vertical level
Expand Down

0 comments on commit cbe6e00

Please sign in to comment.