cleanup metadata related functions
rabutler-usbr opened this issue · 1 comments
rabutler-usbr commented
is get_metadata() used internally?
rabutler-usbr commented
API:
get_metadata <- function(type, dates = NULL, minDate = NULL, maxDate = NULL)
get_prism_station_md <- function(type, minDate = NULL, maxDate = NULL, dates = NULL)
prism_md(f, returnDate = FALSE)
get_metadata()
- is used in del_early_prov().
- not exported
- uses .info.txt
- this is metadata about prism dataset, and version
- rename to
prism_data_get_md()
- export
- fix to return consistent column names (30-yr averages fail)
- fix to work with monthly/annual/normals
get_prism_station_md()
- is exported
- uses .stn.csv files
- this is metadata about stations used to create prism grid for current year/month/day.
- rename to
prism_data_get_station_md()
prism_md()
- is exported
- used in
ls_prism_data()
andprism_image()
andprism_slice()
- calls
pr_parse()
which is also exported - converts the data folder/bil file to a long name
- "PRISM_tmean_30yr_normal_4kmM2_01_bil" --> "Jan 30-year normals - 4km resolution - Mean temperature"
- "PRISM_tmean_stable_4kmM3_20081001_bil.bil" --> "Oct 01 2008 - 4km resolution - Mean temperature"
- should not export
pr_parse()
- need to update to account for vpdmin/max and tdmean names
- rename
- new function for getting date