• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/home/pascal/depot/filedata/src/gmaofiledata.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Nicolas PASCAL                                  *
00003  *   nicolas.pascal@icare.univ-lille1.fr                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef GMAOFILEDATA_H
00021 #define GMAOFILEDATA_H
00022 
00023 #include "meteofiledata.h"
00024 #include "hdffiledata.h"
00025 
00042 class GMAOFileData : virtual public FileData, public MeteoFileData, public HDFFileData {
00044     static const std::string latitude_name;
00046     static const std::string longitude_name;
00048     static const std::string height_name;
00050     static const std::string time_name;
00052     int geos_version;
00054     string product_id;
00055 
00059     void init();
00065     void set_geos_version(const int geos_version);
00066 public:
00072     GMAOFileData(const string& name = "", const int geos_version=0);
00076     ~GMAOFileData();
00083      void get_sds_fill_value(const string &sds_name, void* fill_value);
00084 
00089     string get_product_id() const {
00090       return product_id;
00091     }
00096     int get_geos_version() const {
00097       return geos_version;
00098     }
00099 
00100 protected:
00104     int lat_lon_index_max[2];
00110     bool check_filename( const string& short_filename ) const;
00117     void parse_filename( const string& short_filename );
00122     void load_height_level();
00127     void load_time_level();
00128 };
00129 
00130 #endif

Generated on Thu Feb 14 2013 17:59:03 for filedata.kdevelop by  doxygen 1.7.1