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

No method matching from_grib_date_time(::Int32, ::Int32; epoch::Dates.DateTime) #25

Closed
lupemba opened this issue Feb 21, 2024 · 1 comment

Comments

@lupemba
Copy link
Contributor

lupemba commented Feb 21, 2024

I am trying to read data from ERA5 data with the package https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=overview
The file is 300 MB so I have not attached it here.

I get this error.
ERROR: MethodError: no method matching from_grib_date_time(::Int32, ::Int32; epoch::Dates.DateTime)

I can see that the function is definite

from_grib_date_time(date::Int, time::Int; epoch::DateTime=DEFAULT_EPOCH)::Int

but looking at the code I think the more generic Integer type should be used instead.

from_grib_date_time(date::Integer , time::Integer ; epoch::DateTime=DEFAULT_EPOCH)::Integer 
@tcarion
Copy link
Member

tcarion commented Mar 3, 2024

solved by #26

@tcarion tcarion closed this as completed Mar 3, 2024
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

2 participants