From 8f5607c9c5adc588c82ce51eb9b7d159880bab42 Mon Sep 17 00:00:00 2001 From: lupemba Date: Wed, 21 Feb 2024 17:07:43 +0100 Subject: [PATCH] Add windows disclaimer and change int to Integer. --- README.md | 3 +++ src/messages.jl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3376d1..eba6228 100644 --- a/README.md +++ b/README.md @@ -117,3 +117,6 @@ NCDatasets.write(netcdf_file,GRIBDataset(grib_file)) ``` ## Opening issues: GRIB format files may have a (very) large amount of different shapes. `GRIBDatasets` might not work for your specific edge case. If this happens, please open an issue, if possible providing the file triggering the bug. + +## Missing windows support +This package currently doesn't work on Windows. See issue GRIB.jl for more information https://github.com/weech/GRIB.jl/issues/14 \ No newline at end of file diff --git a/src/messages.jl b/src/messages.jl index 69371b8..fbc44b5 100644 --- a/src/messages.jl +++ b/src/messages.jl @@ -24,10 +24,10 @@ const GRIB_STEP_UNITS_TO_SECONDS = [ """ - from_grib_date_time(date::Int, time::Int; epoch::DateTime=DEFAULT_EPOCH) + from_grib_date_time(date::Integer, time::Integer; epoch::DateTime=DEFAULT_EPOCH) Seconds from epoch to the given date and time. """ -function from_grib_date_time(date::Int, time::Int; epoch::DateTime=DEFAULT_EPOCH)::Int +function from_grib_date_time(date::Integer, time::Integer; epoch::DateTime=DEFAULT_EPOCH)::Integer hour = time ÷ 100 minute = time % 100 year = date ÷ 10000