|
Parallel Analog Ensemble
|
AnEnWriteNcdf provides the functionality to write to NetCDF files. More...
#include <AnEnWriteNcdf.h>
Public Member Functions | |
| AnEnWriteNcdf () | |
| AnEnWriteNcdf (const AnEnWriteNcdf &orig) | |
| AnEnWriteNcdf (Verbose verbose) | |
| virtual | ~AnEnWriteNcdf () |
| void | writeAnEn (const std::string &file, const AnEnIS &, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, bool overwrite=false, bool append=false) const |
| void | writeAnEn (const std::string &file, const AnEnSSE &, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, bool overwrite=false, bool append=false) const |
| void | writeAnEn (const std::string &file, const AnEn *, const std::string &, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, bool overwrite=false, bool append=false) const |
| void | writeMultiAnEn (const std::string &file, const std::unordered_map< std::string, std::size_t > &, const AnEnIS &, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, const Observations &, bool overwrite=false, bool append=false) const |
| void | writeMultiAnEn (const std::string &file, const std::unordered_map< std::string, std::size_t > &, const AnEnSSE &, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, const Observations &, bool overwrite=false, bool append=false) const |
| void | writeMultiAnEn (const std::string &file, const std::unordered_map< std::string, std::size_t > &, const AnEn *, const std::string &algorithm, const Times &test_times, const Times &search_times, const Times &forecast_flts, const Parameters &, const Stations &, const Observations &, bool overwrite=false, bool append=false) const |
| void | writeForecasts (const std::string &file, const Forecasts &, bool overwrite=false, bool append=false, const std::string &group_name="Forecasts") const |
| void | writeObservations (const std::string &file, const Observations &, bool overwrite=false, bool append=false) const |
Static Public Attributes | |
| static const bool | _unlimited_parameters = false |
| static const bool | _unlimited_stations = false |
| static const bool | _unlimited_test_times = false |
| static const bool | _unlimited_search_times = false |
| static const bool | _unlimited_times = false |
| static const bool | _unlimited_flts = false |
| static const bool | _unlimited_members = false |
Protected Member Functions | |
| void | addBasicData_ (netCDF::NcGroup &, const BasicData &) const |
| void | addStations_ (netCDF::NcGroup &, const Stations &, bool) const |
| void | addMeta_ (netCDF::NcGroup &) const |
| void | setDimensions_ () |
Protected Attributes | |
| Verbose | verbose_ |
| std::array< std::string, 4 > | analogs_dim_ |
| std::array< std::string, 4 > | sims_dim_ |
| std::array< bool, 4 > | unlimited_ |
AnEnWriteNcdf provides the functionality to write to NetCDF files.
| AnEnWriteNcdf::AnEnWriteNcdf | ( | ) |
| AnEnWriteNcdf::AnEnWriteNcdf | ( | const AnEnWriteNcdf & | orig | ) |
| AnEnWriteNcdf::AnEnWriteNcdf | ( | Verbose | verbose | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
| void AnEnWriteNcdf::writeAnEn | ( | const std::string & | file, |
| const AnEn * | , | ||
| const std::string & | , | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
| void AnEnWriteNcdf::writeAnEn | ( | const std::string & | file, |
| const AnEnIS & | , | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
Write AnEn into to an NetCDF file
| file | The output file name |
| anen | The AnEn object to write. Or it can be a pointer to AnEn. |
| algorithm | The type to convert the pointer of AnEn to, either IS or SSE. |
| test_times | The test times used to generate AnEn |
| search_times | The search times used to generate AnEn |
| forecast_flts | The lead times of AnEn forecasts |
| parameters | The forecast parameters used to generate AnEn |
| stations | The stations of AnEn forecasts |
| overwrite | Whether to overwrite existing files |
| append | Whether to append to existing files |
| void AnEnWriteNcdf::writeAnEn | ( | const std::string & | file, |
| const AnEnSSE & | , | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
| void AnEnWriteNcdf::writeForecasts | ( | const std::string & | file, |
| const Forecasts & | , | ||
| bool | overwrite = false, | ||
| bool | append = false, | ||
| const std::string & | group_name = "Forecasts" ) const |
Write forecasts.
| file | The output file name |
| forecasts | Forecasts |
| overwrite | Whether to overwrite files |
| append | Whether to append to files |
| void AnEnWriteNcdf::writeMultiAnEn | ( | const std::string & | file, |
| const std::unordered_map< std::string, std::size_t > & | , | ||
| const AnEn * | , | ||
| const std::string & | algorithm, | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| const Observations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
| void AnEnWriteNcdf::writeMultiAnEn | ( | const std::string & | file, |
| const std::unordered_map< std::string, std::size_t > & | , | ||
| const AnEnIS & | , | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| const Observations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
Write AnEn into an NetCDF file. Multivariate analogs are generated using the index from AnEn.
| file | The output file name |
| obs_map | An unordered map with variable names as the keys and the corresponding observations ID as values. Variables names will be used in the output NetCDF file. |
| anen | The AnEn object to write. Or it can be a pointer to AnEn. |
| algorithm | The type to convert the pointer of AnEn to, either IS or SSE. |
| test_times | The test times used to generate AnEn |
| search_times | The search times used to generate AnEn |
| forecast_flts | The lead times of AnEn forecasts |
| parameters | The forecast parameters used to generate AnEn |
| stations | The stations of AnEn forecasts |
| observations | The observations used in AnEn generation |
| overwrite | Whether to overwrite existing files |
| append | Whether to append to existing files |
| void AnEnWriteNcdf::writeMultiAnEn | ( | const std::string & | file, |
| const std::unordered_map< std::string, std::size_t > & | , | ||
| const AnEnSSE & | , | ||
| const Times & | test_times, | ||
| const Times & | search_times, | ||
| const Times & | forecast_flts, | ||
| const Parameters & | , | ||
| const Stations & | , | ||
| const Observations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
| void AnEnWriteNcdf::writeObservations | ( | const std::string & | file, |
| const Observations & | , | ||
| bool | overwrite = false, | ||
| bool | append = false ) const |
Write observations.
| file | The output file name |
| observations | Observations |
| overwrite | Whether to overwrite files |
| append | Whether to append to files |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |