Class Functions

java.lang.Object
edu.wisc.ssec.mcidasv.adt.Functions

public class Functions extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static double
     
    private static double
     
    private static int[]
     
    (package private) static String[]
     
    (package private) static double[][]
     
    (package private) static double[]
     
    (package private) static double[]
    Atlantic/Pacific pressure relationship values
    private static double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static double
    a_sign(double x, double y)
     
    static String
    adt_atcffilename(String StormNameInput, String StormSiteIDInput)
    Derived ATCF file name using various input parameters.
    static double
    adt_getpwval(int PressureWindIDValue, double CIValue, double LatitudeInput, double LongitudeInput)
    Obtain pressure or wind value (for Atlantic or West Pacific storms) given the intensity estimate value.
    static String
    adt_julian2cmonth(int JulianDateInputValue)
    Convert julian date to YYYYMMMDD format for output.
    static int[]
    adt_oceanbasin(double LatitudeInput, double LongitudeInput)
    Determine ocean basin given latitude and longitude position of storm.
    static String
    adt_sattypes(int SatelliteIDInput)
    Obtain satellite name given ID number.
    static double
    adt_slopecal(double SearchTimeInterval, int SlopeInterceptFlag)
    Calculate slope or y-intercept of all points over SearchTimeInterval period Inputs : SearchTimeInterval - time period to calculate slope or y-intercept SlopeInterceptFlag - flag value indicating slope or y-intercept calculation and parameter to utilize 1 = Final T# (will return slope) 2 = Adjusted Raw T# (will return slope) 3 = latitude (will return y-intercept) 4 = longitude (will return y-intercept) HistoryCurrentPointer_Global contains current analysis information
    static double
    adt_XLZA(double rlat, double rlon, double plat, double plon)
    Approximate local zenith angle (angle from vertical to the satellite).
    static int[]
    adt_yddmy(int JulianDateInput)
    Convert yyyyddd to dd/mm/yy format.
    static double
    calctime(int InputJulianDate, int InputHMSTime)
    Compute time in ADT xxxxx.yyy units, where xxxxx is the day and yyy is the percentage of the day.
    static int
    cmonth2julian(String InputDateCharString)
    Convert YYYYMMMDD format character string value to julian date Integer.
    private static double
    deg_to_rad(double deg)
     
    static double[]
    distance_angle(double EndLatitudeInput, double EndLongitudeInput, double StartLatitudeInput, double StartLongitudeInput, int UnitFlagID)
     
    static double[]
    distance_angle2(double StartLatitudeInput, double StartLongitudeInput, double DistanceInput, double AngleInput)
    Calculate a latitude and longitude position from an initial latitude/longitude and distance/angle values.
    static int
    idmyyd(int InputDay, int InputMonth, int InputYear)
    Convert dd/mm/yy to yyyyddd format.
    private static double
    rad_to_deg(double rad)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • deg_to_rad

      private static double deg_to_rad(double deg)
    • rad_to_deg

      private static double rad_to_deg(double rad)
    • a_sign

      private static double a_sign(double x, double y)
    • calctime

      public static double calctime(int InputJulianDate, int InputHMSTime)
      Compute time in ADT xxxxx.yyy units, where xxxxx is the day and yyy is the percentage of the day. This routine will also correct for Y2K problems.
      Parameters:
      InputJulianDate - Julian date.
      InputHMSTime - Time in HHMMSS format.
      Returns:
      Date/Time value in xxxxx.yyy units.
    • cmonth2julian

      public static int cmonth2julian(String InputDateCharString)
      Convert YYYYMMMDD format character string value to julian date Integer.
      Parameters:
      InputDateCharString - Character representation of date in YYYYmonDD format where DD and YYYY are integers and mon is a three character abbreviation for the month (e.g. 2000MAR13).
      Returns:
      Julian Date. Note: value may be 0 if there was a problem.
    • idmyyd

      public static int idmyyd(int InputDay, int InputMonth, int InputYear)
      Convert dd/mm/yy to yyyyddd format.
      Parameters:
      InputDay - Day.
      InputMonth - Month (integer).
      InputYear - Year (YY or YYYY).
      Returns:
      Julian date or 0 (0=bad input data).
    • adt_yddmy

      public static int[] adt_yddmy(int JulianDateInput)
      Convert yyyyddd to dd/mm/yy format.
      Parameters:
      JulianDateInput - Julian day (yyyyddd).
      Returns:
      Array of three values. First value is the day, second value is the month, and the third value is the year (yyyy).
    • adt_julian2cmonth

      public static String adt_julian2cmonth(int JulianDateInputValue)
      Convert julian date to YYYYMMMDD format for output.
      Parameters:
      JulianDateInputValue - Julian date representation of date.
      Returns:
      Character representation of date in YYYYmonDD format where DD and YYYY are integers and mon is a three character abbreviation for the month (e.g. 2000MAR13)
    • distance_angle

      public static double[] distance_angle(double EndLatitudeInput, double EndLongitudeInput, double StartLatitudeInput, double StartLongitudeInput, int UnitFlagID)
    • distance_angle2

      public static double[] distance_angle2(double StartLatitudeInput, double StartLongitudeInput, double DistanceInput, double AngleInput)
      Calculate a latitude and longitude position from an initial latitude/longitude and distance/angle values.
      Parameters:
      StartLatitudeInput - Initial latitude.
      StartLongitudeInput - Initial longitude.
      DistanceInput - Distance from initial position.
      AngleInput - Angle from initial position. Outputs : EndLatitude_Return - derived latitude EndLongitude_Return - derived longitude
    • adt_oceanbasin

      public static int[] adt_oceanbasin(double LatitudeInput, double LongitudeInput)
      Determine ocean basin given latitude and longitude position of storm. Outputs : None Return : basin type (0=atlantic,1=west pacific,2,east pacific,3=Indian)
      Parameters:
      LatitudeInput - Latitude.
      LongitudeInput - Longitude.
    • adt_slopecal

      public static double adt_slopecal(double SearchTimeInterval, int SlopeInterceptFlag)
      Calculate slope or y-intercept of all points over SearchTimeInterval period Inputs : SearchTimeInterval - time period to calculate slope or y-intercept SlopeInterceptFlag - flag value indicating slope or y-intercept calculation and parameter to utilize 1 = Final T# (will return slope) 2 = Adjusted Raw T# (will return slope) 3 = latitude (will return y-intercept) 4 = longitude (will return y-intercept) HistoryCurrentPointer_Global contains current analysis information
      Returns:
      Slope or Y-Intercept value of line over time period desired
    • adt_getpwval

      public static double adt_getpwval(int PressureWindIDValue, double CIValue, double LatitudeInput, double LongitudeInput)
      Obtain pressure or wind value (for Atlantic or West Pacific storms) given the intensity estimate value.
      Parameters:
      PressureWindIDValue - Flag for wind (1) or pressure (0) output.
      CIValue - Current Intensity (CI) value
      LatitudeInput - Latitude value of analysis
      LongitudeInput - Longitude value of analysis
      Returns:
      Pressure or Wind Speed value.
    • adt_sattypes

      public static String adt_sattypes(int SatelliteIDInput)
      Obtain satellite name given ID number.
      Parameters:
      SatelliteIDInput - Internal ADT satellite ID number.
      Returns:
      Satellite character string ID.
    • adt_atcffilename

      public static String adt_atcffilename(String StormNameInput, String StormSiteIDInput)
      Derived ATCF file name using various input parameters. Inputs : StormName_Input - Storm ID character string value (e.g. 12L) Outputs : ATCFFileName - Complete file name and path for ATCF file Return : 0
    • adt_XLZA

      public static double adt_XLZA(double rlat, double rlon, double plat, double plon)
      Approximate local zenith angle (angle from vertical to the satellite).
      Parameters:
      rlat - Latitude of target position on earth.
      rlon - Longitude of target position on earth.
      plat - Latitude of sub-satellite point.
      plon - Longitude of sub-satellite point.
      Returns:
      local zenith angle