windmueller Posted August 29, 2016 Posted August 29, 2016 Dear WASP comunity,is it possible to change the unit from MWh into kWh in the report view? For example the script is showing for the Net Aep: Builder.InsertClosedTableDataHeaderRowElement "Net AEP [" & DataFormatting.GetAepUnits(MaxPower) & "]" Builder.InsertClosedTableDataElement DataFormatting.FormatAep(UnstructuredTurbineSiteGroup.SummaryResults.AepSumOfSectorsNet.Total, False, MaxPower) Builder.InsertClosedTableDataElement DataFormatting.FormatAep(UnstructuredTurbineSiteGroup.SummaryResults.AepSumOfSectorsNet.Mean, False, MaxPower) Builder.InsertClosedTableDataElement DataFormatting.FormatAep(UnstructuredTurbineSiteGroup.SummaryResults.AepSumOfSectorsNet.Minimum, False, MaxPower) Builder.InsertClosedTableDataElement DataFormatting.FormatAep(UnstructuredTurbineSiteGroup.SummaryResults.AepSumOfSectorsNet.Maximum, False, MaxPower) Builder.EndTableRowElementI guess MWh is a kind of a standard unit for Wasp. Do you have an idea? I will appreciate it. Best,Windmueller
Mark Kelly Posted September 1, 2016 Posted September 1, 2016 Hi Windmueller, for Excel, one could simply make a new column and multiply by 1000, or use a VBscript to do so. For e.g. HTML, I am not sure if one can alter the value of GetAepUnits; thus one could multiply by 1000 in the script/code as you paste above. Perhaps Duncan can confirm. Cheers,--Mark
windmueller Posted September 2, 2016 Posted September 2, 2016 Hi Mark,thank you very much for your answer. I solved the problem. For some reason in Html the trick was to define MaxPower as MaxPower=MaxPower*1000 to get the units changed. Have a nice weekend.Cheers,Pit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now