Commit e3b8ae8c authored by CEVAER's avatar CEVAER

Fixed issue preventing conversion from range 0:360 to -180:180

parent 04b550df
......@@ -271,10 +271,11 @@ def extract_write_cyclone_data(dataset, kept_track_points, filename, output_path
new_wind_col = "wind_speed"
sel = sel.rename_vars({wind_col_name: new_wind_col})
footprint_polyg = compute_footprint(sel, new_wind_col)
# Converting lon from 0;360 range to -180;180
sel[lon_col_name] = deg180(sel[lon_col_name])
footprint_polyg = compute_footprint(sel, new_wind_col)
sel.attrs["footprint"] = dumps(footprint_polyg)
output_filename = filename_format.replace("<time>", track_point['date'].strftime('%Y_%m_%d_%H_%M_%S'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment