Class 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
    • Constructor Detail

      • Cosmic1Convention

        public Cosmic1Convention()
    • 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.
      • 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 class CoordSysBuilder
        Parameters:
        ncDataset - for this dataset
        v - 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 rotated
        vs - - Vector around which to rotate v1
        a - - 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