Java Code Examples for ucar.nc2.constants.CF#SINUSOIDAL

The following examples show how to use ucar.nc2.constants.CF#SINUSOIDAL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Sinusoidal.java    From netcdf-java with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
/**
 * Construct a Sinusoidal Projection.
 *
 * @param centMeridian central Meridian (degrees)
 * @param false_easting false_easting in km
 * @param false_northing false_northing in km
 * @param radius earth radius in km
 */
public Sinusoidal(double centMeridian, double false_easting, double false_northing, double radius) {
  super(CF.SINUSOIDAL, false);

  this.centMeridian = centMeridian;
  this.falseEasting = false_easting;
  this.falseNorthing = false_northing;
  this.earthRadius = radius;

  addParameter(CF.GRID_MAPPING_NAME, CF.SINUSOIDAL);
  addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, centMeridian);
  addParameter(CF.EARTH_RADIUS, earthRadius * 1000);

  if ((false_easting != 0.0) || (false_northing != 0.0)) {
    addParameter(CF.FALSE_EASTING, false_easting);
    addParameter(CF.FALSE_NORTHING, false_northing);
    addParameter(CDM.UNITS, "km");
  }

}
 
Example 2
Source File: Sinusoidal.java    From netcdf-java with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public String getTransformName() {
  return CF.SINUSOIDAL;
}