Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lake Number #109

Open
anmalagon opened this issue Oct 29, 2020 · 1 comment
Open

Lake Number #109

anmalagon opened this issue Oct 29, 2020 · 1 comment

Comments

@anmalagon
Copy link

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants