final Dimension lonDim = writer.addDimension(null, NCUtilities.LON, numLon);
// --------
// latitude
// --------
final ArrayFloat latData = new ArrayFloat(new int[] { numLat });
final Index latIndex = latData.getIndex();
final Variable varLat = writer.addVariable(null, NCUtilities.LAT, DataType.FLOAT, NCUtilities.LAT);
writer.addVariableAttribute(varLat, new Attribute(NCUtilities.LONGNAME, NCUtilities.LATITUDE));
writer.addVariableAttribute(varLat, new Attribute(NCUtilities.UNITS, NCUtilities.LAT_UNITS));
for (int yPos = 0; yPos < numLat; yPos++) {
latData.setFloat(latIndex.set(yPos),
// new Float(
// ymax
// - (new Float(yPos)
// .floatValue() * periodY))
// .floatValue());
new Float(ymin + (new Float(yPos).floatValue() * periodY)).floatValue());
}
// ---------
// longitude
// ---------
final ArrayFloat lonData = new ArrayFloat(new int[] { numLon });
final Index lonIndex = lonData.getIndex();
final Variable varLon = writer.addVariable(null, NCUtilities.LON, DataType.FLOAT, NCUtilities.LON);
writer.addVariableAttribute(varLon, new Attribute(NCUtilities.LONGNAME, NCUtilities.LONGITUDE));
writer.addVariableAttribute(varLon, new Attribute(NCUtilities.UNITS, NCUtilities.LON_UNITS));
for (int xPos = 0; xPos < numLon; xPos++) {
lonData.setFloat(lonIndex.set(xPos), new Float(xmin
+ (new Float(xPos).floatValue() * periodX)).floatValue());
}
// Latitude management
final NetCDFDimensionManager latManager = new NetCDFDimensionManager(NCUtilities.LAT);