Opened 9 years ago
Closed 8 years ago
#3052 closed defect (fixed)
Watts to MegaJoules/Day conversion issue
Reported by: | cholmes | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.5 |
Component: | Imagery | Version: | svn-releasebranch70 |
Keywords: | i.evapo.mh | Cc: | ychemin |
CPU: | Unspecified | Platform: | All |
Description (last modified by )
I think I may have found an error in a few files from the grass-ci repo.
A few files:
- https://github.com/GRASS-GIS/grass-ci/blob/f1a15d967611006e920b8dc2f191391e44392019/imagery/i.evapo.mh/mh_eto.c#L15
- https://github.com/GRASS-GIS/grass-ci/blob/f1a15d967611006e920b8dc2f191391e44392019/imagery/i.evapo.mh/mh_original.c#L14
contain a line like:
ra = ra * (84600.0 * 1000.0); /*convert W -> MJ/d */
I'm guessing the magic constant 84600 is intended to be the number of seconds in a day, which is actually 86400. Also, Watts * Seconds gives Joules. If you intend to get MegaJoules, you must divide by 1000, not multiply (but maybe the comment is just wrong, and you wanted milliJoules?).
Change History (7)
comment:1 by , 9 years ago
Component: | Default → Imagery |
---|---|
Keywords: | i.evapo.mh added |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 9 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Resolution: | fixed |
Status: | closed → reopened |
Version: | unspecified → svn-releasebranch70 |
Reopening for the issue: 84600 should be 86400 (?)
comment:6 by , 9 years ago
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
No activity, closing, feel free to reopen if needed.
Note:
See TracTickets
for help on using tickets.
article is here for file mh_eto.c :
https://www.researchgate.net/profile/Peter_Droogers/publication/226830392_Estimating_Reference_Evapotranspiration_Under_Inaccurate_Data_Conditions/links/0f31753a0483fd97c0000000.pdf
ref to equation 5 page 40.
equation 1 page 36 references the units used: RA-> MJ / m2 / d
MegaJoules per meter square per day.
So the conversion is indeed wrong in the ticket.