Skip to content

Patch Centroid lon / lat #39

Open
Open
@charlie-becker

Description

The centroid lon / lat data in the netCDF patch data represents the the longitude / latitude values at the center of the patch, not the center of the object, and thus there are mis-matches between centroid lon / lat in the CSV files and netCDF files for the same storm objects.

hagelslag/bin/hsdata

Lines 642 to 645 in 57d1051

for c_var in ["lon", "lat"]:
out_file.variables["centroid_" + c_var][:] = np.concatenate([np.array(f_track.attributes[c_var])[:,
patch_radius, patch_radius]
for f_track in forecast_tracks])

Is there any reason to keep the patch-center derived lons / lats? If not, the values could be replaced using the same process to generate the centroids for the CSV file.

hagelslag/bin/hsdata

Lines 454 to 455 in 57d1051

centroid_x, centroid_y = forecast_track.center_of_mass(step)
centroid_lon, centroid_lat = proj(centroid_x, centroid_y, inverse=True)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions