Obtain average irradiance values in each model output

This post was from a previous version of the WRF&MPAS-A Support Forum. Please do not add new replies here and if you would like the thread moved out of the Historical / Archive section then contact us, making sure to include the link of the thread to be moved.


New member
Dear, I hope you are well.

The SWDOWN, SWDDNI and SWDDIF values represent the instantaneous irradiance, right?

Is there a way to get these average values for each output? For example, hourly output from the WRF with the average irradiance values for each hour.

Thank you very much in advance,


New member
Hello Robson,

Yes, the SWDOWN (GHI), SWDDNI, and SWDDIF variables represent the instantaneous irradiances.

We have recently added an accumulated (2D) GHI variable to the WRF-Solar diagnostics package, called ghi_accum. The equivalent time series output variable is ts_ghi_accum. Please see this pull request for more information: https://github.com/wrf-model/WRF/pull/1610.

Note that this addition is not yet in an official public release version; however, it will be in the next release (v4.4). You are free to use the develop branch, which contains this addition, at your own risk: https://github.com/wrf-model/WRF/tree/develop



New member
Hello Tim,

Thank you very much, this accumulated variable will be very useful for researching solar resources. Are there any plans to extend these increments in the code to the other irradiances as well?

All the best,


New member
Staff member
The code to accumulate the GHI is now in the latest version of WRF (v4.4). We have no plans at this moment to add other irradiances, but it should not be difficult to extend the code using the GHI case as an example.