Closed farh-an closed 10 months ago
Hi @heroldn,
I was trying to run the sample file of climpact for the historical and I got the error
error in create.indices.from.files(infiles, outdir, file.template, author.data, : unused arguments (root.dir = root.dir, ehfdef = EHF_DEF, wsdin_n = 5, csdin_n = 5, hddheatn_n = 18, cddcoldn_n = 18, gddgrown_n = 10, rxnday_n = 7, rnnmm_n = 30, ntxntn_n = 3, ntxbntnb_n = 3, project.lat2d.coords = TRUE) Execution halted
Please guide, thanks
Best, Farhan
Hi, please let me know what command you're running, what version of R, and if it's the latest Climpact version.
Hi @heroldn
Rscript climpact.ncdf.wrapper.r
R version 4.1.3 (2022-03-10)
https://github.com/ARCCSS-extremes/climpact
See the attached image below:
Note: I am running this in Anaconda CMD.exe Prompt
Ah right, gridded calculations are only supported on Linux https://github.com/ARCCSS-extremes/climpact.
On 12/09/2023 23:55 GMT farh-an @.***> wrote:
Hi @heroldn https://github.com/heroldn Rscript climpact.ncdf.wrapper.r R version 4.1.3 (2022-03-10) https://github.com/ARCCSS-extremes/climpact See the attached image below: [image] https://user-images.githubusercontent.com/74012816/267493732-ab144c87-ebb1-4358-bd44-78f3d57d02be.png Note: I am running this in Anaconda CMD.exe Prompt
— Reply to this email directly, view it on GitHub https://github.com/ARCCSS-extremes/climpact/issues/106#issuecomment-1716729760, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW3FAK4H37G54YSIKQ6I5LX2DY6PANCNFSM6AAAAAA4T56NSE. You are receiving this because you were mentioned.Message ID: @.***>
I also checked the installed packages and all of them were installed. See this image;
Hi @heroldn, I know it works on Linux and I am running it on a Linux based system. I install ubuntu on the window subsystem for Linux
Right, hmmm. You don't seem to have climdex.pcic.ncdf installed. Not sure why since the script seems to run fine for you. From the climpact root directory, in R, can you run install.packages("./server/pcic_packages/climdex.pcic.ncdf.climpact.tar.gz",repos=NULL,type="source")
Then try again.
Hi @heroldn,
The climdex.pcic.netcdf package is already installed but i still re-installed using the command you provided; see below image;
After installing this i again run the command and got this error message;
I try to install this library but it says that a version of this package might be somewhere else;
Brilliant, yes that lmofit issue is in an upcoming merge. You've got a typo in your command, remove the bracket and should install.
I remove the bracket and reinstall the lmofit library is installed but it gives me two warnings;
Warning messages:
1: In install.packages("units") :
installation of package 'units' had non-zero exit status
2: In install.packages("sf") :
installation of package 'sf' had non-zero exit status
Can you guide me on how to install or manually compile these two ("units" and "sf") dependencies?
try 'yes' and if that doesn't work then 'no'.
I try yes bit it did not work afterwards i type no it works well but when i again run the script i am getting an error message about spei calculation about its frequency which is 12 and about missing data values = NA
How can I define in the Rscript that I do not want to calculate the spi and spei indices?
Hi, @heroldn are these below calculation message are warnings or just part of indices calculations? see below image
The lines in the above image are continuous and appear like a loop. I do not understand whether are these warnings or just normal calculation processes. Please guide me, Thanks
The program just finished indices calculations with those lines shown in the above image. The command line looks like this;
Those messages look harmless but are new, probably the latest update to the SPEI package caused it. I'll have to look into silencing them.
On 13/09/2023 01:45 GMT farh-an @.***> wrote:
The program just finished indices calculations with those lines shown in the above image. It cmd line looks like this; [image] https://user-images.githubusercontent.com/74012816/267507471-0892ecca-78a5-48d5-aad5-5848c03813a8.png
— Reply to this email directly, view it on GitHub https://github.com/ARCCSS-extremes/climpact/issues/106#issuecomment-1716809421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW3FAKTXAJI3HEA4YBEMW3X2EF4ZANCNFSM6AAAAAA4T56NSE. You are receiving this because you were mentioned.Message ID: @.***>
Hi @heroldn thank you for the guidance and quick support. I am closing this issue now. Thank you
Hello everyone,
I was trying to run the sample file of climpact for the historical and I got the error
error in create.indices.from.files(infiles, outdir, file.template, author.data, : unused arguments (root.dir = root.dir, ehfdef = EHF_DEF, wsdin_n = 5, csdin_n = 5, hddheatn_n = 18, cddcoldn_n = 18, gddgrown_n = 10, rxnday_n = 7, rnnmm_n = 30, ntxntn_n = 3, ntxbntnb_n = 3, project.lat2d.coords = TRUE) Execution halted
Could you please help me with how to solve this? Thanks in advance.