/*************************************************************************** * Copyright (C) 2006 by Fabrice DUCOS * * fabrice.ducos@icare.univ-lille1.fr * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "Hdf_file.hpp" int main(int argc, char* argv[]) { cout<<"***** TEST FILE OPENING *****"< read the datas field_name="Latitude"; Hdf_vd vd = f.get_vd(vd_name.c_str()); // access to one VData using the name Hdf_vd_field vd_field=vd.get_field(field_name.c_str()); // access to one field in one VData // read the data of this field int32 nb_record = vd.get_nb_record(); // number of entries in the VData float32 data[nb_record]; // buffer to fill f.read_vdata_field(vd_name.c_str(),field_name.c_str(),data); // print out the read datas cout<<"VData: "<