bes
Updated for version 3.20.6
|
32 #include <BESInternalError.h>
34 #include "FONcSequence.h"
35 #include "FONcUtils.h"
48 _s =
dynamic_cast<Sequence *
>(b);
50 throw BESInternalError(
"File out netcdf, FONcSequence was passed a variable that is not a DAP Sequence", __FILE__, __LINE__);
74 FONcBaseType::convert(embed);
93 string val = (string)
"The sequence " + _varname +
" is a member of this dataset and has been elided.";
94 int stax = nc_put_att_text(ncid, NC_GLOBAL, _varname.c_str(), val.length(), val.c_str());
95 if (stax != NC_NOERR) {
96 string err = (string)
"File out netcdf, " +
"failed to write string attribute for sequence " + _varname;
114 string FONcSequence::name()
127 strm << BESIndent::LMarg <<
"FONcSequence::dump - (" << (
void *)
this <<
")" << endl;
129 strm << BESIndent::LMarg <<
"name = " << _s->name() << endl;
130 BESIndent::UnIndent();
static string gen_name(const vector< string > &embed, const string &name, string &original)
generate a new name for the embedded variable
virtual ~FONcSequence()
Destructor that cleans up the sequence.
static void handle_error(int stax, const string &err, const string &file, int line)
handle any netcdf errors
FONcSequence(BaseType *b)
Constructor for FONcSequence that takes a DAP Sequence.
virtual void define(int ncid)
define the DAP Sequence in the netcdf file
virtual void convert(vector< string > embed)
convert the Sequence to something that can be stored in a netcdf file
exception thrown if internal error encountered
A DAP BaseType with file out netcdf information included.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
virtual void write(int ncid)
Write the sequence data out to the netcdf file.