-
Notifications
You must be signed in to change notification settings - Fork 11
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
Scale on load #21
Scale on load #21
Conversation
@grantbuster If you don't have time to review np, I tested this on the Solar Vietnam data for Paul. That said I did add a really cool Retry Decorator from my hsds_etl package that I had forgotten about that you should check out! |
Yeah the rechunk utils are your domain, go for it! |
Send me a link to the retry decorator? |
@grantbuster - When I do the following, do I need to apply a scale factor, or is this applied automatically? (From what I can see, I would guess that I do need to scale it manually.) from rex import WindX
wtk_file = '/nrel/wtk/hawaii/Hawaii_2010.h5'
lat_lon = (19.3131, -163) # xy[0,:]
with WindX(wtk_file, hsds=True) as f:
wspd = f.get_lat_lon_df('windspeed_100m', lat_lon) |
@ryancoe you do not need to do any manual scalig. |
Thanks @MRossol! I think I must be messing something up, because to me it looks like at 100m up at an offshore location near Hawaii, the average wind speed in 2010 was 130 m/s? from rex import WindX
wtk_file = '/nrel/wtk/hawaii/Hawaii_2010.h5'
lat_lon = (19.3131, -163) # xy[0,:]
with WindX(wtk_file, hsds=True) as f:
wspd = f.get_lat_lon_df('windspeed_100m', lat_lon)
fig, ax = plt.subplots()
wspd.plot(ax=ax)
ax.axhline(nwtc_wspd.mean().values,color='r')
|
Hmm, that does look suspect. Can you try:
|
Thanks again for your help @MRossol. Looks similarly fishy for 22°00'00.0"N 159°00'00.0"W in 2012 (which shows up on the AWS sheet above as 7.5-8.0 m/s). |
Fishy indeed! @grantbuster Do you know if the Hawaii data has been updated recently? Might be worth checking with Jay or John to see if the scaling is messed up in HSDS. |
on Eagle, the hawaii wind data hasnt been updated since 2020. I'll forward this chain to Jay and see if he can check the hsds data. |
hi guys - any updates on this? Should we create a separate issue? |
This isnt a software issue as far as i can tell. Pretty sure you just need to get Jay to reupload the data to hsds. I asked but he's busy. |
@ryancoe try submitting an issue here: |
Add ability to scale datasets during rechunk