/* This routine reads version-5 AMSR on ADEOS-II (referred to as AMSR-J) time-averaged files including: 3-day (average of 3 days ending on file date) weekly (average of 7 days ending on Saturday of file date) monthly (average of all days in month) You must UNZIP FILES before reading them CHANGE filename format of file names are: 3-day satname_yyyymmddv5_d3d weekly satname_yyyymmddv5 monthly satname_yyyymmv5 where satname =name of satellite (amsre or amsr) yyyy =year mm =month dd =day of month DATA amsrj.data (a 1x5x720x1440 array of data) the 5 elements of amsrj.data correspond to time averages of: 1:sst sea surface temperature in deg Celcius 2:wind 10m surface wind in meters/second 3:vapor columnar water vapor in millimeters 4:cloud cloud liquid water in millimeters 5:rain rain rate in millimeters/hour Longitude is 0.25*xdim-0.125 degrees East Latitude is 0.25*ydim-90.125 Please read the data description on www.remss.com To contact RSS support: http://www.remss.com/support 8/2014 n.picard */ #ifndef AMSRJ_AVERAGED_H #define AMSRJ_AVERAGED_H #include #include #include #include #include #include #include #include "dataset.h" using namespace std; class AMSRJaveraged : public Dataset { /* Reads averaged AMSRJ datasets (3day, weekly, monthly) */ std::string filename; int missing; public: AMSRJaveraged(char * _filename, int _missing); AMSRJaveraged(char * filename); AMSRJaveraged(); std::vector get_attributes(); vector get_dimensions(); std::vector get_coordinates(); std::vector get_variables(); int get_index(std::string var); float get_scale(std::string var); float get_offset(std::string var); std::string get_long_name(std::string var); std::string get_units(std::string var); float get_valid_min(std::string var); float get_valid_max(std::string var); }; class AveragedVerify : public Verify { /* Contains info for verification. */ public: AveragedVerify(); AveragedVerify(Dataset &dataset); }; #endif