net.simplace.simulation.io.raster.RasterData




public class RasterData {
// Public Constructors
public RasterData(int aCols, int aRows, float aXLLCorner, float aYLLCorner,
float aCellsize, int aYear, int aMonth, int aDay, int aNoDataValue,
WeatherStation.TYPE aType);
public RasterData(File aRasterFile) throws IOException;

// Class Variables
public static int NO_VALUE;
// Public Instance Variables
public int[][] iRasterValues;

// Class Methods
public static String getFileName(String aInputPath, Calendar aCalendar,
boolean isGZIP);


returns file name

// Public Instance Methods
public int getCols();


returns the cols
public int getRows();


returns the rows
public float getXLLCorner();


returns the xLLCorner
public float getYLLCorner();


returns the yLLCorner
public float getCellsize();


returns the cellsize
public int getYear();


returns the year
public int getMonth();


returns the month
public int getDay();


returns the day
public WeatherStation.TYPE getType();


returns the type
public RasterData getMeanRaster(int aCellSizeFactor, List aRasterSections,
int[][] aCombinedMask);


returns raster mean value
public RasterData getSumRaster(int aCellSizeFactor, List aRasterSections,
int[][] aCombinedMask);


returns sum of raster data
public void setRasterValues(int[][] aRasterValues);

public void setRasterValue(int aRow, int aCol, int aValue);

public void addRasterValue(int aRow, int aCol, int aVal);

public void addRasterValues(RasterData aRaster);

public int getRasterValue(int aRow, int aCol);


returns raster value
public int getRasterValue(double aRechtswert, double aHochwert);


returns raster value
public boolean isNoData(int aRow, int aCol);


returns true, if no value is contained at the specified position, otherwise returns false
public Calendar getFirstDay();


returns the first day
public RasterData clone(Calendar aDate);


returns a clone of RasterData object
public File toGZIPFile(File aPath) throws IOException;


returns GZIP file
public void toFile(File aPath) throws IOException;

public void toCSVFile(File file);

public boolean hasPositionData(int aRowPosition, int aColPosition);


returns true, if position data is contained at specified position, otherwise returns false
public double getRechtswert(int aColPosition);


returns y-coordinate
public double getHochwert(int aRowPosition);


returns x-coordinate
public int getCol(double aRechtswert);


returns column number
public int getRow(double aHochwert);


returns row number
public void reset();

public void divideBy(int aDevision);

public Calendar getCalendar();



}



Passed to: addRasterValues(), WeatherStation.getRasterValue(), RasterSection.selectWeatherStations(), WeatherStation.setStationGridValue()



Returned by: clone(), getMeanRaster(), getSumRaster()