Skip to content
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

Bad hrang parameter #4

Open
qjhart opened this issue Jul 21, 2024 · 1 comment
Open

Bad hrang parameter #4

qjhart opened this issue Jul 21, 2024 · 1 comment
Assignees

Comments

@qjhart
Copy link
Contributor

qjhart commented Jul 21, 2024

I spun up the latest version of grass container and installed r.solpos in it, I was also able to execute python scripts with grass commands. In solar folder I have the list of raster files (after solar reprojection) of a particular day, and I tried using solpos on few of the files, it has given an error so I’m not sure if I’m using the command correctly or if there is anything wrong with the raster files.

@qjhart qjhart self-assigned this Jul 21, 2024
@qjhart
Copy link
Contributor Author

qjhart commented Jul 21, 2024

r.solpos had an error in saving the hrang data. Is was fixed in the commit a6d81c3.

I have created a set of test data, with the production intermediate solar files (only on the hour) and ran comparisons with those, showing no difference in the results.

From grass:

docker run --rm -i -t -v $(pwd)/gdb:/grassdb localhost/spatial-cimis/grass:latest grass /grassdb/solar/20240620

try these grass commands

  for i in $(g.list type=rast pattern='_^Cl_hrang*'); do h=$(echo $i | cut -b11-12); m=$(echo $i | cut -b13-14); n=$(echo $i | sed -e 's/_hel/_Q/'); r.solpos --overwrite hrang=$n year=2024 month=06 day=20 hour=$h minute=$m second=0 timezone=-8; r.mapcalc expression="_Q_hrang_diff$h$m=$n-$i"; r.info _Q_hrang_diff$h$m; done
  for i in sretr ssetr; do n=_Q_$i; r.solpos --overwrite $i=$n year=2024 month=06 day=20 timezone=-8; r.mapcalc expression="_Q_$i_diff=$n-$i"; r.info _Q_$i_diff; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant