I can't get 2021 weather data from NOAA Integrated Surface Data (ISD)

Julian Zhang 21 Reputation points
2021-01-21T05:53:28.46+00:00

Previously we used the below sample code to retrieve NOAA actual weather data

***# This is a package in preview.
from azureml.opendatasets import NoaaIsdWeather
from datetime import datetime
from dateutil.relativedelta import relativedelta
end_date = datetime.today()
start_date = datetime.today() - relativedelta(months=1)

Get historical weather data in the past month.

isd = NoaaIsdWeather(start_date, end_date)

Read into Pandas data frame.

isd_df = isd.to_pandas_dataframe()***

But it seems that we can't get the data for 2021, can you help us to find out why?

Thanks a million!

Azure Open Datasets
Azure Open Datasets
An Azure service that provides curated open data for machine learning workflows.
24 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 42,316 Reputation points Microsoft Employee
    2021-01-21T09:46:14.983+00:00

    @Julian Zhang It seems strange but if I use the start and end date within 2021 it seems to work.

    # This is a package in preview.  
    from azureml.opendatasets import NoaaIsdWeather  
      
    from datetime import datetime  
    from dateutil.relativedelta import relativedelta  
      
      
    end_date = datetime.today() - relativedelta(days=1)  
    start_date = datetime.today() - relativedelta(days=20)  
      
    # Get historical weather data in the past month.  
    isd = NoaaIsdWeather(start_date, end_date)  
    # Read into Pandas data frame.  
    isd_df = isd.to_pandas_dataframe()  
    

    59135-image.png

    Seems like an issue with the NoaaIsdWeather() response from the API.

    0 comments No comments

0 additional answers

Sort by: Most helpful