Skip to contents

Parse local BOM daily coastal waters forecast XML file(s) and return a data frame for a specified state or territory or all Australia.

Usage

parse_coastal_forecast(state = "AUS", filepath)

Arguments

state

Required value of an Australian state or territory as full name or postal code. Fuzzy string matching via agrep is done.

filepath

A string providing the directory location of the coastal forecast file(s) to parse. See Details for more.

Value

A data.table of an Australia BOMCoastal Waters Forecast. For full details of fields and units returned see Appendix 5 in the bomrang vignette, use
vignette("bomrang", package = "bomrang") to view.

Details

Allowed state and territory postal codes, only one state per request or all using AUS.

ACT

Australian Capital Territory (will return NSW)

NSW

New South Wales

NT

Northern Territory

QLD

Queensland

SA

South Australia

TAS

Tasmania

VIC

Victoria

WA

Western Australia

AUS

Australia, returns forecast for all states, NT and ACT

The filepath argument will only accept a directory where files are located for parsing. DO NOT supply the full path including the file name. This function will only parse the requested state or all of Australia in the same fashion as get_coastal_forecast, provided that the files are all present in the directory.

References

Forecast data come from Australian Bureau of Meteorology (BOM) Weather Data Services
http://www.bom.gov.au/catalogue/data-feeds.shtml

Location data and other metadata come from the BOM anonymous FTP server with spatial data
ftp://ftp.bom.gov.au/anon/home/adfd/spatial/, specifically the DBF file portion of a shapefile,
ftp://ftp.bom.gov.au/anon/home/adfd/spatial/IDM00003.dbf

Author

Dean Marchiori, [email protected] and Paul Melloy [email protected]

Examples

# \donttest{
# parse the coastal forecast for Queensland

#download to tempfile() using basename() to keep original name
download.file(url = "ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11290.xml",
              destfile = file.path(tempdir(),
              basename("ftp://ftp.bom.gov.au/anon/gen/fwo/IDQ11290.xml")),
              mode = "wb")

coastal_forecast <- parse_coastal_forecast(state = "QLD",
                                           filepath = tempdir())
