blaylockbk / SynopticPy

Retrieve mesonet weather data as Polars DataFrames from Synoptic's Weather API.
https://synopticpy.readthedocs.io/
MIT License
50 stars 6 forks source link

issue with the length of time series returned #52

Closed vandam60 closed 1 month ago

vandam60 commented 9 months ago

I'm trying to download soil moisture time series for all the stations in utah. I've got a list of the stations with that variable. I would like to download all records of the soil moisture from each station. I think precip will be useful too so I'm grabbing that at the same time.

the problem is that I only get data back for one year starting in 2023-02-09 16:10:00+00:00. today is 9-Feb. so I'm thinking I'm only allowed to download a year of data using my script below.

two questions, 1) can I overcome this issue of downloading only one year of data? 2) I would be happy with daily resolutions of the variables I want. Can I specify daily data in the script?

Thank you for your attention and assistance

---tonie van Dam

here is my short script:

import datetime as dt from synoptic.services import stations_timeseries

dtstart=dt.datetime(2000,1,1) dtend=dt.datetime(2023,12,31) sta='FG021' df = stations_timeseries(stid=sta, vars=['soil_moisture', 'soil_temp','snow_water_equiv','precip_accum_ten_minute'], start=dtstart,end=dtend)

blaylockbk commented 8 months ago

Hi @vandam60, I think Syntopic has changed the level of data access for their free tier. I think only the last 12 months of data is free without a comercial subscription.

https://synopticdata.com/pricing/open-access-pricing/

https://synopticdata.com/pricing/commercial-pricing

You could see if you can find a longer data record at https://mesowest.utah.edu/

blaylockbk commented 1 month ago

Closing since this is on Synoptic's side. You can email them about your data access questions.