Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kenkuwae opened this issue Aug 7, 2018 · 5 comments
Closed

Comments

@kenkuwae
Copy link

kenkuwae commented Aug 7, 2018

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
@kenkuwae kenkuwae 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. Aug 7, 2018
@wholmgren
Copy link
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.

@kenkuwae
Copy link
Author

kenkuwae commented Aug 9, 2018

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

@cwhanse
Copy link
Member

cwhanse commented Aug 9, 2018

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

@Ahanmr
Copy link
Contributor

Ahanmr commented Feb 17, 2020

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

@wholmgren
Copy link
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants