aemon-j / LakeEnsemblR

An R package that facilitates multi-model ensembles for lake thermodynamics. Also includes tools for calibration, sensitivity analysis and data visualization.
GNU General Public License v2.0
31 stars 18 forks source link

Issue on Ubuntu machine: Error in R_nc4_open: No such file or directory. #279

Open Liluoq opened 3 months ago

Liluoq commented 3 months ago

I followed the installation instructions on this GitHub repo on a Ubuntu machine. However, I get this error when running the example given in this repo. Why, how can I solve this? Thanks in advance! ...... Loading water temperature observations...[2024-03-23 07:35:51] Finished loading water temperature observations![2024-03-23 07:35:51] Running models... (Have you tried parallelizing?) [2024-03-23 07:35:51] FLake does not support simulation of changing water level. FLake run is complete! [2024-03-23 07:35:52] GLM run is complete! [2024-03-23 07:35:52] Error in R_nc4_open: No such file or directory Error in nc_open(file, readunlim = TRUE) : Error in nc_open trying to open file ./GLM/output/output.nc (return_on_error= FALSE )

Liluoq commented 3 months ago

I am using R 4.2.2 and LakeEnsemblR 1.2.6

robertladwig commented 3 months ago

Hi Liluoq,

It seems that GLM failed to run. Can you try running it independently, ie, run_glm(), to see if it produces any output? Alternatively you can run the ensemble without GLM. We're always struggling to provide a working GLM executable for all Linux operating systems. To pinpoint the problem, you could just load GLM3r and check what happens if you try to run your files using the provided executables.

Cheers, Robert

Liluoq commented 3 months ago

Hi, Robert,

Thanks for your reply! I tried running without GLM, and it was good. I will try to run GLM independently later today and provide feedback then.

In addition, I wonder if the GLM in the docker image differs from the latest one. If they are identical, maybe I can use this docker image you provided to run GLM separately.