15-day US hourly weather forecast data (example: temperature, precipitation, wind) produced by the Global Forecast System (GFS) from the National Oceanic and Atmospheric Administration (NOAA).
The Global Forecast System (GFS) is a weather forecast model produced by the National Centers for Environmental Prediction (NCEP). Dozens of atmospheric and land-soil variables are available through this dataset, from temperatures, winds, and precipitation to soil moisture and atmospheric ozone concentration. The entire globe is covered by the GFS at a base horizontal resolution of 18 miles (28 kilometers) between grid points, which is used by the operational forecasters who predict weather out to 16 days in the future. Horizontal resolution drops to 44 miles (70 kilometers) between grid point for forecasts between one week and two weeks. This dataset is specifically sourced from GFS4.
Volume and Retention
This dataset is stored in Parquet format. It is updated daily with 15-day, forward-looking forecast data. There are about 9B rows (200GB) in total as of 2019.
This dataset contains historical records accumulated from December 2018 to the present. You can use parameter settings in our SDK to fetch data within a specific time range.
Storage Location
This dataset is stored in the East US Azure region. Allocating compute resources in East US is recommended for affinity.
Additional Information
This dataset is sourced from NOAA Global Forecast System. Additional information about this dataset can be found here and here. Email ncei.orders@noaa.gov if you have any questions about the data source.
Notices
MICROSOFT PROVIDES AZURE OPEN DATASETS ON AN “AS IS” BASIS. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, GUARANTEES OR CONDITIONS WITH RESPECT TO YOUR USE OF THE DATASETS. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAW, MICROSOFT DISCLAIMS ALL LIABILITY FOR ANY DAMAGES OR LOSSES, INCLUDING DIRECT, CONSEQUENTIAL, SPECIAL, INDIRECT, INCIDENTAL OR PUNITIVE, RESULTING FROM YOUR USE OF THE DATASETS.
This dataset is provided under the original terms that Microsoft received source data. The dataset may include data sourced from Microsoft.
Access
Available in | When to use |
---|---|
Azure Notebooks | Quickly explore the dataset with Jupyter notebooks hosted on Azure or your local machine. |
Azure Databricks | Use this when you need the scale of an Azure managed Spark cluster to process the dataset. |
Azure Synapse | Use this when you need the scale of an Azure managed Spark cluster to process the dataset. |
Preview
currentDatetime | forecastHour | latitude | longitude | precipitableWaterEntireAtmosphere | seaLvlPressure | snowDepthSurface | temperature | windSpeedGustSurface | year | month | day |
---|---|---|---|---|---|---|---|---|---|---|---|
2/17/2021 6:00:00 PM | 0 | -90 | 0 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 4.5 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 0.5 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 1 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 1.5 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 2 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 2.5 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 3 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 3.5 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
2/17/2021 6:00:00 PM | 0 | -90 | 4 | 0.519596 | 68412.7 | 1 | 231.1 | 3.92391 | 2021 | 2 | 17 |
Name | Data type | Unique | Values (sample) | Description |
---|---|---|---|---|
currentDatetime | timestamp | 2,863 | 2018-12-06 06:00:00 2018-12-09 12:00:00 |
The forecast model cycle runtime. |
day | int | 31 | 1 5 |
Day of currentDatetime. |
forecastHour | int | 129 | 336 102 |
Hour since currentDatetime, forecast or observation time. |
latitude | double | 361 | 4.5 -12.5 |
Latitude, degrees_north. |
longitude | double | 1,079 | 99.0 36.5 |
Longitude, degrees_east. |
month | int | 12 | 12 1 |
Month of currentDatetime. |
precipitableWaterEntireAtmosphere | double | 5,520,555 | 0.5 1.0 |
Precipitable water at entire atmosphere layer. Units: kg.m-2 |
seaLvlPressure | double | 8,568,607 | 101104.0 101112.0 |
Pressure at ground or water surface. Units: Pa |
snowDepthSurface | double | 1,245 | nan 1.0 |
Snow depth at ground or water surface. Units: m |
temperature | double | 5,840,727 | 273.0 273.1 |
Temperature at ground or water surface. Units: K |
totalCloudCoverConvectiveCloud | double | 82 | 1.0 2.0 |
Total cloud cover at convective cloud layer. Units: % |
windSpeedGustSurface | double | 19,188,997 | 5.0 4.5 |
Wind speed (gust) at ground or water surface. Units: m/s |
year | int | 5 | 2019 2020 |
Year of currentDatetime. |
Azure Notebooks
# This is a package in preview.
from azureml.opendatasets import NoaaGfsWeather
from dateutil import parser
start_date = parser.parse('2018-12-20')
end_date = parser.parse('2018-12-21')
gfs = NoaaGfsWeather(start_date, end_date)
gfs_df = gfs.to_pandas_dataframe()
gfs_df.info()
# Pip install packages
import os, sys
!{sys.executable} -m pip install azure-storage-blob
!{sys.executable} -m pip install pyarrow
!{sys.executable} -m pip install pandas
# Azure storage access info
azure_storage_account_name = "azureopendatastorage"
azure_storage_sas_token = r""
container_name = "gfsweatherdatacontainer"
folder_name = "GFSWeather/GFSProcessed"
from azure.storage.blob import BlockBlobServicefrom azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient
if azure_storage_account_name is None or azure_storage_sas_token is None:
raise Exception(
"Provide your specific name and key for your Azure Storage account--see the Prerequisites section earlier.")
print('Looking for the first parquet under the folder ' +
folder_name + ' in container "' + container_name + '"...')
container_url = f"https://{azure_storage_account_name}.blob.core.windows.net/"
blob_service_client = BlobServiceClient(
container_url, azure_storage_sas_token if azure_storage_sas_token else None)
container_client = blob_service_client.get_container_client(container_name)
blobs = container_client.list_blobs(folder_name)
sorted_blobs = sorted(list(blobs), key=lambda e: e.name, reverse=True)
targetBlobName = ''
for blob in sorted_blobs:
if blob.name.startswith(folder_name) and blob.name.endswith('.parquet'):
targetBlobName = blob.name
break
print('Target blob to download: ' + targetBlobName)
_, filename = os.path.split(targetBlobName)
blob_client = container_client.get_blob_client(targetBlobName)
with open(filename, 'wb') as local_file:
blob_client.download_blob().download_to_stream(local_file)
# Read the parquet file into Pandas data frame
import pandas as pd
print('Reading the parquet file into Pandas data frame')
df = pd.read_parquet(filename)
# you can add your filter at below
print('Loaded as a Pandas data frame: ')
df
Azure Databricks
# This is a package in preview.
# You need to pip install azureml-opendatasets in Databricks cluster. https://docs.microsoft.com/en-us/azure/data-explorer/connect-from-databricks#install-the-python-library-on-your-azure-databricks-cluster
from azureml.opendatasets import NoaaGfsWeather
from dateutil import parser
start_date = parser.parse('2018-12-20')
end_date = parser.parse('2018-12-21')
gfs = NoaaGfsWeather(start_date, end_date)
gfs_df = gfs.to_spark_dataframe()
display(gfs_df.limit(5))
# Azure storage access info
blob_account_name = "azureopendatastorage"
blob_container_name = "gfsweatherdatacontainer"
blob_relative_path = "GFSWeather/GFSProcessed"
blob_sas_token = r""
# Allow SPARK to read from Blob remotely
wasbs_path = 'wasbs://%s@%s.blob.core.windows.net/%s' % (blob_container_name, blob_account_name, blob_relative_path)
spark.conf.set(
'fs.azure.sas.%s.%s.blob.core.windows.net' % (blob_container_name, blob_account_name),
blob_sas_token)
print('Remote blob path: ' + wasbs_path)
# SPARK read parquet, note that it won't load any data yet by now
df = spark.read.parquet(wasbs_path)
print('Register the DataFrame as a SQL temporary view: source')
df.createOrReplaceTempView('source')
# Display top 10 rows
print('Displaying top 10 rows: ')
display(spark.sql('SELECT * FROM source LIMIT 10'))
Azure Synapse
# This is a package in preview.
from azureml.opendatasets import NoaaGfsWeather
from dateutil import parser
start_date = parser.parse('2018-12-20')
end_date = parser.parse('2018-12-21')
gfs = NoaaGfsWeather(start_date, end_date)
gfs_df = gfs.to_spark_dataframe()
# Display top 5 rows
display(gfs_df.limit(5))
# Azure storage access info
blob_account_name = "azureopendatastorage"
blob_container_name = "gfsweatherdatacontainer"
blob_relative_path = "GFSWeather/GFSProcessed"
blob_sas_token = r""
# Allow SPARK to read from Blob remotely
wasbs_path = 'wasbs://%s@%s.blob.core.windows.net/%s' % (blob_container_name, blob_account_name, blob_relative_path)
spark.conf.set(
'fs.azure.sas.%s.%s.blob.core.windows.net' % (blob_container_name, blob_account_name),
blob_sas_token)
print('Remote blob path: ' + wasbs_path)
# SPARK read parquet, note that it won't load any data yet by now
df = spark.read.parquet(wasbs_path)
print('Register the DataFrame as a SQL temporary view: source')
df.createOrReplaceTempView('source')
# Display top 10 rows
print('Displaying top 10 rows: ')
display(spark.sql('SELECT * FROM source LIMIT 10'))