Skip to content

Commit

Permalink
Handle surveys w/o grids
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-rohan-NOAA committed Jan 2, 2025
1 parent 396b2ea commit 89a05f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ select_design_year <- function(x, design.year = NULL, layer.type = NA) {

stopifnot("select_design_year: No DESIGN_YEAR column in x" = "DESIGN_YEAR" %in% names(x))

if(nrow(x) < 1) {

warning("select_design_year: No geometries in x.")

return(NULL)
}

survey_definition_id <- unique(x[['SURVEY_DEFINITION_ID']])

output <- NULL
Expand Down

0 comments on commit 89a05f0

Please sign in to comment.