Skip to content

get_solarpostion in modelchain.prepare_inputs does not use weather data. #523

Closed

Description

@kenkuwae

Problem
get_solarpostion method in modelchain.ModelChain.prepare_inputs does not use weather data.

To Reproduce
change line 745 - 746

755:       self.solar_position = self.location.get_solarposition(
756:            self.times, method=self.solar_position_method)

to

755:       self.solar_position = self.location.get_solarposition(
756:            self.times, method=self.solar_position_method,
757:            pressure=self.weather.pressure,
758:            temperature=self.weather.temp_air)

Versions:

  • pvlib.__version__: 0.5.2
  • pandas.__version__: 0.23.3
  • python: 3.5.2

Activity

  1. changed the title [-].get_solarpostion in modelchain.prepare_inputs does not use weather data.[/-] [+]get_solarpostion in modelchain.prepare_inputs does not use weather data.[/+] on Aug 7, 2018
  2. wholmgren commented on Aug 7, 2018

    @wholmgren
    Member

    Good idea to pass this data on to get_solarposition if available. What about the case where one or more is not available? Maybe use pvlib.tools._build_kwargs?

    Pull request welcome. Might not happen otherwise.

  3. kenkuwae commented on Aug 9, 2018

    @kenkuwae
    Author

    thank you for response.
    ok, I consider how to do that.
    If I found any idea, I share this.

  4. cwhanse commented on Aug 9, 2018

    @cwhanse
    Member

    @kenkuwae thanks for opening the issue. I am re-opening so that we can keep this enhancement on the list.

  5. reopened this on Aug 9, 2018
  6. added this to the Someday milestone on May 3, 2019
  7. Ahanmr commented on Feb 17, 2020

    @Ahanmr
    Contributor

    @kenkuwae @cwhanse I have taken up this issue, and fixed the changes and applied for a PR.

  8. wholmgren commented on Sep 23, 2020

    @wholmgren
    Member

    closed by #936, but possibly a bug.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions