# NOT RUN {
# All locations, first 25 results
ncdc_locs()
# Fetch more information about location id FIPS:37
ncdc_locs(locationid='FIPS:37')
# Fetch available locations for the GHCND (Daily Summaries) dataset
ncdc_locs(datasetid='GHCND')
ncdc_locs(datasetid=c('GHCND', 'ANNUAL'))
ncdc_locs(datasetid=c('GSOY', 'ANNUAL'))
ncdc_locs(datasetid=c('GHCND', 'GSOM'))
# Fetch all U.S. States
ncdc_locs(locationcategoryid='ST', limit=52)
# Many locationcategoryid's
## this apparently works, but returns nothing often with multiple
## locationcategoryid's
ncdc_locs(locationcategoryid=c('ST', 'ZIP'))
# Fetch list of city locations in descending order
ncdc_locs(locationcategoryid='CITY', sortfield='name', sortorder='desc')
# }
Run the code above in your browser using DataLab