ocean-tracking-network / glatos

9 stars 4 forks source link

dplyr::left_join error in convert_glatos_to_att() #251

Open chrisholbrook opened 1 week ago

chrisholbrook commented 1 week ago

Error encountered with convert_glatos_to_att() when input detectionObj contains 6 million rows:

Error in dplyr::left_join() at glatos/R/util-convert_glatos_to_att.r:115:3: ! This join would result in more rows than dplyr can handle.

# dtc_file is a GLATOS detection export csv file (from GLATOS data portal)
# rcv_file is a GLATOS receiver locations csv file (from GLATOS data portal)

detectionObj <- read_glatos_detections(dtc_file)
receiverObj <- read_glatos_receivers(rcv_file)

dtc_att <- convert_glatos_to_att(detectionObj, 
                                 receiverObj, 
                                 crs = sf::st_crs(4326))

image