[122] | 1 | #ifndef __NETCDF4_DATA_OUTPUT__ |
---|
| 2 | #define __NETCDF4_DATA_OUTPUT__ |
---|
| 3 | |
---|
[130] | 4 | // Entête NetCDF pour le C++. |
---|
[122] | 5 | #include <netcdfcpp.h> |
---|
| 6 | |
---|
| 7 | namespace XMLIOSERVER |
---|
| 8 | { |
---|
[127] | 9 | |
---|
| 10 | static const char* TimeName = "time"; |
---|
| 11 | |
---|
[122] | 12 | class NetCDF4DataOutput : public AbstractDataOutput |
---|
| 13 | { |
---|
| 14 | public : |
---|
| 15 | |
---|
[126] | 16 | NetCDF4DataOutput(CFile* const _file) |
---|
| 17 | : AbstractDataOutput(_file), dataFile(NULL) |
---|
[122] | 18 | { /* Ne rien faire de plus */ } |
---|
| 19 | |
---|
| 20 | const NcFile* getDataFile(void) const { return (dataFile); } |
---|
| 21 | |
---|
[126] | 22 | void writeVarData(const string& id, const Array<float, 1>& vdata) |
---|
| 23 | { |
---|
| 24 | //if (!latVar->put(lats, NLAT)) |
---|
| 25 | // return NC_ERR; |
---|
| 26 | } |
---|
| 27 | |
---|
[122] | 28 | virtual ~NetCDF4DataOutput() |
---|
| 29 | { if (dataFile != NULL) delete dataFile; } |
---|
| 30 | |
---|
| 31 | protected : |
---|
| 32 | |
---|
[125] | 33 | Poco::HashMap<string, int> getAllLimitedDim(void) const |
---|
[122] | 34 | { |
---|
| 35 | Poco::HashMap<string, int> dims; |
---|
[125] | 36 | const std::set<const CDomain*> sdom = this->getRelFile()->getEnabledDomains(); |
---|
| 37 | const std::set<const CAxis*> saxis = this->getRelFile()->getEnabledAxis(); |
---|
[122] | 38 | |
---|
[126] | 39 | // std::cout << "Nombre de domaines disponibles pour le fichier : " << sdom.size() << std::endl; |
---|
| 40 | // std::cout << "Nombre d'axes disponibles pour le fichier : " << saxis.size() << std::endl; |
---|
[122] | 41 | |
---|
[125] | 42 | std::set<const CDomain*>::const_iterator itt; |
---|
[126] | 43 | std::set<const CAxis*>::const_iterator it; |
---|
| 44 | |
---|
[125] | 45 | for ( itt = sdom.begin() ; itt != sdom.end(); itt++ ) |
---|
| 46 | { |
---|
| 47 | string domid = ((*itt)->name.hasValue()) ? (string)(*itt)->name : (*itt)->getId(); |
---|
[128] | 48 | string lonid = (sdom.size() == 1)? string("lon"): string("lon_").append(domid); |
---|
| 49 | string latid = (sdom.size() == 1)? string("lat"): string("lat_").append(domid); |
---|
[125] | 50 | dims[lonid] = (*itt)->ni; |
---|
| 51 | dims[latid] = (*itt)->nj; |
---|
| 52 | } |
---|
[122] | 53 | |
---|
| 54 | for ( it = saxis.begin() ; it != saxis.end(); it++ ) |
---|
[125] | 55 | { |
---|
[131] | 56 | string axisid = ((*it)->name.hasValue()) ? |
---|
| 57 | (string)(*it)->name : (*it)->getId(); |
---|
| 58 | dims[axisid] = (*it)->size; |
---|
[125] | 59 | } |
---|
[122] | 60 | |
---|
| 61 | return (dims); |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | std::string getFileName(void) |
---|
[131] | 65 | { |
---|
| 66 | return ((getRelFile()->name.hasValue()) ? |
---|
| 67 | string(getRelFile()->name): getRelFile()->name.getId()); |
---|
| 68 | } |
---|
[122] | 69 | |
---|
| 70 | std::string getTimeStamp(void) |
---|
| 71 | { |
---|
[126] | 72 | const int buffer_size = 100; |
---|
| 73 | time_t rawtime; |
---|
| 74 | struct tm * timeinfo = NULL; |
---|
| 75 | char buffer [buffer_size]; |
---|
[122] | 76 | |
---|
[126] | 77 | time ( &rawtime ); |
---|
| 78 | timeinfo = localtime ( &rawtime ); |
---|
| 79 | strftime (buffer, buffer_size, "%Y-%b-%d %H:%M:%S %Z", timeinfo); |
---|
[122] | 80 | |
---|
[126] | 81 | return (string(buffer)); |
---|
| 82 | } |
---|
[122] | 83 | |
---|
[127] | 84 | void writeCoords(const string& id, const Array<double, 1>& cdata) |
---|
[126] | 85 | { |
---|
| 86 | NcVar *cVar = dataFile->get_var(id.c_str()); |
---|
| 87 | |
---|
| 88 | if (!cVar->put(cdata.dataFirst(), cdata.size())) |
---|
[130] | 89 | throw XMLIOUndefinedValueException |
---|
| 90 | ("Impossible d'écrire les valeurs de coordonnées "+ id +" !"); |
---|
[122] | 91 | } |
---|
| 92 | |
---|
[130] | 93 | void setTimeCoords(void) |
---|
| 94 | { |
---|
| 95 | NcVar *oVar = NULL; |
---|
| 96 | Poco::HashMap<string, string> hm; |
---|
| 97 | AbstractCalendar * ccal = Context::GetCurrentContext()->getCalendar(); |
---|
| 98 | const std::set<const FieldOperation*> sfo = this->getRelFile()->getEnabledOperation(); |
---|
| 99 | std::set<const FieldOperation*>::const_iterator it; |
---|
| 100 | |
---|
| 101 | //std::cout << "Nombre d'opération disponibles pour le fichier : " << sfo.size() << std::endl; |
---|
| 102 | |
---|
| 103 | for ( it = sfo.begin() ; it != sfo.end(); it++ ) |
---|
| 104 | { |
---|
| 105 | const FieldOperation * const fope = (*it); |
---|
| 106 | const Duration& ffope = (*it)->getFreqOp(); |
---|
| 107 | ostringstream oss; oss << "t_" << *fope << "_" << ffope; |
---|
| 108 | const std::string cid(oss.str()); |
---|
| 109 | |
---|
| 110 | if (!(oVar = dataFile->add_var(cid.c_str(), ncDouble, dataFile->get_dim(TimeName)))) |
---|
| 111 | throw XMLIOUndefinedValueException |
---|
| 112 | ("Impossible d'ajouter la coordonnée temporelle "+cid+" !"); |
---|
| 113 | |
---|
| 114 | hm ["standard_name"] = "time"; |
---|
| 115 | hm ["title"] = "Time"; |
---|
| 116 | hm ["long_name"] = "Time axis"; |
---|
[131] | 117 | hm ["units"] = string("seconds since ").append(ccal->getInitDate().toString()); |
---|
| 118 | hm ["calendar"] = ccal->getType(); |
---|
| 119 | hm ["time_origin"] = ccal->getInitDate().toString(); |
---|
[130] | 120 | this->addStringAttributesToVar_str(oVar, hm); |
---|
| 121 | hm.clear(); |
---|
| 122 | } |
---|
| 123 | } |
---|
| 124 | |
---|
[126] | 125 | protected : /* virtual */ |
---|
| 126 | |
---|
[122] | 127 | virtual void initFile(void) |
---|
| 128 | { |
---|
[126] | 129 | string filename = this->getFileName(); |
---|
[122] | 130 | |
---|
| 131 | // Création du fichier ou remplacement si celui-ci existe déjà . |
---|
| 132 | dataFile = new NcFile(filename.c_str(), NcFile::Replace); |
---|
| 133 | if(!dataFile->is_valid()) |
---|
[130] | 134 | throw XMLIOUndefinedValueException |
---|
| 135 | ("Impossible d'ouvrir le fichier '"+ filename +"' pour l'écriture des données' !"); |
---|
[122] | 136 | |
---|
| 137 | // Ajout de quelques attributs globaux. |
---|
| 138 | dataFile->add_att("conventions", "CF-1.1"); |
---|
| 139 | dataFile->add_att("file_name" , getFileName().c_str()); |
---|
| 140 | if (getRelFile()->description.hasValue()) |
---|
| 141 | dataFile->add_att("file_desc" , string(getRelFile()->description).c_str()); |
---|
| 142 | dataFile->add_att("production" , "An IPSL model"); |
---|
| 143 | dataFile->add_att("timeStamp" , getTimeStamp().c_str()) ; |
---|
| 144 | } |
---|
| 145 | |
---|
| 146 | virtual void setDims(void) |
---|
| 147 | { |
---|
| 148 | bool withTime = true; |
---|
[125] | 149 | const Poco::HashMap<string, int>& allDim = this->getAllLimitedDim(); |
---|
[122] | 150 | Poco::HashMap<string, int>::ConstIterator it; |
---|
| 151 | |
---|
| 152 | // Ajout des dimensions limitées. |
---|
| 153 | for (it = allDim.begin() ; it != allDim.end(); it++) |
---|
| 154 | if (NULL == dataFile->add_dim((*it).first.c_str(), (*it).second)) |
---|
| 155 | throw XMLIOUndefinedValueException("Impossible d'ajouter la dimension "+ (*it).first +" !"); |
---|
| 156 | |
---|
| 157 | // Ajout de la dimension temporelle non limitée. |
---|
| 158 | if (withTime) |
---|
[127] | 159 | if (NULL == dataFile->add_dim(TimeName)) |
---|
[122] | 160 | throw XMLIOUndefinedValueException("Impossible d'ajouter la dimension temporelle !"); |
---|
| 161 | } |
---|
| 162 | |
---|
| 163 | virtual void setCoords(void) |
---|
| 164 | { |
---|
| 165 | NcVar *latVar = NULL, // variable de latitude. |
---|
| 166 | *lonVar = NULL, // variable de longitude. |
---|
| 167 | *othvar = NULL; // toute autre variable. |
---|
| 168 | |
---|
| 169 | Poco::HashMap<string, string> hm; |
---|
[128] | 170 | Poco::HashMap<string, float> hmf; |
---|
[122] | 171 | |
---|
[125] | 172 | const std::set<const CDomain*> sdom = this->getRelFile()->getEnabledDomains(); |
---|
| 173 | const std::set<const CAxis*> saxis = this->getRelFile()->getEnabledAxis(); |
---|
[122] | 174 | |
---|
[125] | 175 | std::set<const CDomain*>::const_iterator itt; |
---|
| 176 | for ( itt = sdom.begin() ; itt != sdom.end(); itt++ ) |
---|
| 177 | { |
---|
| 178 | string domid = ((*itt)->name.hasValue()) ? (string)(*itt)->name : (*itt)->getId(); |
---|
[128] | 179 | string lonid = (sdom.size() == 1)? string("lon"): string("lon_").append(domid); |
---|
| 180 | string latid = (sdom.size() == 1)? string("lat"): string("lat_").append(domid); |
---|
[122] | 181 | |
---|
[125] | 182 | if (!(latVar = dataFile->add_var(latid.c_str(), ncFloat, dataFile->get_dim(latid.c_str())))) |
---|
| 183 | throw XMLIOUndefinedValueException("Impossible d'ajouter la variable de latitude !"); |
---|
[127] | 184 | |
---|
[125] | 185 | if (!(lonVar = dataFile->add_var(lonid.c_str(), ncFloat, dataFile->get_dim(lonid.c_str())))) |
---|
| 186 | throw XMLIOUndefinedValueException("Impossible d'ajouter la variable de longitude !"); |
---|
[122] | 187 | |
---|
[125] | 188 | // Attribut de latitude. |
---|
| 189 | hm["axis"] = "Y" ; |
---|
| 190 | hm["standard_name"] = "latitude" ; |
---|
| 191 | hm["units"] = "degrees_north"; |
---|
| 192 | hm["long_name"] = "Latitude" ; |
---|
[128] | 193 | hm["nav_model"] = domid ; |
---|
| 194 | if ((*itt)->yvalue.hasValue()) |
---|
| 195 | { |
---|
| 196 | hmf["valid_min"] = ((Array<double, 1>)(*itt)->yvalue)(0); |
---|
| 197 | hmf["valid_max"] = ((Array<double, 1>)(*itt)->yvalue)(((Array<double, 1>)(*itt)->yvalue).size()-1); |
---|
| 198 | this->addStringAttributesToVar(latVar, hmf); |
---|
| 199 | hmf.clear(); |
---|
| 200 | } |
---|
| 201 | this->addStringAttributesToVar_str(latVar, hm); |
---|
[125] | 202 | hm.clear(); |
---|
[122] | 203 | |
---|
[125] | 204 | // Attribut de longitude. |
---|
[128] | 205 | hm["axis"] = "X" ; |
---|
| 206 | hm["standard_name"] = "longitude" ; |
---|
| 207 | hm["units"] = "degrees_east"; |
---|
| 208 | hm["long_name"] = "Longitude" ; |
---|
| 209 | hm["nav_model"] = domid ; |
---|
| 210 | if ((*itt)->xvalue.hasValue()) |
---|
| 211 | { |
---|
| 212 | hmf["valid_min"] = ((Array<double, 1>)(*itt)->xvalue)(0); |
---|
| 213 | hmf["valid_max"] = ((Array<double, 1>)(*itt)->xvalue)(((Array<double, 1>)(*itt)->xvalue).size()-1); |
---|
| 214 | this->addStringAttributesToVar(lonVar, hmf); |
---|
| 215 | hmf.clear(); |
---|
| 216 | } |
---|
| 217 | this->addStringAttributesToVar_str(lonVar, hm); |
---|
[125] | 218 | hm.clear(); |
---|
[127] | 219 | |
---|
| 220 | if ((*itt)->yvalue.hasValue()) |
---|
| 221 | this->writeCoords(lonid, (*itt)->xvalue); |
---|
[130] | 222 | else throw XMLIOUndefinedValueException |
---|
| 223 | ("Les coordonnées de longitude (xvalue) ne sont pas définies pour le domaine \""+domid+"\"."); |
---|
[127] | 224 | |
---|
| 225 | if ((*itt)->xvalue.hasValue()) |
---|
| 226 | this->writeCoords(latid, (*itt)->yvalue); |
---|
[130] | 227 | else throw XMLIOUndefinedValueException |
---|
| 228 | ("Les coordonnées de latitude (yvalue) ne sont pas définies pour le domaine \""+domid+"\"."); |
---|
[125] | 229 | } |
---|
| 230 | |
---|
[122] | 231 | // Attribut des autres coordonnées. |
---|
| 232 | std::set<const CAxis*>::const_iterator it; |
---|
| 233 | for ( it = saxis.begin() ; it != saxis.end(); it++ ) |
---|
| 234 | { |
---|
[125] | 235 | string axisid = ((*it)->name.hasValue()) ? (string)(*it)->name : (*it)->getId(); |
---|
| 236 | if (!(othvar = dataFile->add_var(axisid.c_str(), ncFloat, dataFile->get_dim(axisid.c_str())))) |
---|
[122] | 237 | throw XMLIOUndefinedValueException("Impossible d'ajouter la variable "+ (*it)->getId() +" !"); |
---|
| 238 | |
---|
[128] | 239 | hm["axis"] = "Z" ; |
---|
| 240 | hm["title"] = axisid ; |
---|
| 241 | hm["positive"] = "unknown" ; |
---|
| 242 | |
---|
[126] | 243 | if ((*it)->standard_name.hasValue())hm["standard_name"] = (*it)->standard_name ; |
---|
| 244 | if ((*it)->long_name.hasValue()) hm["long_name"] = (*it)->long_name ; |
---|
| 245 | if ((*it)->unit.hasValue()) hm["units"] = (*it)->unit; |
---|
[128] | 246 | if ((*it)->value.hasValue()) |
---|
| 247 | { |
---|
| 248 | hmf["valid_min"] = ((Array<double, 1>)(*it)->value)(0); |
---|
| 249 | hmf["valid_max"] = ((Array<double, 1>)(*it)->value)(((Array<double, 1>)(*it)->value).size()-1); |
---|
| 250 | this->addStringAttributesToVar(othvar, hmf); |
---|
| 251 | hmf.clear(); |
---|
| 252 | } |
---|
| 253 | this->addStringAttributesToVar_str(othvar, hm); |
---|
[122] | 254 | hm.clear(); |
---|
[127] | 255 | |
---|
| 256 | if ((*it)->value.hasValue()) |
---|
| 257 | this->writeCoords(axisid, (*it)->value); |
---|
[130] | 258 | else throw XMLIOUndefinedValueException |
---|
| 259 | ("Les coordonnées de l'axe \""+axisid+"\" (value) ne sont pas définies."); |
---|
[122] | 260 | } |
---|
[130] | 261 | |
---|
| 262 | this->setTimeCoords(); |
---|
[122] | 263 | } |
---|
| 264 | |
---|
| 265 | virtual void setVars(void) |
---|
| 266 | { |
---|
[126] | 267 | NcType tvar = ncFloat; |
---|
[122] | 268 | NcVar *var = NULL; |
---|
[131] | 269 | |
---|
[122] | 270 | Poco::HashMap<string, string> hm; |
---|
[128] | 271 | Poco::HashMap<string, float> hmf; |
---|
[131] | 272 | |
---|
[122] | 273 | bool lonlat = false, wtime = true; |
---|
[131] | 274 | |
---|
[122] | 275 | const std::vector<CField*>& enabledFields = getRelFile()->getEnabledFields(); |
---|
[128] | 276 | const std::set<const CDomain*> sdom = this->getRelFile()->getEnabledDomains(); |
---|
[122] | 277 | |
---|
| 278 | std::vector<CField*>::const_iterator it; |
---|
[126] | 279 | |
---|
[122] | 280 | for ( it = enabledFields.begin() ; it != enabledFields.end(); it++ ) |
---|
| 281 | { |
---|
[130] | 282 | CField * const field = (*it); |
---|
| 283 | const CField * const bfield = (*it)->getBaseObject(); |
---|
| 284 | const CDomain * const rdom = field->getGrid()->getRelDomain(); |
---|
| 285 | const CAxis * const raxis = field->getGrid()->getRelAxis(); |
---|
| 286 | FieldOperation* const fope = field->operation.getValue(); |
---|
| 287 | //Duration * const ffope = field->freq_op.getValue(); |
---|
[122] | 288 | |
---|
[131] | 289 | string fieldid = (field->name.hasValue()) ? |
---|
| 290 | (string)field->name : bfield->getId(); |
---|
| 291 | string domid = (rdom ->name.hasValue()) ? |
---|
| 292 | (string)rdom ->name : rdom ->getId(); |
---|
| 293 | string axisid = (raxis->name.hasValue()) ? |
---|
| 294 | (string)raxis->name : raxis ->getId(); |
---|
[125] | 295 | |
---|
[130] | 296 | string lonid = (sdom.size() == 1)? string("lon") |
---|
| 297 | : string("lon_").append(domid); // Nom de la coordonnée longitudinale associée. |
---|
| 298 | string latid = (sdom.size() == 1)? string("lat") |
---|
| 299 | : string("lat_").append(domid); // Nom de la coordonnée latitudinale associée. |
---|
[125] | 300 | |
---|
[122] | 301 | lonlat = !field->getGrid()->_hasAxis(); |
---|
[124] | 302 | |
---|
[128] | 303 | if (fope != NULL) |
---|
| 304 | if (fope->getId().compare("once") == 0) |
---|
[130] | 305 | wtime = false; |
---|
[122] | 306 | |
---|
[123] | 307 | tvar = ncFloat; |
---|
| 308 | if (field->prec.hasValue()) |
---|
[130] | 309 | if (field->prec == 8) |
---|
| 310 | tvar = ncDouble; |
---|
[123] | 311 | |
---|
[122] | 312 | if (wtime) |
---|
| 313 | { |
---|
| 314 | if (lonlat) // 2D spatio + temps |
---|
| 315 | { |
---|
[125] | 316 | if (!(var = dataFile->add_var(fieldid.c_str(), tvar, |
---|
[131] | 317 | dataFile->get_dim(TimeName), |
---|
| 318 | dataFile->get_dim(latid.c_str()), |
---|
| 319 | dataFile->get_dim(lonid.c_str())))) |
---|
[122] | 320 | throw XMLIOUndefinedValueException("Impossible d'ajouter le champ "+ field->getId() +" !"); |
---|
| 321 | } |
---|
| 322 | else // 3D spatio + temps |
---|
| 323 | { |
---|
[125] | 324 | if (!(var = dataFile->add_var(fieldid.c_str(), tvar, |
---|
[131] | 325 | dataFile->get_dim(TimeName), |
---|
| 326 | dataFile->get_dim(axisid.c_str()), |
---|
| 327 | dataFile->get_dim(latid.c_str()), |
---|
| 328 | dataFile->get_dim(lonid.c_str())))) |
---|
[122] | 329 | throw XMLIOUndefinedValueException("Impossible d'ajouter le champ "+ field->getId() +" !"); |
---|
| 330 | } |
---|
| 331 | } |
---|
| 332 | else |
---|
| 333 | { |
---|
| 334 | if (lonlat) // 2D spatio sans temps |
---|
| 335 | { |
---|
[125] | 336 | if (!(var = dataFile->add_var(fieldid.c_str(), tvar, |
---|
[131] | 337 | dataFile->get_dim(latid.c_str()), |
---|
| 338 | dataFile->get_dim(lonid.c_str())))) |
---|
[122] | 339 | throw XMLIOUndefinedValueException("Impossible d'ajouter le champ "+ field->getId() +" !"); |
---|
| 340 | } |
---|
| 341 | else // 3D spatio sans temps |
---|
| 342 | { |
---|
[131] | 343 | if (!(var = dataFile->add_var(fieldid.c_str(), tvar, |
---|
| 344 | dataFile->get_dim(axisid.c_str()), |
---|
| 345 | dataFile->get_dim(latid.c_str()), |
---|
| 346 | dataFile->get_dim(lonid.c_str())))) |
---|
[122] | 347 | throw XMLIOUndefinedValueException("Impossible d'ajouter le champ "+ field->getId() +" !"); |
---|
| 348 | } |
---|
| 349 | } |
---|
| 350 | |
---|
[128] | 351 | if (field->standard_name.hasValue())hm["standard_name"] = field->standard_name ; |
---|
| 352 | if (field->long_name.hasValue()) hm["long_name"] = field->long_name ; |
---|
| 353 | if (field->unit.hasValue()) hm["units"] = field->unit; |
---|
| 354 | |
---|
| 355 | if (field->operation.hasValue()) |
---|
| 356 | { |
---|
| 357 | hm["online_operation"] = field->operation.getValue()->getId(); |
---|
| 358 | |
---|
| 359 | if (!field->operation.getValue()->getFreqOp().isNone()) |
---|
| 360 | hm["interval_operation"] = field->operation.getValue()->getFreqOp().toString(); |
---|
| 361 | else |
---|
| 362 | hm["interval_operation"] = ((Duration)this->getRelFile()->output_freq).toString(); |
---|
| 363 | } |
---|
| 364 | hm["interval_write"] = ((Duration)this->getRelFile()->output_freq).toString(); |
---|
| 365 | |
---|
| 366 | this->addStringAttributesToVar_str(var, hm); |
---|
[122] | 367 | hm.clear(); |
---|
| 368 | } |
---|
| 369 | } |
---|
| 370 | |
---|
| 371 | private : |
---|
| 372 | |
---|
[128] | 373 | template <class U> |
---|
| 374 | void addStringAttributesToVar(NcVar * const var, const Poco::HashMap<string, U>& attr) |
---|
[122] | 375 | { |
---|
[128] | 376 | typename Poco::HashMap<string, U>::ConstIterator it; |
---|
| 377 | |
---|
| 378 | for ( it = attr.begin() ; it != attr.end(); it++ ) |
---|
| 379 | if (!var->add_att((*it).first.c_str(), (*it).second)) |
---|
[131] | 380 | throw XMLIOUndefinedValueException |
---|
| 381 | ("Impossible d'ajouter l'attribut' "+ (*it).first +" Ã la variable "+ var->name() +" !"); |
---|
[128] | 382 | } |
---|
| 383 | |
---|
| 384 | void addStringAttributesToVar_str(NcVar * const var, const Poco::HashMap<string, string>& attr) |
---|
| 385 | { |
---|
[122] | 386 | Poco::HashMap<string, string>::ConstIterator it; |
---|
[126] | 387 | |
---|
[122] | 388 | for ( it = attr.begin() ; it != attr.end(); it++ ) |
---|
| 389 | if (!var->add_att((*it).first.c_str(), (*it).second.c_str())) |
---|
[131] | 390 | throw XMLIOUndefinedValueException |
---|
| 391 | ("Impossible d'ajouter l'attribut' "+ (*it).first +" Ã la variable "+ var->name() +" !"); |
---|
[122] | 392 | } |
---|
| 393 | |
---|
| 394 | NcFile* dataFile; |
---|
| 395 | |
---|
| 396 | }; //class NetCDF4DataOutput |
---|
| 397 | |
---|
| 398 | }// namespace XMLIOSERVER |
---|
| 399 | |
---|
| 400 | #endif //__NETCDF4_DATA_OUTPUT__ |
---|