8000 Plotting multiple Masts · Issue #1 · chgrl/bReeze · GitHub
[go: up one dir, main page]

Skip to content
< 8000 react-app app-name="repo" initial-path="/chgrl/bReeze/issues/1" style="display: block; min-height: calc(100vh - 64px);" data-attempted-ssr="true" data-ssr="true" data-lazy="false" data-alternate="false" data-data-router-enabled="true" data-react-profiling="false" >

Plotting multiple Masts #1

Open

Description

@yipcma

Am curious if there is a way to save the plots of multiple masts and combine them into one for comparison. Thanks for the wonderful work!

Activity

  1. chgrl commented on Aug 17, 2014

    @chgrl
    Owner

    Back home again...

    Hi Andrew,
    You mean something like returning the plot data by a plotting function to be used in combination with other?

    aep.1 <- plotAep(mast.1, plot=FALSE) # store plot data of first mast
    aep.2 <- plotAep(mast.2, plot=FALSE) # store plot data of second mast
    combine.plots(aep.1, aep.2) # combine plots

    Could indeed be helpful.

  2. chgrl commented on Oct 24, 2014

    @chgrl
    Owner

    Closed?
    Do you have a solution for this? I started working on this feature, but it is not as simple as I thought. Still interesting for me...

  3. reopened this on Oct 25, 2014
  4. chgrl commented on Oct 29, 2014

    @chgrl
    Owner

    I have implemented a prototype. The function combine takes the output of plot functions (currently only plot.aep) and combines two plots.

    An example (see also ?combine):

    # prepare
    data(winddata)
    set1 <- set(height=40, v.avg=winddata[,2], v.std=winddata[,5], dir.avg=winddata[,14])
    set2 <- set(height=30, v.avg=winddata[,6], v.std=winddata[,9], dir.avg=winddata[,16])
    ts <- timestamp(timestamp=winddata[,1])
    neubuerg <- mast(timestamp=ts, set1, set2)
    neubuerg <- clean(mast=neubuerg)
    neubuerg.wp <- profile(mast=neubuerg, v.set=c(1,2), dir.set=1, print=FALSE)
    pw.56 <- pc("PowerWind_56_900kW.wtg")
    
    ## calculate aep
    aep.59 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=59)
    aep.71 <- aep(profile=neubuerg.wp, pc=pw.56, hub.h=71)
    
    ## plot
    plt.59 <- plot(aep.59, type="n")
    plt.71 <- plot(aep.71, type="n")
    
    ## combine plots
    combine(plt.59, plt.71)
    

    The legend is not very robust - maybe I have to build one from ground up...
    I would appreciate any testing, bug reports and suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0