Skip to content

Error in Wind correction function (broadcast shapes) #165

@simnh

Description

@simnh

Hey again,

I get the following error:

generate_wind_correction - Start: 14:11:41:652020

Traceback (most recent call last):
  File "code/runme.py", line 22, in <module>
    generate_wind_correction(paths, param)
  File "/home/admin/projects/pyGRETA/code/lib/correction_functions.py", line 92, in generate_wind_correction
    A_cf_on = ((turbine_height_on / 50) * turbine_height_on / A_gradient_height) ** A_hellmann / resizem(Sigma, m_high, n_high)
ValueError: operands could not be broadcast together with shapes (1004,1043) (1200,1200) 

the m_high is 1200, however my matrix of all the other data has a different shape. Do you have any idea how to debug?

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