@@ -152,7 +152,7 @@ def get_center_information(center: str = "WMO") -> Dict[str, Union[str, None]]:
152152 "pressure" : centers_config_params [center ]["id" ] + "_pres" ,
153153 "maxwinds" : centers_config_params [center ]["id" ] + "_wind" ,
154154 "rmw" : centers_config_params [center ]["id" ] + "_rmw"
155- if center in ["usa " , "reunion " , "bom " ]
155+ if center in ["USA " , "REUNION " , "BOM " ]
156156 else None ,
157157 "dist2land" : "dist2land" ,
158158 }
@@ -228,8 +228,10 @@ def check_and_plot_track_data(track_data: xr.Dataset) -> plt.Figure:
228228 axes [3 ].set_title ("Radii of max winds [nmile]" , fontweight = "bold" )
229229
230230 # plot attributes
231- for ax in axes :
231+ for i , ax in enumerate ( axes ) :
232232 ax .legend (loc = "upper left" )
233+ if i > 0 :
234+ ax .set_xticklabels (ax .get_xticklabels (), rotation = 45 )
233235
234236 return fig
235237
@@ -997,8 +999,8 @@ def historic_track_interpolation(
997999 # select Pmin-Wmax polynomial fitting coefficients (IBTrACS center,basin)
9981000 xds_coef = ibtracs_fit_pmin_wmax ()
9991001 coefs = xds_coef .sel (
1000- center = st_center , # .encode("utf-8")
1001- basin = st_basin , # .astype("bytes")
1002+ center = st_center .encode ("utf-8" ),
1003+ basin = st_basin .astype ("bytes" ),
10021004 ).coef .values [:]
10031005
10041006 p1 , p2 , p3 , p4 = coefs [:, 0 ], coefs [:, 1 ], coefs [:, 2 ], coefs [:, 3 ]
0 commit comments