-
Notifications
You must be signed in to change notification settings - Fork 0
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
HARP Weekly 2022/07/18 #306
Comments
Error when running summary script to document example@rburghol when we run from the home directory with input:
Do you know what might be causing this? We didn't change any of the code involving export to VAHydro, which is where the RomDataSource is referenced |
RomDataSource is from hydrotools, thus this means you must load the "hydrotools" library. Since your script already tries to load the library, it must mean that it's not successfully loading the config.R script? Can you share where you're running this from and I can take a look? |
@rburghol the issue is solved when loading hydrotools within the summary R script. The config.R file that our summary script calls is in /var/www/R on the server. We viewed the file and it appears to be the same as the file we have saved locally, so we are not sure where the issue is |
I just made an adjustment to your script on the server, hope you don't mind :). The first thing I did was to load config.R, this appears to resolve everything. This is why we have config.R, because it loads all of the libraries and it sets our library location in a central place so that we don't have to struggle with loading them in our own installs separately. The next step will be to eliminate the superfluous library loads, and then if there are no libraries that you actually need to load in addition to the standard keep them. I believe it ran successfully, although I did nothing more than just watch it go, that is to say I did not verify that it made it to VAHydro although I saw no obvious errors at a cursory glance. @glenncampagna let me know if you can confirm. @rburghol Yes, I can confirm the script works to export constants and graphs to VAHydro |
Packages removed from summary scripts so farhsp_pwater.R : hydrotools, stats (both loaded by the edited config.R file) |
Notes about Impervious land uses:The IWATER table within an h5 for an impervious landuse, which corresponds to the PWATER table for a pervious land use (/RESULTS/IMPLND_I001/IWATER/table) does not contain any groundwater variables (AGWS, AGWO etc.) and therefore cannot be used by our current export or summary scripts
Conclusion: the landuse 'cid' is impervious according to hspf |
Batch script version 1 (simple)
|
Excellent work and documentation/update. A couple clarifications, requests and comments:
|
Encountered error when running
|
Checking into this now. Per your hypotheses:
My suspicion is that:
I will check into the permissions. Can you do 3 things to help:
|
1. More of the code before the error:
Command that was used: |
Awesome. Try one more thing:
This will allow you to check in realtime just as if you were in Rstudio. |
Running the Rscript hsp_pwater_stats in terminal: Setting the arguments manually: (I pulled the .csv file from the directory to make sure it existed, and it did.)
I received the same error immediately after trying to plot the graph:
I tried running the code for the second graph as well to make sure that the issue isn't with the first graph, and I received the same error:
|
Thanks for working through the manual code execution. I'm stumped! @jdkleiner Do you have any thoughts about this? The directory is writeable… |
It is DEFINITELY permissions (again). I have to get with Denton. The permissions look great, but they are not. |
Success!The Link to land segment A51037: http://deq1.bse.vt.edu/d.dh/om-model-info/6831636/dh_properties |
The text was updated successfully, but these errors were encountered: