@@ -217,7 +217,7 @@ def zap_zero_or_one(vals, eps=1e-12, verbose=False):
217217
218218
219219def translation (dx = 0 , dy = 0 ):
220- res = np .eye (4 , dtype = np .float32 )
220+ res = np .eye (4 , dtype = np .float64 )
221221 res [[0 , 1 ], 3 ] = dx , dy
222222 return res
223223
@@ -230,7 +230,7 @@ def rotation(angle):
230230 [np .cos (angle ), - np .sin (angle )],
231231 [np .sin (angle ), np .cos (angle )],
232232 ],
233- dtype = np .float32 ,
233+ dtype = np .float64 ,
234234 )
235235 )
236236 return res
@@ -712,7 +712,7 @@ def rotation(angle):
712712 ],
713713 ],
714714 ],
715- dtype = np .float32 ,
715+ dtype = np .float64 ,
716716)
717717ico_20_centers = np .array (
718718 [
@@ -737,7 +737,7 @@ def rotation(angle):
737737 [- 0.5884910224298405 , 0.5302967343924689 , 0.06276480180379439 ],
738738 [- 0.08682595643253764 , 0.3823838837835094 , - 0.6911725899118975 ],
739739 ],
740- dtype = np .float32 ,
740+ dtype = np .float64 ,
741741)
742742
743743
@@ -774,7 +774,7 @@ def rotation(angle):
774774 a .T @ np .linalg .inv (b .T )
775775 for i , (a , b ) in enumerate (zip (ico_basis , airocean_basis ))
776776 ],
777- dtype = np .float32 ,
777+ dtype = np .float64 ,
778778 )
779779)
780780ico_air_trans = zap_zero_or_one (
@@ -783,7 +783,7 @@ def rotation(angle):
783783 b .T @ np .linalg .inv (a .T )
784784 for i , (a , b ) in enumerate (zip (ico_basis , airocean_basis ))
785785 ],
786- dtype = np .float32 ,
786+ dtype = np .float64 ,
787787 )
788788)
789789
0 commit comments