ucar.nc2.dataset.conv
Class Cosmic1Convention

java.lang.Object
  extended by ucar.nc2.dataset.CoordSysBuilder
      extended by 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
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordSysBuilder
CoordSysBuilder.ConventionNameOk, CoordSysBuilder.VarProcess
 
Field Summary
protected static double DTR
          _more_
protected static double RTD
          _more_
 
Fields inherited from class ucar.nc2.dataset.CoordSysBuilder
conventionName, coordVarMap, debug, log, parseInfo, resourcesDir, showRejects, userAdvice, varList
 
Constructor Summary
Cosmic1Convention()
          _more_
 
Method Summary
 void augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
          _more_
static double[] ECFtoLLA(double x, double y, double z, double a, double b)
          comparing api to others
 double[] execute(double[] eci, double julian)
          _more_
 double gast(int iyr, int imon, int iday, int ihr, int imin, double sec, double dsec)
          ---------------------------------------------------------------------- gast.f This subroutine computes the Greenwich Apparent Siderial Time angle given a UTC date and time.
protected  AxisType getAxisType(NetcdfDataset ncDataset, VariableEnhanced v)
          _more_
static boolean isMine(NetcdfFile ncfile)
           
 double juday(int M, int D, int Y)
          JDAY calculates the Julian Day number (JD) from the Gregorian month ,day, and year (M,D,Y).
 double[] spin(double[] v1, double[] vs, double a)
          ---------------------------------------------------------------------- file spin.f This subroutine rotates vector V1 around vector VS at angle A.
 double togreenw(double rectt, double utco, double gmst)
          This subroutine is to transform the locations and velocities of the GPS and LEO satellites from the celestial inertial reference frame to the Earth centered Greenwich reference frame.
 double[] xyzell(double a, double b, double[] xstat)
          NAME : XYZELL CALL XYZELL(A,B,XSTAT,XSTELL) PURPOSE : COMPUTATION OF ELLIPSOIDAL COORDINATES "XSTELL" GIVEN THE CARTESIAN COORDINATES "XSTAT" PARAMETERS : IN : A : SEMI-MAJOR AXIS OF THE REFERENCE R*8 ELLIPSOID IN METERS B : SEMI-MINOR AXIS OF THE REFERENCE R*8 ELLIPSOID IN METERS DXELL(3): TRANSLATION COMPONENTS FROM THE R*8 ORIGIN OF THE CART.
 
Methods inherited from class ucar.nc2.dataset.CoordSysBuilder
addCoordinateVariable, addUserAdvice, assignCoordinateSystemsExplicit, assignCoordinateTransforms, buildCoordinateSystems, factory, findCoordinateAxes, findCoordinateAxis, findCoordinateSystems, findCoordinateTransforms, findVarProcess, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, hasXY, isCoordinateAxisForVariable, makeCoordinateAxes, makeCoordinateSystems, makeCoordinateSystemsImplicit, makeCoordinateSystemsMaximal, makeCoordinateTransform, makeCoordinateTransforms, makeCoordinateTransformVariable, makeDummyTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RTD

protected static final double RTD
_more_

See Also:
Constant Field Values

DTR

protected static final double DTR
_more_

See Also:
Constant Field Values
Constructor Detail

Cosmic1Convention

public Cosmic1Convention()
_more_

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
_more_

Specified by:
augmentDataset in interface CoordSysBuilderIF
Overrides:
augmentDataset in class CoordSysBuilder
Parameters:
ds - _more_
cancelTask - _more_
Throws:
IOException - _more_

getAxisType

protected AxisType getAxisType(NetcdfDataset ncDataset,
                               VariableEnhanced v)
_more_

Overrides:
getAxisType in class CoordSysBuilder
Parameters:
ncDataset - _more_
v - _more_
Returns:
_more_

xyzell

public double[] xyzell(double a,
                       double b,
                       double[] xstat)
NAME : XYZELL CALL XYZELL(A,B,XSTAT,XSTELL) PURPOSE : COMPUTATION OF ELLIPSOIDAL COORDINATES "XSTELL" GIVEN THE CARTESIAN COORDINATES "XSTAT" PARAMETERS : IN : A : SEMI-MAJOR AXIS OF THE REFERENCE R*8 ELLIPSOID IN METERS B : SEMI-MINOR AXIS OF THE REFERENCE R*8 ELLIPSOID IN METERS DXELL(3): TRANSLATION COMPONENTS FROM THE R*8 ORIGIN OF THE CART. COORD. SYSTEM (X,Y,Z) TO THE CENTER OF THE REF. ELLIPSOID (IN METRES) SCELL : SCALE FACTOR BETWEEN REF. ELLIPSOID R*8 AND WGS-84 XSTAT(3): CARTESIAN COORDINATES (M) R*8 OUT : XSTELL(3): ELLIPSOIDAL COORDINATES R*8 XSTELL(1): ELL. LATITUDE (RADIAN) XSTELL(2): ELL. LONGITUDE (RADIAN) XSTELL(3): ELL. HEIGHT (M) SR CALLED : DMLMTV REMARKS : --- AUTHOR : M. ROTHACHER VERSION : 3.4 (JAN 93) CREATED : 87/11/03 12:32 LAST MODIFIED : 88/11/21 17:36 COPYRIGHT : ASTRONOMICAL INSTITUTE 1987 UNIVERSITY OF BERNE SWITZERLAND

Parameters:
a - _more_
b - _more_
xstat - _more_
Returns:
_more_

gast

public double gast(int iyr,
                   int imon,
                   int iday,
                   int ihr,
                   int imin,
                   double sec,
                   double dsec)
---------------------------------------------------------------------- gast.f This subroutine computes the Greenwich Apparent Siderial Time angle given a UTC date and time. parameter Input parameters: Inputs:

Parameters:
iyr - integer year 1995
imon - integer month 5
iday - integer day 5
ihr - integer hour 5
imin - integer minute 5
sec - double second 31.0
dsec - double second 0.0 Outputs:
Returns:
theta GAST angle in radians author Bill Schreiner
Since:
May 1995 version $URL: svn://ursa.cosmic.ucar.edu/trunk/src/roam/gast.f $ $Id: gast.f 10129 2008-07-30 17:10:52Z dhunt $ -----------------------------------------------------------------------

juday

public double juday(int M,
                    int D,
                    int Y)
JDAY calculates the Julian Day number (JD) from the Gregorian month ,day, and year (M,D,Y). (NOT VALID BEFORE 10/15/1582)

Parameters:
M - _more_
D - _more_
Y - _more_
Returns:
_more_

togreenw

public double togreenw(double rectt,
                       double utco,
                       double gmst)
This subroutine is to transform the locations and velocities of the GPS and LEO satellites from the celestial inertial reference frame to the Earth centered Greenwich reference frame. The dummy arguments iyear, month and iday are the calender year, month and day of the occultation event. The dummy arguments ihour, minute and sec are the UTC time. Reference: Astronomical Alamanus, 1993 Modified subroutine from Dasheng's code.

Parameters:
rectt - _more_
utco - _more_
gmst - _more_
Returns:
_more_

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)
_more_

Parameters:
eci - _more_
julian - _more_
Returns:
_more_

ECFtoLLA

public static double[] ECFtoLLA(double x,
                                double y,
                                double z,
                                double a,
                                double b)
comparing api to others

Parameters:
x - _more_
y - _more_
z - _more_
a - _more_
b - _more_
Returns:
_more_


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.