NEFSC / READ-SSB-CHAJI-Effort-Displacement---Scallop

Other
0 stars 0 forks source link

scallop_analysis bug #160

Closed mle2718 closed 2 years ago

mle2718 commented 2 years ago

@BryceMcManus-NOAA I'll send updated data momentarily, but I'm getting this error in the Spatial QAQC line that I can't troubleshoot.

spat_qaqc_out <-
+ spatial_qaqc(scallop0322MainDataTable, project = project,
+              spat = scallop0322TenMNSQRSpatTable, lon.dat = "DDLON", lat.dat = "DDLAT")
st_as_s2(): dropping Z and/or M coordinate
st_as_s2(): dropping Z and/or M coordinate
Projection does not match. The detected projection in the spatial file will be used unless epsg is specified.29 observations (0.1%) occur on land.
st_as_s2(): dropping Z and/or M coordinate
41 observations (0.1%) are outside the regulatory zones.
10 observations (0%) occur on boundary line between regulatory zones.
st_as_s2(): dropping Z and/or M coordinate
st_as_s2(): dropping Z and/or M coordinate
Joining, by = c("dist", "YEAR")Error in `dplyr::summarise()`:
! Problem while computing `..1 = dplyr::across(dplyr::all_of(value), .fns =
  match.fun(fun))`.
ℹ The error occurred in group 7: YEAR = 2016.
Caused by error in `FUN()`:
! Can't convert `..1` <table> to <table>.
Backtrace:
  1. FishSET::spatial_qaqc(...)
  6. dplyr:::summarise.grouped_df(...)
  7. dplyr:::summarise_cols(.data, dplyr_quosures(...), caller_env = caller_env())
  9. dplyr:::map(quosures, summarise_eval_one, mask = mask)
 10. base::lapply(.x, .f, ...)
 11. dplyr FUN(X[[i]], ...)
 12. 
BryceMcManus-NOAA commented 2 years ago

The error comes from a FishSET helper function. Easy fix, but you'll need to re-install FishSET. Install version 0.1.2 from the google drive.

mle2718 commented 2 years ago

that did the trick.