Skip to content

Commit

Permalink
Update tracker-funcs.jl
Browse files Browse the repository at this point in the history
Add lat/lon/x/y columns in case that no floes are detected
  • Loading branch information
danielmwatkins authored Mar 28, 2024
1 parent 24e59b8 commit baa1b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tracker/tracker-funcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ Convert the floe properties from pixels to kilometers and square kilometers wher
function converttounits!(propdf, latlondata, colstodrop)
if nrow(propdf) == 0
dropcols!(propdf, colstodrop)
insertcols!(propdf, :latitude=>Float64[], :longitude=>Float64[], :x=>Float64, :y=>Float64)

Check warning on line 536 in src/tracker/tracker-funcs.jl

View check run for this annotation

Codecov / codecov/patch

src/tracker/tracker-funcs.jl#L536

Added line #L536 was not covered by tests
return nothing
end
convertcentroid!(propdf, latlondata, colstodrop)
Expand Down

0 comments on commit baa1b59

Please sign in to comment.