51 _f =
dynamic_cast<Float32 *
>(b) ;
54 string s = (string)
"File out netcdf, FONcFloat was passed a "
55 +
"variable that is not a DAP Float32" ;
86 FONcAttributes::add_attributes( ncid,
_varid, _f ) ;
107 size_t var_index[] = {0} ;
108 float *data =
new float ;
109 _f->buf2val( (
void**)&data ) ;
110 int stax = nc_put_var1_float( ncid,
_varid, var_index, data ) ;
111 ncopts = NC_VERBOSE ;
112 if( stax != NC_NOERR )
114 string err = (string)
"fileout.netcdf - "
115 +
"Failed to write float data for "
153 << (
void *)
this <<
")" << endl ;
exception thrown if inernal error encountered
virtual ~FONcFloat()
Destructor that cleans up this instance.
virtual void write(int ncid)
Write the float out to the netcdf file.
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 define(int ncid)
define the DAP Float32 in the netcdf file
FONcFloat(BaseType *b)
Constructor for FONcFloat that takes a DAP Float32.
static ostream & LMarg(ostream &strm)
virtual nc_type type()
returns the netcdf type of the DAP Float32
static void handle_error(int stax, string &err, const string &file, int line)
handle any netcdf errors
virtual string name()
returns the name of the DAP Float32
A DAP BaseType with file out netcdf information included.
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes