GetDODSDates: Find available model run dates for data on the GrADS - DODS...

View source: R/GetDODS.R

GetDODSDatesR Documentation

Find available model run dates for data on the GrADS - DODS system.

Description

This function checks the GrADS data server to see what dates and model subsets are available for model specified by ABBREV

Usage

GetDODSDates(abbrev, request.sleep=1)

Arguments

abbrev

A model abbreviation as specified in NOMADSRealTimeList or NOMADSArchiveList.

request.sleep

Seconds to pause between HTTP requests when scanning model pages - this prevents timeouts. Default 1.

Details

This function determines which dates are available for download for a particular model through the GrADS - DODS system. Once the user determines which dates are available, the output of this function can be passed to GetDODSModelRuns to determine which model runs can be downloaded.

Value

model

The model that was requested.

date

A list of model run dates available for download.

url

A list of URLs corresponding to the model run dates.

Note

Sometimes, sending lots of HTTP requests in rapid succession can cause errors. If messages resembling "Error: failed to load HTTP resource" appear, try increasing request.sleep. The code will take longer to execute but it will be more likely to finish successfully.

Author(s)

Daniel C. Bowman danny.c.bowman@gmail.com

See Also

GetDODSModelRuns, DODSGrab

Examples


#An example for the Global Forecast System 0.5 degree model

#Get the latest model url and date
abbrev <- "gfs_0p50"
## Not run: 
urls.out <- GetDODSDates(abbrev)
print(paste("Most recent model run:",tail(urls.out$date, 1)))

## End(Not run)


rNOMADS documentation built on Sept. 6, 2022, 5:06 p.m.