51 _f =
dynamic_cast<Float64 *
>(b) ;
54 string s = (string)
"File out netcdf, FONcDouble was passed a "
55 +
"variable that is not a DAP Float64" ;
85 FONcAttributes::add_attributes( ncid,
_varid, _f ) ;
104 size_t var_index[] = {0} ;
105 double *data =
new double ;
106 _f->buf2val( (
void**)&data ) ;
107 int stax = nc_put_var1_double( ncid,
_varid, var_index, data ) ;
108 if( stax != NC_NOERR )
110 string err = (string)
"fileout.netcdf - "
111 +
"Failed to write double data for "
149 << (
void *)
this <<
")" << endl ;
exception thrown if inernal error encountered
virtual void define(int ncid)
Define the variable in the netcdf file.
static void add_original_name(int ncid, int varid, const string &var_name, const string &orig)
Adds an attribute for the variable if the variable name had to be modified in any way...
virtual void write(int ncid)
Write the float64 out to the netcdf file.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
virtual void define(int ncid)
define the DAP Float64 in the netcdf file
static ostream & LMarg(ostream &strm)
virtual nc_type type()
returns the netcdf type of the DAP Float64
virtual ~FONcDouble()
Destructor that cleans up the instance.
static void handle_error(int stax, string &err, const string &file, int line)
handle any netcdf errors
A DAP BaseType with file out netcdf information included.
FONcDouble(BaseType *b)
Constructor for FOncDouble that takes a DAP Float64.
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
virtual string name()
returns the name of the DAP Float64