Skip to content
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

snotel RegionDailyDataIO #16

Open
kashingtonDC opened this issue Jan 29, 2019 · 2 comments
Open

snotel RegionDailyDataIO #16

kashingtonDC opened this issue Jan 29, 2019 · 2 comments

Comments

@kashingtonDC
Copy link

kashingtonDC commented Jan 29, 2019

Hi, thanks for creating this awesome tool. I'm having trouble unpacking the <wq.io.util.FlatIO object at 0x11a36a9b0> when accessing snotel data. Here is the code i'm running

from climata.snotel import RegionDailyDataIO

data = RegionDailyDataIO(
    basin="18030007",
    start_date="2017-01-01",
    end_date="2017-01-31",
    parameter="SNWD"
)

for series in data:
    for i in series:
        print (i.data)
@thatmushroom
Copy link

thatmushroom commented Apr 8, 2019

This works for me. You have to drop the "data" in i.data.

from climata.snotel import RegionDailyDataIO

data = RegionDailyDataIO(
    basin="18030007",
    start_date="2017-01-01",
    end_date="2017-01-31",
    parameter="SNWD"
)

for series in data:
    for i in series:
        print(i)

dftest = data.as_dataframe()

@brobertspierel
Copy link

Thanks for creating this great tool! I am having an issue where I know that there is a longer data record for a particular snotel site that I am querying but it seems like climata is not pulling the full record for some reason. If I go and download the data directly it works but through the package it does not. It also seems like the tool is unable to query some sites that definitely exist and have data. Is it possible this is pulling from a legacy repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants