Skip to content

Commit

Permalink
Add windows disclaimer and change int to Integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lupemba committed Feb 21, 2024
1 parent 053dd42 commit 8f5607c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f5607c

Please sign in to comment.