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
providerhas changed back toOpenStreetMapfromCartoDB.Voyageras issues with OSM in Leaflet have been resolved.
Lifecycle Changes
- The functions deprecated in worldmet 1.0.0 now give a deprecation warning when used:
getMeta(),getMetaLive(),importNOAA(),importNOAAlite()andexportADMS(). They continue to work, but will be removed in a future release. Please useimport_isd_stations(),import_isd_stations_live(),import_isd_hourly(),import_isd_lite()andwrite_adms()instead.
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 withimport_isd_hourly(). Previously, whensky_conditiondid 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()andimport_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.
-
- 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.
- Combining many years of data no longer fails with column type conflicts (e.g., in
-
-
append_codes = TRUEno longer errors for stations whose attributes include an observation time (e.g., precipitation at many US stations), and now returns flag columns whenextra = 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 becomingTRUE).import_ghcn_monthly_prcp()now filters the returned data byyear. Previouslyyearwas ignored, and using it withtable = "inventory"alone caused an error.-
- 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
pwcin the global environment. - With
source = "fwf": present weather (pwc) is now returned whenhourly = TRUE; fields appearing in only one record of a file are no longer ignored;precipis no longer derived from row positions whenhourly = FALSE; and station codes missing from the ISD metadata no longer cause an error.
import_isd_lite()now respects itsprogressargument, and no longer errors when a station code is missing from the ISD metadata.-
-
ext = "delim"now writes files, using thedelimargument and a.csv,.tsvor.txtextension 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
The styling of marker popups in
import_ghcn_stations()andimport_isd_stations()has been improved.import_ghcn_stations()has gainedproviderin line withimport_isd_stations().The default
providerhas changed fromOpenStreetMaptoCartoDB.Voyagerdue to ongoing issues with OSM in Leaflet (https://github.com/rstudio/leaflet/issues/964).!BREAKING: The
lonargument ofimport_isd_stations()has been renamedlngto matchimport_ghcn_stations().
Bug Fixes
import_ghcn_hourly()andimport_isd_hourly()will now always return a complete year of data - i.e., 8760 rows for a non-leap year. Missing values will be padded withNAvalues (#59).import_ghcn_inventory()is now less sensitive to small changes in the format of NOAA’sghcnh-inventory.txtfile.import_ghcn_hourly()will now succeed even if certain columns are not present in the raw data files.import_ghcn_stations()now correctly show the WMO ID (previously this was a duplicated GSN flag).import_ghcn_hourly()now calculatessky_coverfrom thesky_conditioncolumn.
worldmet 1.0.0
CRAN release: 2026-02-02
Dependency Changes
arrowhas been added as a suggested dependency.leaflethas been downgraded to a suggested dependency. When a user requests a met station map they will be prompted to installleafletif it is not already installed.miraiandcarrierhave been upgrade to imported dependencies. This is because they are always required bypurrr::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.
Added
import_ghcn_stations(),import_ghcn_inventory(), andimport_ghcn_countries()to grant access to metadata for the GHCN.Added
import_ghcn_hourly(),import_ghcn_daily()andimport_ghcn_monthly()to grant access to the GHCNh, GHCNd and GHCNm services.Added
import_isd_stations(),import_isd_hourly()andimport_isd_lite()to provide a consistent API with the newly added GHCN functions.Added
write_met(), which allows for hourly ISD and GHCN and daily GHCN data to be easily split into years and sites and written to file. This is a more flexible alternative to usingimportNOAA(path=).
Deprecations
Several functions have been deprecated and replaced due to the updated worldmet API:
the
pathargument ->write_met()
worldmet 0.10.2
CRAN release: 2025-11-07
New Features
-
importNOAA()now recommends trying the othersourceif it fails to fetch data (i.e., ifsource = "delim"fails, the user will be prompted to trysource = "fwf").
worldmet 0.10.1
CRAN release: 2025-08-20
New Features
importNOAAlite()has gained thepathargument, in line withimportNOAA().importNOAAlite()now supports parallel processing using the mirai package, in line withimportNOAA().
Bug Fixes
-
importNOAAlite()can now import data from years other than 2025.
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.corewill still work for back-compatibility, but will give a once-per-session warning.
- Due to this change, users are recommended to set
getMeta()has gained thecrsargument 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
quietargument ofimportNOAA()now also toggles the progress bar.
New Features
-
getMeta()has gained thecrsargument, which allowsgetMeta(lat =, lon =)to be defined using other coordinate systems.
Bug Fixes
Fixed join problem due to dplyr updates.
Fixed spelling mistakes in
weatherCodesConverted the worldmet vignette to an article. This should ensure it is no longer reliant on NOAA’s servers. It can now be accessed at https://openair-project.github.io/worldmet/articles/worldmet.html.
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 withopenairmaps::networkMap().Added the
providerargument togetMeta(), allowing for users to define one or moreleafletbasemaps. Uses the same default asopenairmaps::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_12gives the sum of the precipitation over the past 12 hours and the sum of this column should be the annual total in mm.precipspreads 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
- Exporting
weatherCodesso that everything works when used by other packages through “explicit namespacing”” (e.g.worldmet::importNOAA()) without having tolibrary(worldmet).
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 everythingReturn 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
pathto allow users to save met data as an rds file.deprecate
freshoption ingetMeta().Assume
9999is missing for visibility (was999999)
worldmet 0.8.4
CRAN release: 2018-02-27
New Features
query live meta data when using
getMeta().parallel processing for sites and years.
use
readr::read_csv()for meta data (read.csv()seems very slow in R 3.4.3).
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
- don’t use
closeAllConnections().
worldmet 0.6
New Features
Add ability to return precipitation measurements, if available.
Add precipitation to
exportADMS()
