-
Notifications
You must be signed in to change notification settings - Fork 96
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
CSP has capacity factors > 1 when passing shapes #362
Comments
Here is the cutout I am using for this. |
Hi there! Thanks for reporting.
|
Hello @euronion ! cutout = atlite.Cutout(
path="output/test.nc",
module=["era5"],
x=slice(-9.497466600999928, -6.205947224999932),
y=slice(36.96588776200008, 42.15362966000002),
time="2019-05",
**cutout_kwargs,
)
cutout.prepare(features=["influx", "temperature"]) As for |
I'm facing the same issue for wind, so would be glad if you could check there as well! shp = shpreader.Reader(
shpreader.natural_earth(
resolution="110m", category="cultural", name="admin_0_countries"
)
)
eu_records = list(filter(lambda c: c.attributes["ISO_A2_EH"] in countries_iso2, shp.records()))
country_shapes = (
gpd.GeoDataFrame([{**r.attributes, "geometry": r.geometry} for r in eu_records])
.rename(columns={"ISO_A2_EH": "country"})
.set_index("country")
.set_crs(4326)
)
# Determine the bounds of the shapefile
minx, miny, maxx, maxy = country_shapes.total_bounds
# Select features
features_sel = ['height','wind','influx', 'temperature']
# Create the atlite cutout
cutout = atlite.Cutout(
path="EU_land_and_maritime_2020-01.nc",
module='era5',
xs=slice(minx, maxx),
ys=slice(miny, maxy),
time=time_range,
)
cutout.prepare(features_sel)
capFactors_windon = cutout.wind(
turbine="Vestas_V112_3MW",
capacity_factor=True,
shapes=country_shapes
) To then get
|
I haven't had the chance to look at this in detail yet, but I think you have to pass I agree with @irm-codebase here that we may need to clear up the keyword arguments of Maybe: cutout.wind(time_series=True, ...) # -> production time series in MW
cutout.wind(time_series=True, capacity_factor=True) # -> capacity factor time series per-unit
cutout.wind(capacity_factor=True, time_series=False) # -> average capacity factor per unit And remove |
@fneum ok, so basically: only use |
Same here, seems to work. Thanks for the swift reply @fneum! |
Version Checks (indicate both or one)
I have confirmed this bug exists on the lastest release of Atlite.
I have confirmed this bug exists on the current
master
branch of Atlite.Issue Description
Depending on how you call
csp
capacity factors might be wrongper_unit = True
works as intendedcapacity_factor=True
has issues.Reproducible Example
Expected Behavior
CFs should be correct regardless of how you call for them (although... why are there two calls for the same thing? That's how this type of issue happens...)
Installed Versions
atlite = 0.2.13
The text was updated successfully, but these errors were encountered: