From baa1b596eaa960c70c4b3eca2afd9cba6c225887 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 28 Mar 2024 15:49:09 -0400 Subject: [PATCH] Update tracker-funcs.jl Add lat/lon/x/y columns in case that no floes are detected --- src/tracker/tracker-funcs.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tracker/tracker-funcs.jl b/src/tracker/tracker-funcs.jl index e0f7e232..ea5482a3 100644 --- a/src/tracker/tracker-funcs.jl +++ b/src/tracker/tracker-funcs.jl @@ -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) return nothing end convertcentroid!(propdf, latlondata, colstodrop)