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
[FeatureRequest] Add insol_time and npartitions parameters to r.sun.daily #325
Comments
Do you see a chance to add this in the script and propose it as pull request? https://github.com/OSGeo/grass-addons/blob/master/grass7/raster/r.sun.daily/r.sun.daily.py |
Hi @neteler I can try, but it would be my first attempt to contribute to GRASS code, so I would need some review! |
Please try, we'll support you! |
I think I managed to add insol_time parameter successfully. At least I can run it in GRASS 7.8.4 and 7.9dev and the output is the expected. Can you take a look at the code?
I was also looking for the manual, to update it, but I can't find it. The npartitions parameter seems more difficult, because it depends on horizon_basename and horizon_step. Maybe I can leave it for another time. Thank you very much! |
Add insol_time parameter to get the total insolation time between two dates. Should close OSGeo#325
Add insol_time parameter to get the total insolation time between two dates. Should close #325
Great work! In future, you may just use the edit button on the file in GitHub and save - it will add it as a change and ask you to submit a pull request (you can find some info also at https://trac.osgeo.org/grass/wiki/HowToGit). |
Thanks @neteler I didn't knew the edit button, it makes things easier! BTW, it is not necessary to update the manual to include insol_time parameter documentation? |
Yes indeed. If you like, enjoy the edit button :) |
Is this one @neteler https://github.com/OSGeo/grass-addons/blob/master/grass7/raster/r.sun.daily/r.sun.daily.html ? My doubt is because this file starts from Description section, it does not have Synopsis, Flags or Parameters sections https://grass.osgeo.org/grass78/manuals/addons/r.sun.daily.html |
Yes, the parser takes care of those first sections. It takes them from the python file. So you don't have to worry about them. You can modify the other sections, eg., Description and Examples, to explain the new features added and how to use them in an example using North Carolina dataset |
Add insol_time parameter to get the total insolation time between two dates. Should close OSGeo#325
Thank you very much @veroandreo ! Now I already see insol_time in manual!
I will see what I can do! |
Please, you the standard https://github.com/OSGeo/grass/blob/master/CONTRIBUTING.md The HowToGit wiki page is for more special cases. |
Add insol_time parameter to get the total insolation time between two dates. Should close OSGeo#325
r.sun.daily
r.sun.daily does not include the insol_time parameter to get the total insolation time between two dates. Also, it does not include the npartitions parameter to read the input files in a given number of chunks.
These are two parameters from r.sun that are missing in the script and that would be very useful.
The text was updated successfully, but these errors were encountered: