Commit 84bcd75e authored by CEVAER's avatar CEVAER
Browse files

Round radii instead of truncate

parent 9ab6ebd6
......@@ -66,13 +66,13 @@ def save_fix_analysis(path, sat_file, atcf_filename, lon_eye, lat_eye, radii_qua
new_row["rad3"] = ""
new_row["rad4"] = ""
if not np.isnan(radii_nmi_quad["NE"][i_wnd + 2]) and radii_nmi_quad["NE"][i_wnd + 2] != -1:
new_row["rad1"] = int(radii_nmi_quad["NE"][i_wnd + 2])
new_row["rad1"] = round(radii_nmi_quad["NE"][i_wnd + 2])
if not np.isnan(radii_nmi_quad["SE"][i_wnd + 2]) and radii_nmi_quad["SE"][i_wnd + 2] != -1:
new_row["rad2"] = int(radii_nmi_quad["SE"][i_wnd + 2])
new_row["rad2"] = round(radii_nmi_quad["SE"][i_wnd + 2])
if not np.isnan(radii_nmi_quad["SW"][i_wnd + 2]) and radii_nmi_quad["SW"][i_wnd + 2] != -1:
new_row["rad3"] = int(radii_nmi_quad["SW"][i_wnd + 2])
new_row["rad3"] = round(radii_nmi_quad["SW"][i_wnd + 2])
if not np.isnan(radii_nmi_quad["NW"][i_wnd + 2]) and radii_nmi_quad["NW"][i_wnd + 2] != -1:
new_row["rad4"] = int(radii_nmi_quad["NW"][i_wnd + 2])
new_row["rad4"] = round(radii_nmi_quad["NW"][i_wnd + 2])
fix_radii = fix_radii.append(new_row)
if os.path.isfile(atcf_outfile):
......
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