Package ucar.nc2.dataset.conv
Class Cosmic1Convention
- java.lang.Object
-
- ucar.nc2.dataset.CoordSysBuilder
-
- ucar.nc2.dataset.conv.Cosmic1Convention
-
- All Implemented Interfaces:
CoordSysBuilderIF
public class Cosmic1Convention extends CoordSysBuilder
Cosmic data - version 1. Add time coordinate from global atts start_time, stop_time, assuming its linear along the vertical dimension.- Since:
- Jul 29, 2009
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordSysBuilder
CoordSysBuilder.ConventionNameOk, CoordSysBuilder.VarProcess
-
-
Field Summary
-
Fields inherited from class ucar.nc2.dataset.CoordSysBuilder
conventionName, coordVarMap, debug, log, parseInfo, resourcesDir, userAdvice, varList
-
-
Constructor Summary
Constructors Constructor Description Cosmic1Convention()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.static double[]
ECFtoLLA(double x, double y, double z, double a, double b)
comparing api to othersdouble[]
execute(double[] eci, double julian)
protected AxisType
getAxisType(NetcdfDataset ncDataset, VariableEnhanced v)
Identify what kind of AxisType the named variable is.static boolean
isMine(NetcdfFile ncfile)
double[]
spin(double[] v1, double[] vs, double a)
---------------------------------------------------------------------- file spin.f-
Methods inherited from class ucar.nc2.dataset.CoordSysBuilder
addCoordinateVariable, addUserAdvice, assignCoordinateSystemsExplicit, assignCoordinateTransforms, breakupConventionNames, buildConventionAttribute, buildCoordinateSystems, factory, findCoordinateAxes, findCoordinateAxis, findCoordinateSystems, findCoordinateTransforms, findVarProcess, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, isCoordinateAxisForVariable, makeCoordinateAxes, makeCoordinateSystems, makeCoordinateSystemsImplicit, makeCoordinateSystemsMaximal, makeCoordinateTransform, makeCoordinateTransforms, makeCoordinateTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
-
-
-
-
Method Detail
-
isMine
public static boolean isMine(NetcdfFile ncfile)
- Parameters:
ncfile
- the NetcdfFile to test- Returns:
- true if we think this is a Zebra file.
-
augmentDataset
public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException
Description copied from interface:CoordSysBuilderIF
Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.- Specified by:
augmentDataset
in interfaceCoordSysBuilderIF
- Overrides:
augmentDataset
in classCoordSysBuilder
- Parameters:
ds
- modify this datasetcancelTask
- give user a chance to bail out- Throws:
IOException
- on error
-
getAxisType
protected AxisType getAxisType(NetcdfDataset ncDataset, VariableEnhanced v)
Description copied from class:CoordSysBuilder
Identify what kind of AxisType the named variable is. Only called for variables already identified as Coordinate Axes. Default null - subclasses can override.- Overrides:
getAxisType
in classCoordSysBuilder
- Parameters:
ncDataset
- for this datasetv
- a variable alreaddy identified as a Coodinate Axis- Returns:
- AxisType or null if unknown.
-
spin
public double[] spin(double[] v1, double[] vs, double a)
---------------------------------------------------------------------- file spin.f This subroutine rotates vector V1 around vector VS at angle A. V2 is the vector after the rotation. parameter Input parameters: v1 - Vector to be rotated vs - Vector around which to rotate v1 a - angle of rotation Output parameters: v2 - output vector S.V.Sokolovskiy URL: svn://ursa.cosmic.ucar.edu/trunk/src/roam/spin.f $ $Id: spin.f 10129 2008-07-30 17:10:52Z dhunt $ ------------------------------------------------------------------------ Parameters:
v1
- - Vector to be rotatedvs
- - Vector around which to rotate v1a
- - angle of rotation- Returns:
- _more_
-
execute
public double[] execute(double[] eci, double julian)
-
ECFtoLLA
public static double[] ECFtoLLA(double x, double y, double z, double a, double b)
comparing api to others
-
-