#1 2016-08-29 15:43:26

windmueller
Member
Registered: 2009-12-14
Posts: 15

How to change the units?

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.EndTableRowElement

I guess MWh is a kind of a standard unit for Wasp. Do you have an idea? I will appreciate it.

Best,
Windmueller

Offline

#2 2016-09-01 09:43:47

Mark Kelly
WAsP team
From: Risø
Registered: 2010-07-13
Posts: 42

Re: How to change the units?

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


Dr. Mark Kelly
WAsP Team,  Risø DTU

Offline

#3 2016-09-02 15:14:52

windmueller
Member
Registered: 2009-12-14
Posts: 15

Re: How to change the units?

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

Offline

Board footer

Powered by FluxBB

[ Generated in 0.011 seconds, 10 queries executed - Memory usage: 528.44 KiB (Peak: 557.48 KiB) ]