ARCCSS-extremes / climpact

Calculate the ET-SCI climate extremes indices
GNU General Public License v3.0
48 stars 31 forks source link

Error in R_nc4_open: No such file or directory #108

Open farh-an opened 1 year ago

farh-an commented 1 year ago

Dear @heroldn

I am trying to run Rscript climpact.ncdf.wrapper.r to calculate climate indices on sample netcdf data but i got following Error in R_nc4_open: No such file or directory

R version 4.2.3 (2023-03-15) -- "Shoerstop Beagle"

https://github.com/ARCCSS-extremes/climpact/

See the attached error message herewith and guide, many thanks 2 1

heroldn commented 1 year ago

Hi, have you checked that the file exists at the location specified in the error message? The message is saying that it is the wrong location. It looks like you've put a "." in front of your file path which is probably wrong too. I suspect you've modified the file location in the sample script. You shouldn't need to.

On 26/09/2023 23:50 ACST farh-an @.***> wrote:

Dear @heroldn https://github.com/heroldn

I am trying to run Rscript climpact.ncdf.wrapper.r to calculate climate indices on sample netcdf data but i got following Error in R_nc4_open: No such file or directory

R version 4.2.3 (2023-03-15) -- "Shoerstop Beagle"

https://github.com/ARCCSS-extremes/climpact/

See the attached error message herewith and guide, many thanks [2] https://user-images.githubusercontent.com/74012816/270688239-65635104-80fb-45ca-89fd-6fefdb98f525.png [1] https://user-images.githubusercontent.com/74012816/270688247-1326a997-dbb3-4c21-880a-8d9dac6b4e93.png

— Reply to this email directly, view it on GitHub https://github.com/ARCCSS-extremes/climpact/issues/108, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW3FALLHX4KSL6UU4UIEV3X4LQERANCNFSM6AAAAAA5HZ644M. You are receiving this because you were mentioned.Message ID: @.***>

farh-an commented 1 year ago

Hi @heroldn I check and correct the location for sample file and it works this time but i got another error message saying error in library(LMoFit): there is no package called "LMoFit" see attached image 1 herewith; 1

I tried to install package(LMoFit) and its dependency "sf" but I got two warning messages, see attached image below and guide, many thanks 2

farh-an commented 1 year ago

@heroldn Is there other way around to install package(LMoFit) and its dependency "sf" ?

heroldn commented 1 year ago

Can you search your linux package manager for GDAL development files. Installing that might help. e.g. I'm in Debian and there's libgdal-dev. Imagine *buntu is the same.

farh-an commented 1 year ago

Do i need to install GDAL development files inside my r1_env?

farh-an commented 1 year ago

Dear @heroldn I tried to install gdal using linux package manager see image below for installed gdal version and conflicts 4

heroldn commented 1 year ago

Is that in an environment of some sort like conda? I'm not sure how system packages interact with those. I'm not sure why it mentions pypy either. I think you'll have to get local support to install lmofit then, as I'm not familiar with your system.

On 27/09/2023 11:35 GMT farh-an @.***> wrote:

Dear @heroldn https://github.com/heroldn I tried to install gdal using linux package manager see image below for installed gdal version and conflicts [4] https://user-images.githubusercontent.com/74012816/270964232-80155b5a-8fa7-4062-b569-6fc98f130ac4.png

— Reply to this email directly, view it on GitHub https://github.com/ARCCSS-extremes/climpact/issues/108#issuecomment-1737220753, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW3FAM7ZY674F43NTSR5WDX4QFRHANCNFSM6AAAAAA5HZ644M. You are receiving this because you were mentioned.Message ID: @.***>

farh-an commented 1 year ago

Okay thanks @heroldn I will ask local support to install lmofit