-
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
Workflow step geo -> process -> 04_weekly_data
: Create R script to produce weekly mean value file
#61
Comments
I am having some trouble trying to run Rscript in the command line, I keep getting the error that the Rscript command is not found.
I tried this both inside and outside of Harp archive directory, the Rscript I am trying to run is stored in the HARP 2024-2025 folder on my computer. I also can't find any files or folders called Rscript on my computer, does that mean I don't have it and will have to download something else? |
Hi @ilonah22 . This error indicates your computer can't find the bin folder associated with R. We will need to add it to your "PATH" Windows environmental variable. First, search for "Edit environmental variables for your account" on the Windows search bar: |
@COBrogan Thank you, I had some trouble finding the right path, but it seems to be working now. |
I made some changes to the daily value file I have been working on that incorporates the
But, when I tried to run this in the command line I got a segmentation fault error.
I'm not sure if it's a problem with the script or how I entered the inputs into the command line. * I don't know if this matters, but I downloaded the csv from http://deq1.bse.vt.edu:81/met/daymet/out/ onto my computer because I thought that would have the best chance of working. |
@ilonah22 Sorry for the delay in response, I somehow missed this yesterday afternoon. I was able to get this scrip to work but I had to make a few changes. First, there were a few things missing from the script. The library Now, these errors did NOT reproduce the segmentation error you're seeing. My call was as follows. Are you passing in the correct path for the It may help to add a |
We finished a first draft of make_weekly_summary_ts.R, which should be in the main branch now, but there were a few bits we had trouble with.
Other than those two issue, I was able to run it with a comp_data file that @mwdunlap2004 had already made, and it looks like it worked. |
I think that the
|
geo -> process -> 03_weekly_data
: Create R script to produce weekly mean value file
I'm still confused about what the requirements mean and how to implement the column name and data_column aspects. For example, the comp_data csv we've created has 7 data columns, including usgs_cfs, dataset_p_in, and dataset_cfs. Which one do we want the weekly average for, or is it all of the columns? Could we meet at some point today to discuss how to go about this? |
geo -> process -> 03_weekly_data
: Create R script to produce weekly mean value filegeo -> process -> 04_weekly_data
: Create R script to produce weekly mean value file
geo -> process -> 04_weekly_data
: Create R script to produce weekly mean value filegeo -> process -> 03_weekly_data
: Create R script to produce weekly mean value file
geo -> process -> 03_weekly_data
: Create R script to produce weekly mean value filegeo -> process -> 04_weekly_data
: Create R script to produce weekly mean value file
Hey @mwdunlap2004 I am thinking that you probably know the answer to your above question, but yes, all data columns will be averaged. |
Rscript.exe make_weekly_summary_ts.R source_filename output_daily_filename data_column [weekly_column(default=weekly_mean_value)]
04_weekly_data
in https://github.com/HARPgroup/meta_model/tree/main/models/raster_met/geo/process04_weekly_data
The text was updated successfully, but these errors were encountered: