Skip to content

Bug in resource extraction #218

@ppinchuk

Description

@ppinchuk

Sample code:

from rex import WindX,ResourceX


hsds_data_path = "/nrel/wtk/bchrrr/v1.0.0/bchrrr_conus_2023.h5"
hub_height = 80
points = [(38, -106), (38, -112), (39, -104)]
out_path = "wind_2023_80.csv"

with ResourceX(hsds_data_path, hsds=True) as resource:
    gids = resource.lat_lon_gid(points)
    gids = list(gids)


WindX.make_SAM_files(
    hub_height=hub_height,
    res_h5=hsds_data_path,
    gids=gids,
    out_path=out_path,
    icing=True,
    require_wind_dir=True
)

Yields error:

Image

Metadata

Metadata

Assignees

Labels

p-mediumPriority: mediumtopic-resource-handlerIssues/pull requests related to the main rex Resource handler

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions