Skip to contents

worldmet (development version)

worldmet 1.2.0

CRAN release: 2026-11-09

New Features

  • import_ghcn_hourly() will now re-attempt to download data up to three times if the first attempt fails. This makes it more robust to interrupted connections with NOAA’s data store.

  • import_ghcn_stations() now caches data per session, speeding up data import.

  • The default provider has changed back to OpenStreetMap from CartoDB.Voyager as issues with OSM in Leaflet have been resolved.

Lifecycle Changes

Bug Fixes

This update contains a myriad of minor bug fixes. The following may change the values returned by, or written from, existing code.

  • import_ghcn_hourly() now calculates total cloud cover (cl/sky_cover) as the maximum of all cloud layer amounts, as documented and consistent with import_isd_hourly(). Previously, when sky_condition did not report a total, the lowest layer’s amount was used instead, under-reporting cloud cover in roughly 10% of observations.

  • When hourly = TRUE, import_ghcn_hourly() and import_isd_hourly() no longer return duplicate hours for stations whose latitude, longitude or elevation change within the requested period.

  • write_adms() now writes every year present in the data. Previously only the year of the first row was written, and all other data were silently dropped.

The following fixes are more minor and broadly make worldmet more robust to variations in returned data.

  • import_ghcn_hourly():

    • Combining many years of data no longer fails with column type conflicts (e.g., in minute, cloud layer heights or sub-hourly precipitation).
    • Unwanted code columns are now dropped when all but one code type is requested in codes.
    • Station metadata is now filled in for padded hours when abbr_names = FALSE.
  • import_ghcn_daily():

    • append_codes = TRUE no longer errors for stations whose attributes include an observation time (e.g., precipitation at many US stations), and now returns flag columns when extra = FALSE.
    • Soil temperature columns (sn**/sx**) are now converted from tenths of degrees when only one such column is present.
  • import_ghcn_monthly_temp() now always reads data flag columns as character, rather than sometimes as logical (e.g., a “T” flag becoming TRUE).

  • import_ghcn_monthly_prcp() now filters the returned data by year. Previously year was ignored, and using it with table = "inventory" alone caused an error.

  • import_isd_hourly():

    • A site-year is no longer discarded when all of its 12-hour precipitation values are missing.
    • It is no longer affected by an object called pwc in the global environment.
    • With source = "fwf": present weather (pwc) is now returned when hourly = TRUE; fields appearing in only one record of a file are no longer ignored; precip is no longer derived from row positions when hourly = FALSE; and station codes missing from the ISD metadata no longer cause an error.
  • import_isd_lite() now respects its progress argument, and no longer errors when a station code is missing from the ISD metadata.

  • write_met():

    • ext = "delim" now writes files, using the delim argument and a .csv, .tsv or .txt extension as appropriate. Previously no files were written.
    • Empty _.<ext> files are no longer written when stations in the data do not share the same years.
  • write_adms(interp = TRUE) no longer exits early without writing a file when one of the interpolated variables is entirely missing.

worldmet 1.1.0

CRAN release: 2026-05-18

New Features

Bug Fixes

worldmet 1.0.0

CRAN release: 2026-02-02

Dependency Changes

  • arrow has been added as a suggested dependency.

  • leaflet has been downgraded to a suggested dependency. When a user requests a met station map they will be prompted to install leaflet if it is not already installed.

  • mirai and carrier have been upgrade to imported dependencies. This is because they are always required by purrr::in_parallel() regardless of whether parallelisation is being used or not.

New Features

The Global Historical Climate Network (GHCN) has officially superseded NOAA’s Integrated Surface Database (ISD). Many changes in this release are related to this external change.

Deprecations

Several functions have been deprecated and replaced due to the updated worldmet API:

Bug Fixes

  • rlang::%||% is now explicitly imported by worldmet to avoid issues in old version of R.

worldmet 0.10.2

CRAN release: 2025-11-07

Dependency Changes

  • worldmet no longer depends on openair.

New Features

  • importNOAA() now recommends trying the other source if it fails to fetch data (i.e., if source = "delim" fails, the user will be prompted to try source = "fwf").

Bug Fixes

  • Fixed source = "fwf" failing when importing data from closed stations.

  • Fixed source = "fwf" when hourly = TRUE and multiple sites are imported.

  • Removed present weather condition when source = "fwf".

worldmet 0.10.1

CRAN release: 2025-08-20

New Features

Bug Fixes

worldmet 0.10.0

CRAN release: 2025-07-30

New Features

  • Parallel importing of NOAA data is now powered by mirai. This reduces the number of dependencies of worldmet, and also allows users to be more flexible with how parallel processing is achieved.

    • Due to this change, users are recommended to set mirai::daemons() themselves. n.core will still work for back-compatibility, but will give a once-per-session warning.
  • getMeta() has gained the crs argument to search NOAA ISD stations by coordinates other than latitude and longitude.

  • Added importNOAALite() to access the ISDLite filestore.

  • Added the importNOAA(source=) argument to import ISD data from different file stores. This option can be useful if one of the file stores is not available for whatever reason.

  • All error and warning messages are now powered by cli and are more informative.

worldmet 0.9.9

CRAN release: 2025-01-14

New Features

  • The quiet argument of importNOAA() now also toggles the progress bar.

New Features

  • getMeta() has gained the crs argument, which allows getMeta(lat =, lon =) to be defined using other coordinate systems.

Bug Fixes

worldmet 0.9.6

CRAN release: 2022-10-05

New Features

  • importNOAA() will now display a progress bar when multiple years of met data are to be imported.

  • Improved the formatting of the popups in getMeta() in line with openairmaps::networkMap().

  • Added the provider argument to getMeta(), allowing for users to define one or more leaflet basemaps. Uses the same default as openairmaps::networkMap().

  • exportADMS() now invisibly returns the input data, in line with, e.g., readr::write_csv().

worldmet 0.9.5

CRAN release: 2021-04-20

Bug Fixes

  • do not add precip to exportADMS()

  • Cloud cover data mostly spans 1 to 8 Oktas and no zero (clear sky); use ceil_hgt = 220000 (unlimited) to indicate clear sky when cloud cover is reported as missing.

  • Do not use ftp for site information.

worldmet 0.9.4

CRAN release: 2021-04-09

Bug Fixes

  • Fix precipitation. The precip_12 gives the sum of the precipitation over the past 12 hours and the sum of this column should be the annual total in mm. precip spreads the 12-hour total evenly across the previous 12 hours. worldmet no longer tries to combine 12 and 6 hour totals.

worldmet 0.9.3

CRAN release: 2021-03-29

Bug Fixes

  • Catch missing data error and report missing when importing data using importNOAA()

worldmet 0.9.2

CRAN release: 2020-09-17

New Features

worldmet 0.9.1

Bug Fixes

  • fix bug when lat and lon provided in getMeta()

  • fix bug when several years are selected and columns are different lengths when n.core = 1

worldmet 0.9.1

New Features

  • Significant changes due to NOAA storage formats and different storage locations

  • Remove options for precipitation and present weather in importNOAA(); just return everything

  • Return data as tibble

worldmet 0.8.8

CRAN release: 2020-02-12

New Features

  • export getMetaLive() to allow users direct access to all meta data and easy re-use without re-downloading.

  • add option path to allow users to save met data as an rds file.

  • deprecate fresh option in getMeta().

  • Assume 9999 is missing for visibility (was 999999)

Bug Fixes

  • fix short WBAN codes.

  • make sure all meta data are used and not only sites with most recent year

worldmet 0.8.4

CRAN release: 2018-02-27

New Features

Bug Fixes

  • fix bug when data not available for a year when using parallel processing

worldmet 0.8.0

CRAN release: 2017-12-18

New Features

  • downloads now from webserver rather than ftp. Should be faster and allow more downloads. Thanks to Stuart Grange.

  • add parallel processing using foreach.

worldmet 0.7.4

Bug Fixes

worldmet 0.7.3

New Features

  • default to downloading fresh meta data each time.

  • update meta data.

Bug Fixes

  • fix current year problem (base on meta data available in package).

worldmet 0.7.2

Bug Fixes

  • make sure data are returned with NA when missing and not NaN.

worldmet 0.6

New Features

  • Add ability to return precipitation measurements, if available.

  • Add precipitation to exportADMS()