NOAA-OWP / hyAggregate

Develop aggregated hydrologic and hydraulic networks
Other
2 stars 1 forks source link

Error: vector memory exhausted (limit reached?) #2

Closed mikejohnson51 closed 2 years ago

mikejohnson51 commented 2 years ago

We are getting a memory limit error in VPU 10L, during second call of prep_for_ngen --> add_hydroseq:

aggregate_network_to_distribution(
    gf = g01,
    outfile        = g02,
    routelink_path = get_routelink_path(),
    overwrite      = FALSE
  )

#> INFO [2022-07-20 12:50:37] Processing 10L
#> INFO [2022-07-20 12:50:37] refactor_10L.gpkg --> ngen_10L.gpkg
#> INFO [2022-07-20 12:53:24] Merged to idealized catchment size of 10 sqkm
#> INFO [2022-07-20 12:55:01] Forced aggregation of catchments less then 3 sqkm and flowpaths shorter then 1 km.
Error: vector memory exhausted (limit reached?)
mikejohnson51 commented 2 years ago

Solution: ensuring that sf class attributes are dropped!

mikejohnson51 commented 2 years ago

see USGS-R/nhdplusTools/issues/290