You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to work with temperatures extracted from WeatherReport.jl and forecast next month heat wave. Check the minimal working example below
Important: the data from export_to_sqlite is exported inside on the root folder from the WeatherReport.jl and I had to copy and paste the sqlite file manually into my working directory
In my case, the sql file was on: /home/noel/.julia/packages/WeatherReport/akdwz/export
using WeatherReport
export_to_sqlite("Araraquara", start_date ="2020-01-01", end_date ="2023-12-31")
using SQLite, DataFrames, ArarForecast, TimeSeries, Dates
db_train = SQLite.DB("Araraquara_all.sqlite")
df_train = DBInterface.execute(db_train, "SELECT * FROM temperature_2m") |> DataFrame
_dates =Date.(df_train[:,"TIME"], dateformat"yyyy-mm-dd HH:MM:SS")
_data = df_train[:, "temperature_2m"]
# _data = rand(length(_dates)) # for tests
_train = (date = _dates, data = _data);
train =TimeArray(_train; timestamp =:date)
p =30
fc =arar(train, p, Day)
I get an error message about vector and scalar types, even though I am using the correct TimeArray input.
I don't know that to think, for instance, if I change the content of _data to random numbers, everything works as expected.
Any suggestion on what am I missing?
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to work with temperatures extracted from
WeatherReport.jl
and forecast next month heat wave. Check the minimal working example belowImportant: the data from
export_to_sqlite
is exported inside on the root folder from theWeatherReport.jl
and I had to copy and paste the sqlite file manually into my working directoryIn my case, the sql file was on:
/home/noel/.julia/packages/WeatherReport/akdwz/export
I get an error message about vector and scalar types, even though I am using the correct
TimeArray
input.I don't know that to think, for instance, if I change the content of
_data
to random numbers, everything works as expected.Any suggestion on what am I missing?
Thank you
The text was updated successfully, but these errors were encountered: