A couple of similar errors while trying to create the hourly products in the pipeline for some sites.
TypeError: Operation sub between float64 and Timedelta is invalid
...
File "/mnt/ebs/pipeline/lib/python3.5/site-packages/aodntools/timeseries_products/hourly_timeseries.py", line 399, in PDresample_by_hour
df.index = df.index - pd.Timedelta(30, units='m')
occurs for
- ITFTIS (306 input files, task id e103219b-f5b1-4f4a-a7eb-0e4c4217a491)
- PH100
- SAM7DS
TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'Index'
...
File "/mnt/ebs/pipeline/lib/python3.5/site-packages/aodntools/timeseries_products/hourly_timeseries.py", line 405, in PDresample_by_hour
ds_var_mean = ds_var.resample('1H').apply(function_dict[variable]).astype(np.float32)
for
A couple of similar errors while trying to create the hourly products in the pipeline for some sites.
occurs for
for
pandas.Timedeltaunits issue, as done in the velocity hourly code (Velocity HOURLY #99 (comment))