ContentsIndexReferenceHome
PreviousUpNext
downloadGrbData
MATLAB
grbFile = downloadGrbData(obsDay,obsForecast,[obsCycle],[gfsDataPath])
Description

Downloads the relevant Grib file from https://nomads.ncdc.noaa.gov. If standard data does not exist for requested times, will try to get re-analysis data.

Parameters
Parameters 
Description 
obsDay [datetime] 
Day of observation. Can be a Matlab datetime object of a date vector. If not a datetime object, GMT is assumed. 
obsForecast [scalar] 
Forecast hour. Valid forecasts are every 3 hours starting at 0 up to 240 hours, then every 12 hours up to 384 hours. For re-analysis data, forecasts are 0, 3, and 6 hours only. 
obsCycle [scalar] 
(Optional) Cycle of the GFS observation. Valid cycles are 0, 6, 12, and 18 hours - will select closest valid cycle. If not passed in or passed in as empty, the obsCycle will be obsDay.Hour. 
gfsDataPath [char] 
(Optional) Path to folder for storing GFS data. Defaults to current working directory. 
Return Values
Return Values 
Description 
grbFile [cell] 
Filenames of Grib files downloaded. 
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!