VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
met.h File Reference

Go to the source code of this file.

Macros

#define MIN_LAGDAY_AIR   1.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 1.86 */
#define MAX_LAGDAY_AIR   5.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 1.86 */
#define MIN_LAGNIGHT_AIR   -1.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES -0.17 */
#define MAX_LAGNIGHT_AIR   1.5 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES -0.17 */
#define MIN_NDECAY_AIR   1.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 2.2 */
#define MAX_NDECAY_AIR   3.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 2.2 */
#define MIN_LAGDAY_GND   0.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 0.5 */
#define MAX_LAGDAY_GND   2.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 0.5 */
#define MIN_LAGNIGHT_GND   0.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES 0.49 */
#define MAX_LAGNIGHT_GND   2.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES 0.49 */
#define MIN_NDECAY_GND   1.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 1.81 */
#define MAX_NDECAY_GND   5.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 1.81 */
#define TaTearthMaxDiff   20.0 /* MAX DIFFERENCE BETWEEN AIR AND GROUND TEMPERATURE */

Functions

SIGSIM_API int Met4x (METIN *metin, int air_model_option)
void GetLagTimesAir (double TaveC, double rhfrac, double xmit, double windspeed, double *LAGDAY_AIR, double *LAGNIGHT_AIR, double *NDECAY_AIR)
void GetLagTimesGnd (double TaveC, double rhfrac, double xmit, double windspeed, double *LAGDAY_GND, double *LAGNIGHT_GND, double *NDECAY_GND)
double get_delayed_tod (double tod, double sunrise, double sunset, double LAGDAY_AIR, double LAGNIGHT_AIR)
void get_groundtemp_limits (double rhfrac, double xmit, double Tamax, double Tamin, double *Tgmax, double *Tgmin)
SIGSIM_API double Tenvironment (double met_tod, double sunrise, double sunset, double Tmax, double Tmin, int air_model_option, double LAGDAY, double LAGNIGHT, double NDECAY)
SIGSIM_API double Tair_degC (double met_tod, double sunrise, double sunset, double Tamax, double Tamin, int air_model_option, double rhfrac, double xmit, double windspeed)
SIGSIM_API double Tgnd_degC (double tod, double sunrise, double sunset, double Tamax, double Tamin, int air_model_option, double rhfrac, double xmit, double windspeed)
SIGSIM_API int FillMetinUserDefinedAirTempArray (METIN *metin, double *tod, double *Ta, int ntod)
double lunar_albedo (double lambda)
SIGSIM_API void CalcLongitudinalJRMTIMEs (ellipsoid E, GEODETIC_LOCATION localD, JRMTIME localzone, JRMTIME *local, JRMTIME *UTC, double *local_zone_offset)
void CalcBodyVectorInEarthCenteredFrameAtGeoD (double lat_rad, double dec_rad, double ra_rad, double sa_rad, VECTOR *body)
void SolarEphemerides (JRMTIME ptime, double *dec_rad, double *ra_rad, double *range_km)
void SunriseSunset (double lat_rad, double dec_rad, double lhn, double *sunrise, double *sunset)
SIGSIM_API double SiderealTime (double lon_rad, JRMTIME ptime)
GEODETIC_LOCATION CalcBodyGeodeticPositionGivenVecInEarthCenteredFrameAtGeoD (ellipsoid E, GEODETIC_LOCATION localD, VECTOR body, double range)
void SolarEphemerisSEU (ellipsoid E, GEODETIC_LOCATION localD, JRMTIME localzone, VECTOR *sunmax, VECTOR *sunplane, VECTOR *suneast, double *lhn, double *sunrise, double *sunset, VECTOR *sun, double *az_deg, double *el_deg, double *raSun, double *decSun, double *rangeSun, double *sunlat_deg, double *sunlon_deg)
void LunarEphemerisSEU (ellipsoid E, GEODETIC_LOCATION localD, JRMTIME localzone, VECTOR *moon, double *raMoon, double *decMoon, double *rangeMoon, double *az_deg, double *el_deg, double *moonlat_deg, double *moonlon_deg)
double MoonElongationFromEphemerides (double raSun, double decSun, double raMoon, double decMoon)
double MoonElongationFromGeodetics (double lonSun, double lonMoon, double latMoon)
double MoonPhaseFromElongation (double elongation, double rangeSun, double rangeMoon)
double MoonIlluminatedFraction (double phase)
void CalcMoonPhaseAndIlluminatedFraction (EPHEMERIS *fm)
VECTOR MoonInMetinSEU (GEOCENTRIC_LOCATION moon, GEOCENTRIC_LOCATION met, ellipsoid E)
SIGSIM_API GEOCENTRIC_LOCATION GeocentricMoonPosition (double julianDay, ellipsoid E, double *range_m, double *dec_rad, double *ra_rad)
SIGSIM_API GEOCENTRIC_LOCATION GeocentricMoonPosition2 (double julianDay, ellipsoid E, double *range_m, double *dec_rad, double *ra_rad)
SIGSIM_API int DoEphemeris (EPHEMERIS *fm)
SIGSIM_API int DuplicateModtranAtm_DefaultLogic (ATM_DEFAULT *atm_default, double *RainRate, double *Visibility, jrmbool RESET)
SIGSIM_API void earthtilt (double tjd, double *mobl, double *tobl, double *eq, double *dpsi, double *deps)
void fund_args (double t, double a[5])
short int nutation_angles (double t, double *longnutation, double *obliqnutation)
SIGSIM_API void sidereal_time (double jd_high, double jd_low, double ee, double *gst)
SIGSIM_API void terra (EPHEMERIS fm, double alt, double st, VECTOR *pos)
void spin (EPHEMERIS fm, double st, VECTOR pos1, VECTOR *pos2)

Macro Definition Documentation

#define MIN_LAGDAY_AIR   1.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 1.86 */
#define MAX_LAGDAY_AIR   5.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 1.86 */
#define MIN_LAGNIGHT_AIR   -1.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES -0.17 */
#define MAX_LAGNIGHT_AIR   1.5 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES -0.17 */
#define MIN_NDECAY_AIR   1.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 2.2 */
#define MAX_NDECAY_AIR   3.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 2.2 */
#define MIN_LAGDAY_GND   0.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 0.5 */
#define MAX_LAGDAY_GND   2.5 /* TIME LAG IN MAXIMUM TEMPERATURE AFTER NOON (HR). PL MODEL USES 0.5 */
#define MIN_LAGNIGHT_GND   0.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES 0.49 */
#define MAX_LAGNIGHT_GND   2.0 /* TIME LAG FOR THE MINIMUM TEMPERATURE AFTER SUNRISE (HR). PL MODEL USES 0.49 */
#define MIN_NDECAY_GND   1.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 1.81 */
#define MAX_NDECAY_GND   5.5 /* COEFFICIENT THAT CONTROLS TEMPERATURE DECREASE AT NIGHT. PL MODEL USES 1.81 */
#define TaTearthMaxDiff   20.0 /* MAX DIFFERENCE BETWEEN AIR AND GROUND TEMPERATURE */

Function Documentation

