Skip to content

Commit

Permalink
explicit float
Browse files Browse the repository at this point in the history
  • Loading branch information
acordonez committed Aug 17, 2023
1 parent 5ccf8dc commit 371c3f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pcmdi_metrics/mean_climate/mean_climate_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
res=target_grid.split("x")
lat_res=float(res[0])
lon_res=float(res[1])
start_lat=-90+lat_res/2
start_lon=0
end_lat = 90-lat_res/2
end_lon = 360-lon_res
nlat = ((end_lat - start_lat) * 1/lat_res) + 1
nlon = ((end_lon - start_lon) * 1/lon_res) + 1
start_lat=-90.+lat_res/2
start_lon=0.
end_lat = 90.-lat_res/2
end_lon = 360.-lon_res
nlat = ((end_lat - start_lat) * 1./lat_res) + 1
nlon = ((end_lon - start_lon) * 1./lon_res) + 1
t_grid=xc.create_uniform_grid(start_lat,end_lat,lat_res,start_lon,end_lon,lon_res)
if debug:
print('type(t_grid):', type(t_grid)) # Expected type is 'xarray.core.dataset.Dataset'
Expand Down

0 comments on commit 371c3f1

Please sign in to comment.