Gil Posted Friday at 10:34 Posted Friday at 10:34 Dear Team, quite surprisingly, WAsP Climate analyst 3 (ver.3.01.0049) , windographer WAsP algortithm (ver.5.3.1), windPRO (ver.4.1.263) WAsP algorithm, and python coding results with reference to "Comparison of Weibull Estimation Methods for Diverse Winds - Bingöl - 2020 - Advances in Meteorology - Wiley Online Library" and "Fitting Weibull Parameters for Wind Energy Applications-EMD", they all shows different A,k,f, Vmean values. therefore, I was trying to use "Windkit (ver.0.8.0). time series fit - overall value, with from windkit.weibull import _fit_wasp_m1_m3_fgt works well. but to check sectorwise --> combined & emergent might be tricky. i got stuck in sector wise fit. the main issue is wind data without core information that are required by windkit (south_north, west_east, height, crs) linked to time series data. wind data has typical time stamp , wind speed, wind direction at different heights or several files. the wind data has read csv format using pandas. To use windkit, it is converted to Xrray. for example, four information was read in csv format and try to inject. def run_windkit_sectorwise(df, turbine_ids, turbine_coords, epsg=xxxxx, output_dir="Windkit_output"): ... # Build Dataset ds = xr.Dataset( { "wind_speed": (("time",), ws.values), "wind_direction": (("time",), wd.values) }, coords={ "time": ("time", ws.index), "point": [0], "south_north": ("point", [coords["y"]]), "west_east": ("point", [coords["x"]]), "height": ("point", [coords["height"]]) } ) # Add CRS before calling WindKit ds = add_crs(ds, epsg) # Call WindKit bwc = bwc_from_timeseries(ds, nsec=12) ... based on other discussion of similar issues, this worked and i tried to do with different ways, but in the end, i received "Please enter your email adress." and if i put my email address, then ask me "institution", instead of error message. i gave up now as I cannot proceed any further without any error messages. hope your team improve the message to trace it better and easy-to-use. or might be good idea to provide the best structured file sample, which i could not find "WindKit — windkit 0.8.0 documentation". Regards, Gyeongil
Neil Davis Posted 29 minutes ago Posted 29 minutes ago Hi Gyeongil, Thanks for the information about your error and the suggestion about improving the documentation. We are working to improve the documentation now ahead of an upcoming release. The issue that you are getting about the name, email, and institution is about the first time setup of Windkit. We ask for this information the first time that a user creates an xarray object, and store it in a configuration file. We are updating this process in the next version, but for now the easiest way to initialize this configuration is to run the following commands, which will then prompt you to enter the information. import windkit as wk wk.empty_bwc(wk.create_dataset([0, 1, 2], [3,4,5], 100, 4326))
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now