4#include "matpack_concepts.h"
19 ARTS_USER_ERROR_IF(Tupp <= Tlow,
"Need a range [low, high], has [", Tlow,
", ", Tupp,
"]")
22 const auto d = std::filesystem::path(dir.c_str());
23 ARTS_USER_ERROR_IF(not std::filesystem::is_directory(
d),
"dir: ", dir,
" is not a directory")
25 const Vector T = [&]{Vector x;
nlinspace(x, Tlow, Tupp, N);
return x;}();
32 for (Index i=0; i<N; i++) {
33 data.data(i, 0) = T[i];
38 data, ftype, 0, verbosity);
#define ARTS_USER_ERROR_IF(condition,...)
void WriteBuiltinPartitionFunctionsXML(const String &fileformat, const String &dir, const Numeric &Tlow, const Numeric &Tupp, const Index &N, const Verbosity &verbosity)
WORKSPACE METHOD: WriteBuiltinPartitionFunctionsXML.
void nlinspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlinspace
Declarations having to do with the four output streams.
This file contains the definition of String, the ARTS string class.
my_basic_string< char > String
The String type for ARTS.
constexpr bool has_partfun(const Species::IsotopeRecord &ir) noexcept
Numeric Q(Numeric T, const Species::IsotopeRecord &ir)
constexpr std::array Isotopologues
A list of all ARTS isotopologues, note how the species enum class input HAS to be sorted.
This file contains basic functions to handle XML data files.
void xml_write_to_file(const String &filename, const T &type, const FileType ftype, const Index no_clobber, const Verbosity &verbosity)
Write data to XML file.
FileType string2filetype(const String &file_format)