SIGSIM_API int Met4x ( METIN metin,
int  air_model_option 
)
void GetLagTimesAir ( double  TaveC,
double  rhfrac,
double  xmit,
double  windspeed,
double *  LAGDAY_AIR,
double *  LAGNIGHT_AIR,
double *  NDECAY_AIR 
)
void GetLagTimesGnd ( double  TaveC,
double  rhfrac,
double  xmit,
double  windspeed,
double *  LAGDAY_GND,
double *  LAGNIGHT_GND,
double *  NDECAY_GND 
)
double get_delayed_tod ( double  tod,
double  sunrise,
double  sunset,
double  LAGDAY_AIR,
double  LAGNIGHT_AIR 
)
void get_groundtemp_limits ( double  rhfrac,
double  xmit,
double  Tamax,
double  Tamin,
double *  Tgmax,
double *  Tgmin 
)
SIGSIM_API double Tenvironment ( double  met_tod,
double  sunrise,
double  sunset,
double  Tmax,
double  Tmin,
int  air_model_option,
double  LAGDAY,
double  LAGNIGHT,
double  NDECAY 
)
SIGSIM_API double Tair_degC ( double  met_tod,
double  sunrise,
double  sunset,
double  Tamax,
double  Tamin,
int  air_model_option,
double  rhfrac,
double  xmit,
double  windspeed 
)
SIGSIM_API double Tgnd_degC ( double  tod,
double  sunrise,
double  sunset,
double  Tamax,
double  Tamin,
int  air_model_option,
double  rhfrac,
double  xmit,
double  windspeed 
)
SIGSIM_API int FillMetinUserDefinedAirTempArray ( METIN metin,
double *  tod,
double *  Ta,
int  ntod 
)
double lunar_albedo ( double  lambda)
SIGSIM_API void CalcLongitudinalJRMTIMEs ( ellipsoid  E,
GEODETIC_LOCATION  localD,
JRMTIME  localzone,
JRMTIME local,
JRMTIME UTC,
double *  local_zone_offset 
)
void CalcBodyVectorInEarthCenteredFrameAtGeoD ( double  lat_rad,
double  dec_rad,
double  ra_rad,
double  sa_rad,
VECTOR body 
)
void SolarEphemerides ( JRMTIME  ptime,
double *  dec_rad,
double *  ra_rad,
double *  range_km 
)
void SunriseSunset ( double  lat_rad,
double  dec_rad,
double  lhn,
double *  sunrise,
double *  sunset 
)
SIGSIM_API double SiderealTime ( double  lon_rad,
JRMTIME  ptime 
)
GEODETIC_LOCATION CalcBodyGeodeticPositionGivenVecInEarthCenteredFrameAtGeoD ( ellipsoid  E,
GEODETIC_LOCATION  localD,
VECTOR  body,
double  range 
)
void SolarEphemerisSEU ( ellipsoid  E,
GEODETIC_LOCATION  localD,
JRMTIME  localzone,
VECTOR sunmax,
VECTOR sunplane,
VECTOR suneast,
double *  lhn,
double *  sunrise,
double *  sunset,
VECTOR sun,
double *  az_deg,
double *  el_deg,
double *  raSun,
double *  decSun,
double *  rangeSun,
double *  sunlat_deg,
double *  sunlon_deg 
)
void LunarEphemerisSEU ( ellipsoid  E,
GEODETIC_LOCATION  localD,
JRMTIME  localzone,
VECTOR moon,
double *  raMoon,
double *  decMoon,
double *  rangeMoon,
double *  az_deg,
double *  el_deg,
double *  moonlat_deg,
double *  moonlon_deg 
)
double MoonElongationFromEphemerides ( double  raSun,
double  decSun,
double  raMoon,
double  decMoon 
)
double MoonElongationFromGeodetics ( double  lonSun,
double  lonMoon,
double  latMoon 
)
double MoonPhaseFromElongation ( double  elongation,
double  rangeSun,
double  rangeMoon 
)
double MoonIlluminatedFraction ( double  phase)
void CalcMoonPhaseAndIlluminatedFraction ( EPHEMERIS fm)
VECTOR MoonInMetinSEU ( GEOCENTRIC_LOCATION  moon,
GEOCENTRIC_LOCATION  met,
ellipsoid  E 
)
SIGSIM_API GEOCENTRIC_LOCATION GeocentricMoonPosition ( double  julianDay,
ellipsoid  E,
double *  range_m,
double *  dec_rad,
double *  ra_rad 
)
SIGSIM_API GEOCENTRIC_LOCATION GeocentricMoonPosition2 ( double  julianDay,
ellipsoid  E,
double *  range_m,
double *  dec_rad,
double *  ra_rad 
)
SIGSIM_API int DoEphemeris ( EPHEMERIS fm)
SIGSIM_API int DuplicateModtranAtm_DefaultLogic ( ATM_DEFAULT atm_default,
double *  RainRate,
double *  Visibility,
jrmbool  RESET 
)
SIGSIM_API void earthtilt ( double  tjd,
double *  mobl,
double *  tobl,
double *  eq,
double *  dpsi,
double *  deps 
)
void fund_args ( double  t,
double  a[5] 
)
short int nutation_angles ( double  t,
double *  longnutation,
double *  obliqnutation 
)
SIGSIM_API void sidereal_time ( double  jd_high,
double  jd_low,
double  ee,
double *  gst 
)
SIGSIM_API void terra ( EPHEMERIS  fm,
double  alt,
double  st,
VECTOR pos 
)
void spin ( EPHEMERIS  fm,
double  st,
VECTOR  pos1,
VECTOR pos2 
)


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)