File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/py_eddy_tracker/dataset Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,8 @@ def setup_coordinates(self):
424
424
x_name , y_name = self .coordinates
425
425
if self .is_centered :
426
426
logger .info ("Grid center" )
427
- self .x_c = self .vars [x_name ]
428
- self .y_c = self .vars [y_name ]
427
+ self .x_c = self .vars [x_name ]. astype ( 'float64' )
428
+ self .y_c = self .vars [y_name ]. astype ( 'float64' )
429
429
430
430
self .x_bounds = concatenate ((self .x_c , (2 * self .x_c [- 1 ] - self .x_c [- 2 ],)))
431
431
self .y_bounds = concatenate ((self .y_c , (2 * self .y_c [- 1 ] - self .y_c [- 2 ],)))
@@ -437,8 +437,8 @@ def setup_coordinates(self):
437
437
self .y_bounds [- 1 ] -= d_y [- 1 ] / 2
438
438
439
439
else :
440
- self .x_bounds = self .vars [x_name ]
441
- self .y_bounds = self .vars [y_name ]
440
+ self .x_bounds = self .vars [x_name ]. astype ( 'float64' )
441
+ self .y_bounds = self .vars [y_name ]. astype ( 'float64' )
442
442
443
443
if len (self .x_dim ) == 1 :
444
444
self .x_c = self .x_bounds .copy ()
You can’t perform that action at this time.
0 commit comments