Open Luke-Dramko opened 5 years ago
This issue is stale because it has been open 365 days with no activity.
Unstaling. Not high priority, but it would still be great to fix this to work more cleanly in the general case.
This issue is stale because it has been open 365 days with no activity.
Description
Many conversion functions in the met2model stage of data processing make assumptions about the file names they are pulling data from. In particular, these functions expect files in the format:
MET.YYYY.nc
where MET is the name of the meteorological data product and YYYY is the 4-digit year.
Some newer data products, including NOAA GEFS, have more specific or otherwise different file names. In order to enable processing of data using these functions, each met2model conversion function must be updated individually for this purpose.
met2model.SIPNET has been updated for NOAA GEFS and other new data sources.
Context
Possible Implementation
met2model.SIPNET has 2 additional arguments: year.fragment and in.data.file, which default to FALSE and NULL, respectively. If statement handle the cases when they are TRUE and of the character data type. Currently, these arguments are only used if forecast=TRUE, that is, ifTRUE exists in the data product's registration xml.
Note that the output file name may also have to be changed as well in order to reflect the specificity of the data.