GLEON / rLakeAnalyzer

An R version of Lake Analyzer
43 stars 26 forks source link

Lake Number #109

Open anmalagon opened 3 years ago

anmalagon commented 3 years ago

I'm going to calculate the lake number index, but I could not load the data. I've used the example data headers (Sparkling) and I get the following error:

Error in utils :: read.table (fPath, sep = "\ t", header = TRUE, as.is = TRUE): 'file' must be a character string or connection

I used data.frame and this time data were loaded, but doing lake number calculation, it throws this error:

Error in layer.density (0, m.d [1], wtr.mat [i,], depths, bathy $ areas, bathy $ depths): surface area cannot be zero, check bathymetry file In addition: Warning messages: 1: In min (bthD): no non-missing arguments to min; returning Inf 2: In max (bthD): no non-missing arguments to max; returning -Inf 3: In max (bthD): no non-missing arguments to max; returning -Inf

I don´t know what to do, any recommendation will be very helpful.

Thank you very much.

shburnet commented 1 year ago

I had this same issue and formatted my data and ran the code exactly as it is in the extdata folder from the RLakeAnalyzer package and was able to get the data to run. There's probably an easier way to input your own data but I have it working for the time being!