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

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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

Usage

1
GetDODSDates(abbrev, archive=FALSE, request.sleep=1)

Arguments

abbrev

A model abbreviation as specified in NOMADSRealTimeList or NOMADSArchiveList.

archive

Whether the model is on the NCEP real time server (FALSE) or on the NCDC model archive server (TRUE).

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 daniel.bowman@unc.edu

See Also

GetDODSModelRuns, DODSGrab

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#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)))

#Get model dates from the GFS archive
abbrev <- "gfs-avn-hi"
urls.out <- GetDODSDates(abbrev, archive = TRUE, request.sleep = 1)

## End(Not run)


Search within the rNOMADS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.