Package edu.wisc.ssec.mcidasv.adt
Class Functions
java.lang.Object
edu.wisc.ssec.mcidasv.adt.Functions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 valuesprivate static double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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 informationstatic 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)
-
Field Details
-
Months
-
PW_TnoValues
-
PW_PressureValues
-
PW_WindValues
Atlantic/Pacific pressure relationship values -
RADIANSCONSTANT
-
ANGLE90DEGRADIANS
-
EARTHRADIUSKM
-
JulianDateMonthArray
-
-
Constructor Details
-
Functions
public Functions()
-
-
Method Details
-
deg_to_rad
-
rad_to_deg
-
a_sign
-
calctime
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
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
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
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
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
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
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) valueLatitudeInput
- Latitude value of analysisLongitudeInput
- Longitude value of analysis- Returns:
- Pressure or Wind Speed value.
-
adt_sattypes
Obtain satellite name given ID number.- Parameters:
SatelliteIDInput
- Internal ADT satellite ID number.- Returns:
- Satellite character string ID.
-
adt_atcffilename
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
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
-