sup3r.utilities.pytest.helpers.make_fake_cs_ratio_files#
- make_fake_cs_ratio_files(td, low_res_times, low_res_lat_lon, model_meta)[source]#
Make a set of dummy clearsky ratio files that match the GAN fwp outputs
- Parameters:
td (tempfile.TemporaryDirectory) – Test TemporaryDirectory
low_res_times – List of times for low res input data. If there is only a single low res timestep, it is assumed the data is daily.
low_res_lat_lon – Array of lat/lon for input data. (spatial_1, spatial_2, 2) Last dimension has ordering (lat, lon)
model_meta (dict) – Meta data for model to write to file.
- Returns:
fps (list) – List of clearsky ratio .h5 chunked files.
fp_pattern (str) – Glob pattern*string to find fps