Closed joostbeckers closed 9 months ago
Could you provide more details on which request was made here?
I'll try if I can reproduce it then.
Could you also attach the csv file to the issue?
In the attached csv file, I cannot observe the same behavior as shown in the table you placed in the top. See e.g.
csv_fn = "roi-ts_SM-SMAP-L-DESC_V5.0_1000_2015-04-01T000000_2023-12-31T000000_810454_136a4.csv"
df = pd.read_csv(csv_fn, index_col=0, parse_dates=True, dayfirst=True, comment="#")
This was a different csv than yours though (or something went wrong while reading). Could you provide me the csv on which you based the table on the top? Or perhaps try the read settings for the csv (like in this comment).
In-fact, I requested all three downloads and none of them have any data for 2017. The following 3 requests were made using gen_time_series_requests
exactly how you made them (except I'm using impersonation). I can only detect valid csv files.
https://maps.vandersat.com/api/v2/products/SM-SMAP-L-DESC_V5.0_1000/roi-time-series?start_time=2015-04-01&end_time=2023-12-31&roi_id=810452&format=csv&avg_window_days=20&avg_window_direction=center&include_masked_data=false&climatology=true&provide_coverage=false
https://maps.vandersat.com/api/v2/products/SM-SMAP-L-DESC_V5.0_1000/roi-time-series?start_time=2015-04-01&end_time=2023-12-31&roi_id=810453&format=csv&avg_window_days=20&avg_window_direction=center&include_masked_data=false&climatology=true&provide_coverage=false
https://maps.vandersat.com/api/v2/products/SM-SMAP-L-DESC_V5.0_1000/roi-time-series?start_time=2015-04-01&end_time=2023-12-31&roi_id=810454&format=csv&avg_window_days=20&avg_window_direction=center&include_masked_data=false&climatology=true&provide_coverage=false
If you still think that one of the csv files is malformed, please share it in a comment.
After a conda update, I get the correct results. Sorry about the trouble. I think the error was on my side.
Glad you found it, and always happy to help
The output from gen_time_series_requests is erroneous. Values in the daily and clim columns are mixed up.