Codota Logo
ProjectionCT
Code IndexAdd Codota to your IDE (free)

How to use
ProjectionCT
in
ucar.nc2.dataset

Best Java code snippets using ucar.nc2.dataset.ProjectionCT (Showing top 20 results out of 315)

  • Common ways to obtain ProjectionCT
private void myMethod () {
ProjectionCT p =
  • Codota IconString name;String str;ProjectionImpl proj;new ProjectionCT(name, str, proj)
  • Codota IconString str;String str2;ProjectionImpl proj;new ProjectionCT(str, str2, proj)
  • Codota IconGridCoordSystem gridCoordSystem;gridCoordSystem.getProjectionCT()
  • Smart code suggestions by Codota
}
origin: edu.ucar/netcdf

protected void makeCoordinateTransforms(NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName());
  if (vp != null)
   vp.ct = projCT;
 }
 super.makeCoordinateTransforms(ds);
}
origin: Unidata/thredds

assert ct != null;
return ct.getProjection();
origin: edu.ucar/cdm

private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) {
 double radius = projParams.getNumericValue(0).doubleValue();
 double centMer = projParams.getNumericValue(4).doubleValue();
 double falseEast = projParams.getNumericValue(6).doubleValue();
 double falseNorth = projParams.getNumericValue(7).doubleValue();
 Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001);
 return new ProjectionCT(name, "FGDC", proj);
}
origin: edu.ucar/cdm

/**
 * Create a Projection Coordinate Transform.
 * @param name name of transform, must be unique within the NcML.
 * @param authority naming authority.
 * @param proj projection function.
 */
public ProjectionCT (String name, String authority, ProjectionImpl proj) {
 super( name, authority, TransformType.Projection);
 this.proj = proj;
 for (Parameter p : proj.getProjectionParameters()) {
  addParameter( p);
 }
}
origin: Unidata/thredds

/**
 * Create a Projection Coordinate Transform.
 * @param name name of transform, must be unique within the NcML.
 * @param authority naming authority.
 * @param proj projection function.
 */
public ProjectionCT (String name, String authority, ProjectionImpl proj) {
 super( name, authority, TransformType.Projection);
 this.proj = proj;
 for (Parameter p : proj.getProjectionParameters()) {
  addParameter( p);
 }
}
origin: edu.ucar/netcdf

private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) {
 double radius = projParams.getNumericValue(0).doubleValue();
 double centMer = projParams.getNumericValue(4).doubleValue();
 double falseEast = projParams.getNumericValue(6).doubleValue();
 double falseNorth = projParams.getNumericValue(7).doubleValue();
 Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001);
 return new ProjectionCT(name, "FGDC", proj);
}
origin: edu.ucar/cdm

protected void makeCoordinateTransforms(NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName(), null);
  vp.isCoordinateTransform = true;
  vp.ct = projCT;
 }
 super.makeCoordinateTransforms(ds);
}
origin: Unidata/thredds

/** Get the Projection for this coordinate system.
 *  If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the
 *  projection from any ProjectionCT CoordinateTransform.
 *  @return ProjectionImpl or null if none.
 */
public ProjectionImpl getProjection() {
 if (projection == null) {
  if (isLatLon()) projection = new LatLonProjection();
  ProjectionCT projCT = getProjectionCT();
  if (null != projCT) projection = projCT.getProjection();
 }
 return projection;
}
private ProjectionImpl projection = null;
origin: edu.ucar/netcdf

/**
 * Create a Projection Coordinate Transform.
 * @param name name of transform, must be unique within the NcML.
 * @param authority naming authority.
 * @param proj projection function.
 */
public ProjectionCT (String name, String authority, ProjectionImpl proj) {
 super( name, authority, TransformType.Projection);
 this.proj = proj;
 List list = proj.getProjectionParameters();
 for (int i=0; i<list.size(); i++) {
  addParameter((Parameter) list.get(i));
 }
}
origin: Unidata/thredds

private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) {
 double radius = projParams.getNumericValue(0).doubleValue();
 double centMer = projParams.getNumericValue(4).doubleValue();
 double falseEast = projParams.getNumericValue(6).doubleValue();
 double falseNorth = projParams.getNumericValue(7).doubleValue();
 Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001);
 return new ProjectionCT(name, "FGDC", proj);
}
origin: edu.ucar/cdm

protected void makeCoordinateTransforms( NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName(), null);
  vp.isCoordinateTransform = true;
  vp.ct = projCT;
 }
 super.makeCoordinateTransforms( ds);
}
origin: edu.ucar/netcdf

/** Get the Projection for this coordinate system.
 *  If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the
 *  projection from any ProjectionCT CoordinateTransform.
 *  @return ProjectionImpl or null if none.
 */
public ProjectionImpl getProjection() {
 if (projection == null) {
  if (isLatLon()) projection = new LatLonProjection();
  ProjectionCT projCT = getProjectionCT();
  if (null != projCT) projection = projCT.getProjection();
 }
 return projection;
}
private ProjectionImpl projection = null;
origin: Unidata/thredds

private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) {
 double lat0 = findAttributeDouble(ds, "YCENT");
 double lon0 = findAttributeDouble(ds, "XCENT");
 LambertAzimuthalEqualArea p =
  new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius);
 return new ProjectionCT("LambertAzimuthal", "FGDC", p);
}
origin: edu.ucar/netcdf

protected void makeCoordinateTransforms(NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName());
  if (vp != null)
   vp.ct = projCT;
 }
 super.makeCoordinateTransforms(ds);
}
origin: edu.ucar/cdm

/** Get the Projection for this coordinate system.
 *  If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the
 *  projection from any ProjectionCT CoordinateTransform.
 *  @return ProjectionImpl or null if none.
 */
public ProjectionImpl getProjection() {
 if (projection == null) {
  if (isLatLon()) projection = new LatLonProjection();
  ProjectionCT projCT = getProjectionCT();
  if (null != projCT) projection = projCT.getProjection();
 }
 return projection;
}
private ProjectionImpl projection = null;
origin: edu.ucar/cdm

private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) {
 double lat0 = findAttributeDouble(ds, "YCENT");
 double lon0 = findAttributeDouble(ds, "XCENT");
 LambertAzimuthalEqualArea p =
  new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius);
 return new ProjectionCT("LambertAzimuthal", "FGDC", p);
}
origin: edu.ucar/cdm

protected void makeCoordinateTransforms(NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName(), null);
  if (vp != null)
   vp.ct = projCT;
 }
 super.makeCoordinateTransforms(ds);
}
origin: Unidata/thredds

Projection proj = vct.getProjection();
assert proj != null;
assert projClass.isInstance(proj) : proj.getClass().getName();
origin: edu.ucar/netcdf

 public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {

  readStandardParams(ds, ctv);

  ucar.unidata.geoloc.ProjectionImpl proj = new EquidistantAzimuthalProjection(lat0, lon0, false_easting, false_northing, earth);

  return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
 }
}
origin: Unidata/thredds

protected void makeCoordinateTransforms( NetcdfDataset ds) {
 if (projCT != null) {
  VarProcess vp = findVarProcess(projCT.getName(), null);
  vp.isCoordinateTransform = true;
  vp.ct = projCT;
 }
 super.makeCoordinateTransforms( ds);
}
ucar.nc2.datasetProjectionCT

Javadoc

A Projection CoordinateTransform is a function from (GeoX, GeoY) -> (Lat, Lon).

Most used methods

  • getName
  • getProjection
    get the Projection function
  • <init>
    Create a Projection Coordinate Transform.
  • addParameter

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JList (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now