coastal_forecast
#>     index product_id    type state_code
#>  1:  <NA>   IDQ11290    <NA>        QLD
#>  2:  <NA>   IDQ11290    <NA>        QLD
#>  3:  <NA>   IDQ11290    <NA>        QLD
#>  4:  <NA>   IDQ11290    <NA>        QLD
#>  5:     0   IDQ11290    <NA>        QLD
#>  6:     1   IDQ11290    <NA>        QLD
#>  7:     2   IDQ11290    <NA>        QLD
#>  8:     0   IDQ11290    <NA>        QLD
#>  9:     1   IDQ11290    <NA>        QLD
#> 10:     2   IDQ11290    <NA>        QLD
#> 11:     0   IDQ11290 Coastal        QLD
#> 12:     1   IDQ11290 Coastal        QLD
#> 13:     2   IDQ11290 Coastal        QLD
#> 14:     0   IDQ11290    <NA>        QLD
#> 15:     1   IDQ11290    <NA>        QLD
#> 16:     2   IDQ11290    <NA>        QLD
#> 17:     0   IDQ11290    <NA>        QLD
#> 18:     1   IDQ11290    <NA>        QLD
#> 19:     2   IDQ11290    <NA>        QLD
#> 20:     0   IDQ11290    <NA>        QLD
#> 21:     1   IDQ11290    <NA>        QLD
#> 22:     2   IDQ11290    <NA>        QLD
#> 23:     0   IDQ11290    <NA>        QLD
#> 24:     1   IDQ11290    <NA>        QLD
#> 25:     2   IDQ11290    <NA>        QLD
#> 26:     0   IDQ11290    <NA>        QLD
#> 27:     1   IDQ11290    <NA>        QLD
#> 28:     2   IDQ11290    <NA>        QLD
#> 29:     0   IDQ11290    <NA>        QLD
#> 30:     1   IDQ11290    <NA>        QLD
#> 31:     2   IDQ11290    <NA>        QLD
#> 32:     0   IDQ11290   Local        QLD
#> 33:     1   IDQ11290   Local        QLD
#> 34:     2   IDQ11290   Local        QLD
#> 35:     0   IDQ11290    <NA>        QLD
#> 36:     1   IDQ11290    <NA>        QLD
#> 37:     2   IDQ11290    <NA>        QLD
#> 38:     0   IDQ11290    <NA>        QLD
#> 39:     1   IDQ11290    <NA>        QLD
#> 40:     2   IDQ11290    <NA>        QLD
#> 41:     0   IDQ11290   Local        QLD
#> 42:     1   IDQ11290   Local        QLD
#> 43:     2   IDQ11290   Local        QLD
#> 44:     0   IDQ11290    <NA>        QLD
#> 45:     1   IDQ11290    <NA>        QLD
#> 46:     2   IDQ11290    <NA>        QLD
#> 47:     0   IDQ11290    <NA>        QLD
#> 48:     1   IDQ11290    <NA>        QLD
#> 49:     2   IDQ11290    <NA>        QLD
#>     index product_id    type state_code
#>                                                          dist_name pt_1_name
#>  1:                                                     Queensland      <NA>
#>  2:                                 Queensland Gulf of Carpentaria      <NA>
#>  3:                                               North Queensland      <NA>
#>  4:                                               South Queensland      <NA>
#>  5: South East Gulf of Carpentaria: QLD-NT Border to Cape Keerweer      <NA>
#>  6: South East Gulf of Carpentaria: QLD-NT Border to Cape Keerweer      <NA>
#>  7: South East Gulf of Carpentaria: QLD-NT Border to Cape Keerweer      <NA>
#>  8:   North East Gulf of Carpentaria: Cape Keerweer to Crab Island      <NA>
#>  9:   North East Gulf of Carpentaria: Cape Keerweer to Crab Island      <NA>
#> 10:   North East Gulf of Carpentaria: Cape Keerweer to Crab Island      <NA>
#> 11:                                                  Torres Strait      <NA>
#> 12:                                                  Torres Strait      <NA>
#> 13:                                                  Torres Strait      <NA>
#> 14:                  Peninsula Coast: Sharp Point to Cape Melville      <NA>
#> 15:                  Peninsula Coast: Sharp Point to Cape Melville      <NA>
#> 16:                  Peninsula Coast: Sharp Point to Cape Melville      <NA>
#> 17:              Cooktown Coast: Cape Melville to Cape Tribulation      <NA>
#> 18:              Cooktown Coast: Cape Melville to Cape Tribulation      <NA>
#> 19:              Cooktown Coast: Cape Melville to Cape Tribulation      <NA>
#> 20:                     Cairns Coast: Cape Tribulation to Cardwell      <NA>
#> 21:                     Cairns Coast: Cape Tribulation to Cardwell      <NA>
#> 22:                     Cairns Coast: Cape Tribulation to Cardwell      <NA>
#> 23:                            Townsville Coast: Cardwell to Bowen      <NA>
#> 24:                            Townsville Coast: Cardwell to Bowen      <NA>
#> 25:                            Townsville Coast: Cardwell to Bowen      <NA>
#> 26:                             Mackay Coast: Bowen to St Lawrence      <NA>
#> 27:                             Mackay Coast: Bowen to St Lawrence      <NA>
#> 28:                             Mackay Coast: Bowen to St Lawrence      <NA>
#> 29:                Capricornia Coast: St Lawrence to Burnett Heads      <NA>
#> 30:                Capricornia Coast: St Lawrence to Burnett Heads      <NA>
#> 31:                Capricornia Coast: St Lawrence to Burnett Heads      <NA>
#> 32:                                                     Hervey Bay      <NA>
#> 33:                                                     Hervey Bay      <NA>
#> 34:                                                     Hervey Bay      <NA>
#> 35:         Fraser Island Coast: Sandy Cape to Double Island Point      <NA>
#> 36:         Fraser Island Coast: Sandy Cape to Double Island Point      <NA>
#> 37:         Fraser Island Coast: Sandy Cape to Double Island Point      <NA>
#> 38:     Sunshine Coast Waters: Double Island Point to Cape Moreton      <NA>
#> 39:     Sunshine Coast Waters: Double Island Point to Cape Moreton      <NA>
#> 40:     Sunshine Coast Waters: Double Island Point to Cape Moreton      <NA>
#> 41:                                                    Moreton Bay      <NA>
#> 42:                                                    Moreton Bay      <NA>
#> 43:                                                    Moreton Bay      <NA>
#> 44:                Gold Coast Waters: Cape Moreton to Point Danger      <NA>
#> 45:                Gold Coast Waters: Cape Moreton to Point Danger      <NA>
#> 46:                Gold Coast Waters: Cape Moreton to Point Danger      <NA>
#> 47:                             Great Barrier Reef Offshore Waters      <NA>
#> 48:                             Great Barrier Reef Offshore Waters      <NA>
#> 49:                             Great Barrier Reef Offshore Waters      <NA>
#>                                                          dist_name pt_1_name
#>     pt_2_name       aac    start_time_local      end_time_local utc_offset
#>  1:      <NA> QLD_FA001 2022-06-02 04:46:52 2022-06-02 04:46:52      10:00
#>  2:      <NA> QLD_FA002 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#>  3:      <NA> QLD_FA003 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#>  4:      <NA> QLD_FA004 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#>  5:      <NA> QLD_MW001 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#>  6:      <NA> QLD_MW001 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#>  7:      <NA> QLD_MW001 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#>  8:      <NA> QLD_MW002 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#>  9:      <NA> QLD_MW002 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 10:      <NA> QLD_MW002 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 11:      <NA> QLD_MW003 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 12:      <NA> QLD_MW003 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 13:      <NA> QLD_MW003 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 14:      <NA> QLD_MW004 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 15:      <NA> QLD_MW004 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 16:      <NA> QLD_MW004 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 17:      <NA> QLD_MW005 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 18:      <NA> QLD_MW005 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 19:      <NA> QLD_MW005 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 20:      <NA> QLD_MW006 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 21:      <NA> QLD_MW006 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 22:      <NA> QLD_MW006 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 23:      <NA> QLD_MW007 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 24:      <NA> QLD_MW007 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 25:      <NA> QLD_MW007 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 26:      <NA> QLD_MW008 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 27:      <NA> QLD_MW008 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 28:      <NA> QLD_MW008 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 29:      <NA> QLD_MW009 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 30:      <NA> QLD_MW009 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 31:      <NA> QLD_MW009 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 32:      <NA> QLD_MW010 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 33:      <NA> QLD_MW010 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 34:      <NA> QLD_MW010 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 35:      <NA> QLD_MW011 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 36:      <NA> QLD_MW011 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 37:      <NA> QLD_MW011 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 38:      <NA> QLD_MW012 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 39:      <NA> QLD_MW012 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 40:      <NA> QLD_MW012 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 41:      <NA> QLD_MW013 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 42:      <NA> QLD_MW013 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 43:      <NA> QLD_MW013 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 44:      <NA> QLD_MW014 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 45:      <NA> QLD_MW014 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 46:      <NA> QLD_MW014 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#> 47:      <NA> QLD_MW015 2022-06-02 05:00:00 2022-06-02 05:00:00      10:00
#> 48:      <NA> QLD_MW015 2022-06-03 00:00:00 2022-06-03 00:00:00      10:00
#> 49:      <NA> QLD_MW015 2022-06-04 00:00:00 2022-06-04 00:00:00      10:00
#>     pt_2_name       aac    start_time_local      end_time_local utc_offset
#>          start_time_utc        end_time_utc
#>  1: 2022-06-02 04:46:52 2022-06-02 04:46:52
#>  2: 2022-06-02 05:00:00 2022-06-02 05:00:00
#>  3: 2022-06-02 05:00:00 2022-06-02 05:00:00
#>  4: 2022-06-02 05:00:00 2022-06-02 05:00:00
#>  5: 2022-06-02 05:00:00 2022-06-02 05:00:00
#>  6: 2022-06-03 00:00:00 2022-06-03 00:00:00
#>  7: 2022-06-04 00:00:00 2022-06-04 00:00:00
#>  8: 2022-06-02 05:00:00 2022-06-02 05:00:00
#>  9: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 10: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 11: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 12: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 13: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 14: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 15: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 16: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 17: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 18: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 19: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 20: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 21: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 22: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 23: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 24: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 25: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 26: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 27: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 28: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 29: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 30: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 31: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 32: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 33: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 34: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 35: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 36: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 37: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 38: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 39: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 40: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 41: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 42: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 43: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 44: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 45: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 46: 2022-06-04 00:00:00 2022-06-04 00:00:00
#> 47: 2022-06-02 05:00:00 2022-06-02 05:00:00
#> 48: 2022-06-03 00:00:00 2022-06-03 00:00:00
#> 49: 2022-06-04 00:00:00 2022-06-04 00:00:00
#>          start_time_utc        end_time_utc
#>                                                                              forecast_seas
#>  1:                                                                                   <NA>
#>  2:                                                                                   <NA>
#>  3:                                                                                   <NA>
#>  4:                                                                                   <NA>
#>  5:                                                                        Around 1 metre.
#>  6:                                                                        Around 1 metre.
#>  7:                                                                         Below 1 metre.
#>  8:                                                                        Around 1 metre.
#>  9:                           1 to 1.5 metres, decreasing to 1 metre during the afternoon.
#> 10:                1 to 1.5 metres, decreasing to 1 metre during the afternoon or evening.
#> 11:                           Around 1 metre, increasing to 1 to 1.5 metres around midday.
#> 12:  1 to 1.5 metres, increasing to 1.5 to 2 metres outside the reef during the afternoon.
#> 13:                       1 to 1.5 metres, increasing to 1.5 to 2 metres outside the reef.
#> 14:                      Around 1 metre, increasing to 1 to 1.5 metres during the morning.
#> 15: 1 to 1.5 metres, increasing to 1 to 2 metres between Cape Grenville and Cape Sidmouth.
#> 16:                                                                       1 to 1.5 metres.
#> 17:                       Around 1 metre, increasing to 1 to 1.5 metres north of Cooktown.
#> 18:                       Around 1 metre, increasing to 1 to 1.5 metres north of Cooktown.
#> 19:                         Below 1 metre, increasing to 1 to 1.5 metres outside the reef.
#> 20:                                                                         Below 1 metre.
#> 21:                                                                         Below 1 metre.
#> 22:                                                                         Below 1 metre.
#> 23:                                                                        Around 1 metre.
#> 24:                                                                         Below 1 metre.
#> 25:                                                                      Below 0.5 metres.
#> 26:                                                                         Below 1 metre.
#> 27:                                                                         Below 1 metre.
#> 28:                                                                      Below 0.5 metres.
#> 29:                               1 to 1.5 metres, decreasing below 1 metre around midday.
#> 30:                                                                         Below 1 metre.
#> 31:                                                                        Around 1 metre.
#> 32:                                                                        Around 1 metre.
#> 33:                                                                         Below 1 metre.
#> 34:                                                                         Below 1 metre.
#> 35:                               1 to 1.5 metres, decreasing below 1 metre around midday.
#> 36:                                                                        Around 1 metre.
#> 37:                1 to 1.5 metres, decreasing to 1 metre during the afternoon or evening.
#> 38:                               1 to 1.5 metres, decreasing below 1 metre around midday.
#> 39:           Around 1 metre, increasing to 1 to 1.5 metres offshore later in the evening.
#> 40:          1 to 2 metres, decreasing to 1 to 1.5 metres during the afternoon or evening.
#> 41:                                                                        Around 1 metre.
#> 42:                                                                         Below 1 metre.
#> 43:                                                                        Around 1 metre.
#> 44:                               1 to 1.5 metres, decreasing below 1 metre around midday.
#> 45:            Below 1 metre, increasing to 1 to 1.5 metres offshore later in the evening.
#> 46:      1.5 to 2.5 metres, decreasing to 1 to 1.5 metres during the afternoon or evening.
#> 47:                                                                        Around 1 metre.
#> 48:                                                                         Below 1 metre.
#> 49:                                                                         Below 1 metre.
#>                                                                              forecast_seas
#>                                                                                                   forecast_weather
#>  1:                                                                                                           <NA>
#>  2:                                                                                                           <NA>
#>  3:                                                                                                           <NA>
#>  4:                                                                                                           <NA>
#>  5:                                                                                                         Sunny.
#>  6:                                                                                                         Sunny.
#>  7:                                                                                                         Sunny.
#>  8: Mostly sunny day. The chance of a thunderstorm offshore north of Cullen Point late this afternoon and evening.
#>  9:                                    Partly cloudy. The chance of a thunderstorm offshore north of Cullen Point.
#> 10:                                                                                                  Mostly sunny.
#> 11:                                                                   Partly cloudy. The chance of a thunderstorm.
#> 12:                                                                   Partly cloudy. The chance of a thunderstorm.
#> 13:                                            Partly cloudy. 50% chance of showers. The chance of a thunderstorm.
#> 14:                                  Partly cloudy. The chance of a thunderstorm offshore north of Cape Grenville.
#> 15:                                                                                                 Partly cloudy.
#> 16:                                      Partly cloudy. The chance of a thunderstorm in the afternoon and evening.
#> 17:                                                                                                 Partly cloudy.
#> 18:                                                                                                 Partly cloudy.
#> 19:                                                                                                 Partly cloudy.
#> 20:                                                                                                 Partly cloudy.
#> 21:                                                                                                 Partly cloudy.
#> 22:                                                                                                 Partly cloudy.
#> 23:                                                                                                  Mostly sunny.
#> 24:                                                                                                 Partly cloudy.
#> 25:                                                                                                  Mostly sunny.
#> 26:                                                                                                 Partly cloudy.
#> 27:                                                                                                  Mostly sunny.
#> 28:                                                                                                         Sunny.
#> 29:                                                                                                 Partly cloudy.
#> 30:                                                                                                  Mostly sunny.
#> 31:                                                                                                  Mostly sunny.
#> 32:                                                                                                 Partly cloudy.
#> 33:                                                                                                  Mostly sunny.
#> 34:                                                                          Partly cloudy. 50% chance of showers.
#> 35:                                                                                                 Partly cloudy.
#> 36:                                                                                                 Partly cloudy.
#> 37:                                                                          Partly cloudy. 70% chance of showers.
#> 38:                                                                                                 Partly cloudy.
#> 39:                                                        Mostly sunny day. 50% chance of showers in the evening.
#> 40:                                                                          Partly cloudy. 70% chance of showers.
#> 41:                                                                                                 Partly cloudy.
#> 42:                                                                           Mostly sunny. 70% chance of showers.
#> 43:                                                                          Partly cloudy. 70% chance of showers.
#> 44:                                                                                                 Partly cloudy.
#> 45:                                                                          Partly cloudy. 70% chance of showers.
#> 46:                                                                          Partly cloudy. 80% chance of showers.
#> 47:                                                                                                 Partly cloudy.
#> 48:                                                                                                 Partly cloudy.
#> 49:                                                                                                  Mostly sunny.
#>                                                                                                   forecast_weather
#>                                                                                                                                                                                                                                                                                                     forecast_winds
#>  1:                                                                                                                                                                                                                                                                                                           <NA>
#>  2:                                                                                                                                                                                                                                                                                                           <NA>
#>  3:                                                                                                                                                                                                                                                                                                           <NA>
#>  4:                                                                                                                                                                                                                                                                                                           <NA>
#>  5:                                                                                           Southeasterly 10 to 15 knots, reaching up to 20 knots offshore south of Kowanyama during the morning. Winds tending easterly in the morning then becoming variable about 10 knots in the late afternoon and evening.
#>  6:                                                                                                                                                           Variable about 10 knots becoming northeast to southeasterly 10 to 15 knots before dawn then becoming variable about 10 knots in the early afternoon.
#>  7:                                                                                                                                         East to southeasterly 10 to 15 knots becoming variable about 10 knots during the afternoon then becoming southeast to southwesterly 10 to 15 knots during the evening.
#>  8:                                                                                                                                                                              East to southeasterly 10 to 15 knots turning easterly in the morning. Winds reaching up to 20 knots offshore in the late evening.
#>  9:                                                                                                                                                                                                                                                                          East to southeasterly 15 to 20 knots.
#> 10:                                                                                                                                                                                                         East to southeasterly 15 to 20 knots tending south to southeasterly 10 to 15 knots during the evening.
#> 11:                                                                                                                                                                                                                                                                          East to southeasterly 15 to 20 knots.
#> 12:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 25 knots.
#> 13:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 14:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 15:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 16:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 17:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 18:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 19:                                                                                                                                                                                                                                                                                  Southeasterly 15 to 20 knots.
#> 20:                                                                                                                                                                                                          Southeasterly 10 to 15 knots. Winds inshore tending southwesterly around 10 knots early in the south.
#> 21:                                                                                                                                                                                                                                 Southeasterly 10 to 15 knots decreasing to about 10 knots in the late evening.
#> 22:                                                                                                                                                                                                                                Southeasterly about 10 knots increasing to 10 to 15 knots during the afternoon.
#> 23:                                                                                                                                                                                                                       Southeasterly 10 to 15 knots. Winds inshore tending southwesterly around 10 knots early.
#> 24:                                                                                                                                                                                            East to southeasterly 10 to 15 knots tending east to northeasterly below 10 knots during the afternoon and evening.
#> 25:                                                                                                                                                                                                                                                                          East to southeasterly below 10 knots.
#> 26:                                                                                                                                                                                                                       Southeasterly 10 to 15 knots. Winds inshore tending southwesterly around 10 knots early.
#> 27:                                                                                                                                                                                                                 Southeasterly 10 to 15 knots turning east to northeasterly below 10 knots in the late morning.
#> 28:                                                                                                                                                                                                                                                                                       Variable about 10 knots.
#> 29:                                                                                                        South to southwesterly 10 to 15 knots, reaching up to 20 knots offshore south of Cape Capricorn early in the morning. Winds turning south to southeasterly during the late morning and early afternoon.
#> 30:                                                                                                                                                                                                                         Variable about 10 knots becoming north to northeasterly 10 to 15 knots in the evening.
#> 31:                                                                                                                                                                   Northerly 10 to 15 knots tending northwesterly 15 to 20 knots during the morning then becoming variable about 10 knots during the afternoon.
#> 32:                                                                                                                                                   South to southwesterly 15 to 20 knots easing to 10 to 15 knots during the morning then tending south to southeasterly below 10 knots in the early afternoon.
#> 33:                                                                                                   Southwesterly around 10 knots, becoming variable below 10 knots in the morning. Winds shifting northeasterly 10 to 15 knots in the afternoon and increasing to northerly 15 to 20 knots in the late evening.
#> 34:                                                                                                                                                                         North to northwesterly 10 to 15 knots turning westerly during the day and shifting southwesterly around 10 knots in the early evening.
#> 35:                                                                                       South to southwesterly 15 to 20 knots. Winds turning southerly during the morning then tending south to southeasterly 10 to 15 knots during the afternoon before tending east to southeasterly around 10 knots at night.
#> 36:                                                                                                                         East to northeasterly 10 to 15 knots increasing to north to northeasterly 15 to 20 knots in the afternoon. Inshore winds tending west to southwesterly around 10 knots in the morning.
#> 37:                                                                                                                                                                                                       North to northwesterly 15 to 20 knots turning west to southwesterly 10 to 15 knots in the early evening.
#> 38:                                                                                             South to southwesterly 15 to 20 knots turning southerly during the morning. Winds tending south to southeasterly 10 to 15 knots during the afternoon, then tending east to southeasterly around 10 knots at night.
#> 39:                                                                                                                         East to northeasterly 10 to 15 knots increasing to north to northeasterly 15 to 20 knots in the afternoon. Inshore winds tending west to southwesterly around 10 knots in the morning.
#> 40:                                                                                                                                                                                                             North to northwesterly 20 to 25 knots turning west to southwesterly 20 to 30 knots during the day.
#> 41: Southwesterly 10 to 15 knots, reaching up to 20 knots in the northern bay early in the morning. Winds turning south to southwesterly 10 to 15 knots during the morning then tending south to southeasterly below 10 knots during the afternoon. Winds tending south to southwesterly around 10 knots at night.
#> 42:                                                                                                                                 East to northeasterly 10 to 15 knots increasing to north to northeasterly 15 to 20 knots in the afternoon. Inshore winds tending southwesterly around 10 knots in the morning.
#> 43:                                                                                                                                                                                                                                     Northwesterly 10 to 15 knots turning west to southwesterly during the day.
#> 44:                                                  Southwesterly 10 to 15 knots, reaching up to 20 knots offshore early in the morning. Winds turning southerly 10 to 15 knots during the morning then tending southeasterly during the afternoon before tending east to southeasterly around 10 knots at night.
#> 45:                                                                                           East to northeasterly 10 to 15 knots increasing to northerly 15 to 20 knots in the afternoon and reaching 20 to 25 knots in the evening. Inshore winds tending west to southwesterly around 10 knots in the morning.
#> 46:                                                                                                                                                                     North to northwesterly 20 to 25 knots turning westerly 20 to 30 knots during the morning then decreasing to 15 to 20 knots during the day.
#> 47:                                                                                                                                                                                                               Southeasterly 10 to 15 knots, reaching up to 20 knots north of Creal Reef in the late afternoon.
#> 48:                                                                                                                                                                                             Southeasterly 10 to 15 knots turning east to northeasterly below 10 knots in the late morning and early afternoon.
#> 49:                                                                                                                                                                                                                                                                                       Variable about 10 knots.
#>                                                                                                                                                                                                                                                                                                     forecast_winds
#>                                                                                                                       forecast_swell1
#>  1:                                                                                                                              <NA>
#>  2:                                                                                                                              <NA>
#>  3:                                                                                                                              <NA>
#>  4:                                                                                                                              <NA>
#>  5:                                                                                                                 Below 0.5 metres.
#>  6:                                                                                                      Northeasterly below 1 metre.
#>  7:                                                                                             North to northeasterly below 1 metre.
#>  8:                                                                                                                 Below 0.5 metres.
#>  9:                                                                                                          Southerly below 1 metre.
#> 10:                                                                                              East to northeasterly below 1 metre.
#> 11:                                Southeasterly around 1 metre outside the reef, increasing to 1 to 1.5 metres later in the evening.
#> 12:                                                                                            East to southeasterly 1 to 1.5 metres.
#> 13:                                           East to southeasterly 1 to 1.5 metres, decreasing to around 1 metre during the evening.
#> 14:                                                                            East to southeasterly around 1 metre outside the reef.
#> 15:                                       Easterly around 1 metre outside the reef, increasing to 1 to 1.5 metres during the morning.
#> 16:                                       Easterly 1 to 1.5 metres outside the reef, decreasing to around 1 metre during the evening.
#> 17:                                                                                         Northeast to southeasterly below 1 metre.
#> 18:                                                                                         Easterly around 1 metre outside the reef.
#> 19:                                                                                         Easterly around 1 metre outside the reef.
#> 20:                                                                                                                 Below 0.5 metres.
#> 21:                                                                                                           Easterly below 1 metre.
#> 22:                                                                                                           Easterly below 1 metre.
#> 23:                                                                                                                 Below 0.5 metres.
#> 24:                                                                                                           Easterly below 1 metre.
#> 25:                                                                                              East to northeasterly below 1 metre.
#> 26:                                                                                                                 Below 0.5 metres.
#> 27:                                                                                                           Easterly below 1 metre.
#> 28:                                                                                                           Easterly below 1 metre.
#> 29:                                                                   South to southeasterly around 1 metre offshore southern waters.
#> 30:                      South to southeasterly 1 to 1.5 metres offshore southern waters, decreasing to around 1 metre around midday.
#> 31:                                                                  South to southeasterly 1 to 1.5 metres offshore southern waters.
#> 32:                                                                                                                 Below 0.5 metres.
#> 33:                                                                                             Below 0.5 metres in the northern bay.
#> 34:                                                                                             Below 0.5 metres in the northern bay.
#> 35:                                                          Southerly below 1 metre inshore, increasing to 1 to 1.5 metres offshore.
#> 36:                                                          Southerly below 1 metre inshore, increasing to 1 to 1.5 metres offshore.
#> 37:                                                           Southerly around 1 metre inshore, increasing to 1 to 2 metres offshore.
#> 38:                                         Southerly below 1 metre inshore, increasing to 1 to 2 metres offshore during the morning.
#> 39: Southerly 1 to 2 metres, decreasing to 1 to 1.5 metres during the morning, then increasing to 1 to 2 metres later in the evening.
#> 40:                                                        Southerly 1 to 2 metres, decreasing to 1 to 1.5 metres during the morning.
#> 41:                                                                                                                              <NA>
#> 42:                                                                                                                              <NA>
#> 43:                                                                                                                              <NA>
#> 44:                                                    Southerly 1 to 1.5 metres, increasing to 1.5 to 2.5 metres during the morning.
#> 45:                                                       Southerly around 1 metre inshore, increasing to 1.5 to 2.5 metres offshore.
#> 46:                                                    Southerly 1.5 to 2 metres, decreasing to 1 to 1.5 metres during the afternoon.
#> 47:                                                                                         Northeast to southeasterly below 1 metre.
#> 48:                                                                                                      Southeasterly below 1 metre.
#> 49:                                                                                              East to southeasterly below 1 metre.
#>                                                                                                                       forecast_swell1
#>     forecast_swell2 forecast_caution marine_forecast tropical_system_location
#>  1:            <NA>             <NA>            <NA>                       NA
#>  2:            <NA>             <NA>            <NA>                       NA
#>  3:            <NA>             <NA>            <NA>                       NA
#>  4:            <NA>             <NA>            <NA>                       NA
#>  5:            <NA>             <NA>            <NA>                       NA
#>  6:            <NA>             <NA>            <NA>                       NA
#>  7:            <NA>             <NA>            <NA>                       NA
#>  8:            <NA>             <NA>            <NA>                       NA
#>  9:            <NA>             <NA>            <NA>                       NA
#> 10:            <NA>             <NA>            <NA>                       NA
#> 11:            <NA>             <NA>            <NA>                       NA
#> 12:            <NA>             <NA>            <NA>                       NA
#> 13:            <NA>             <NA>            <NA>                       NA
#> 14:            <NA>             <NA>            <NA>                       NA
#> 15:            <NA>             <NA>            <NA>                       NA
#> 16:            <NA>             <NA>            <NA>                       NA
#> 17:            <NA>             <NA>            <NA>                       NA
#> 18:            <NA>             <NA>            <NA>                       NA
#> 19:            <NA>             <NA>            <NA>                       NA
#> 20:            <NA>             <NA>            <NA>                       NA
#> 21:            <NA>             <NA>            <NA>                       NA
#> 22:            <NA>             <NA>            <NA>                       NA
#> 23:            <NA>             <NA>            <NA>                       NA
#> 24:            <NA>             <NA>            <NA>                       NA
#> 25:            <NA>             <NA>            <NA>                       NA
#> 26:            <NA>             <NA>            <NA>                       NA
#> 27:            <NA>             <NA>            <NA>                       NA
#> 28:            <NA>             <NA>            <NA>                       NA
#> 29:            <NA>             <NA>            <NA>                       NA
#> 30:            <NA>             <NA>            <NA>                       NA
#> 31:            <NA>             <NA>            <NA>                       NA
#> 32:            <NA>             <NA>            <NA>                       NA
#> 33:            <NA>             <NA>            <NA>                       NA
#> 34:            <NA>             <NA>            <NA>                       NA
#> 35:            <NA>             <NA>            <NA>                       NA
#> 36:            <NA>             <NA>            <NA>                       NA
#> 37:            <NA>             <NA>            <NA>                       NA
#> 38:            <NA>             <NA>            <NA>                       NA
#> 39:            <NA>             <NA>            <NA>                       NA
#> 40:            <NA>             <NA>            <NA>                       NA
#> 41:            <NA>             <NA>            <NA>                       NA
#> 42:            <NA>             <NA>            <NA>                       NA
#> 43:            <NA>             <NA>            <NA>                       NA
#> 44:            <NA>             <NA>            <NA>                       NA
#> 45:            <NA>             <NA>            <NA>                       NA
#> 46:            <NA>             <NA>            <NA>                       NA
#> 47:            <NA>             <NA>            <NA>                       NA
#> 48:            <NA>             <NA>            <NA>                       NA
#> 49:            <NA>             <NA>            <NA>                       NA
#>     forecast_swell2 forecast_caution marine_forecast tropical_system_location
#>     forecast_waves
#>  1:             NA
#>  2:             NA
#>  3:             NA
#>  4:             NA
#>  5:             NA
#>  6:             NA
#>  7:             NA
#>  8:             NA
#>  9:             NA
#> 10:             NA
#> 11:             NA
#> 12:             NA
#> 13:             NA
#> 14:             NA
#> 15:             NA
#> 16:             NA
#> 17:             NA
#> 18:             NA
#> 19:             NA
#> 20:             NA
#> 21:             NA
#> 22:             NA
#> 23:             NA
#> 24:             NA
#> 25:             NA
#> 26:             NA
#> 27:             NA
#> 28:             NA
#> 29:             NA
#> 30:             NA
#> 31:             NA
#> 32:             NA
#> 33:             NA
#> 34:             NA
#> 35:             NA
#> 36:             NA
#> 37:             NA
#> 38:             NA
#> 39:             NA
#> 40:             NA
#> 41:             NA
#> 42:             NA
#> 43:             NA
#> 44:             NA
#> 45:             NA
#> 46:             NA
#> 47:             NA
#> 48:             NA
#> 49:             NA
#>     forecast_waves
# }