2
* Copyright (c) 2004-2006 by Gerard Gorman
3
* Copyright (c) 2006- Imperial College London
4
* See COPYING file for copying and redistribution conditions.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* Contact info: gerard.j.gorman@gmail.com/g.gorman@imperial.ac.uk
17
#ifndef SAMPLENETCDF2_H
18
#define SAMPLENETCDF2_H
27
// #include "tools.h" // Experimenting to see whether this is needed
28
#include "NetCDF_reader.h"
33
SampleNetCDF2(std::string);
36
double GetValue(double, double) const;
38
bool HasPoint(double, double) const;
40
void SetFile(std::string);
46
void Debug(char *) const;
47
double GetValue(int, int) const;
51
double x_range[2]; // Longitude
52
double y_range[2]; // Latitude
54
double spacing[2]; // Grid spacing
55
int dimension[2]; // Grid dimensions
57
std::vector<double> data;