OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
met_cvt.h File Reference
#include <math.h>
Include dependency graph for met_cvt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MET_UNITS__P_PA   0 /* Pressure in Pascals */
 
#define MET_UNITS__P_HPA   1 /* Pressure in Hectopascals */
 
#define MET_UNITS__T_K   10 /* Temperature in deg K */
 
#define MET_UNITS__T_C   11 /* Temperature in deg C */
 
#define MET_UNITS__Q_KG_KG   20 /* Specific humidity in Kg / Kg */
 
#define MET_UNITS__Q_G_KG   21 /* Specific humidity in g / Kg */
 
#define M_DRY   28.9644 /* molar mass of dry air */
 
#define M_WET   18.01534 /* molar mass of water */
 
#define C_IN_K   273.15 /* the value of 0 C in K */
 
#define R_W   461.5 /* gas constanr for water vapor in K^-1 kg^-1 */
 
#define L_ENTHALPY
 
#define MAGNUS_A1   17.625 /* the A1 value for the Magnus equation for es */
 
#define MAGNUS_B1   243.04 /* the B1 value for the Magnus equation for es */
 

Functions

int met_cvt_q_to_rh (int, float *, int, float *, int, float *, int, float *)
 
int met_cvt_rh_to_q (int, float *, int, float *, int, float *, float *, int)
 
double met_cvt_p_cvt (double, int, int)
 
double met_cvt_t_cvt (double, int, int)
 
double met_cvt_q_cvt (double, int, int)
 
int met_cvt_ttd_to_rh (int, float *, int, float *, int, float *)
 

Macro Definition Documentation

◆ C_IN_K

#define C_IN_K   273.15 /* the value of 0 C in K */

Definition at line 36 of file met_cvt.h.

◆ L_ENTHALPY

#define L_ENTHALPY
Value:
2.38e6 /* enthalpy of vaporization (varies from
2.501 at 273.15K to 2.257 at 373.15) */

Definition at line 38 of file met_cvt.h.

◆ M_DRY

#define M_DRY   28.9644 /* molar mass of dry air */

Definition at line 34 of file met_cvt.h.

◆ M_WET

#define M_WET   18.01534 /* molar mass of water */

Definition at line 35 of file met_cvt.h.

◆ MAGNUS_A1

#define MAGNUS_A1   17.625 /* the A1 value for the Magnus equation for es */

Definition at line 39 of file met_cvt.h.

◆ MAGNUS_B1

#define MAGNUS_B1   243.04 /* the B1 value for the Magnus equation for es */

Definition at line 40 of file met_cvt.h.

◆ MET_UNITS__P_HPA

#define MET_UNITS__P_HPA   1 /* Pressure in Hectopascals */

Definition at line 25 of file met_cvt.h.

◆ MET_UNITS__P_PA

#define MET_UNITS__P_PA   0 /* Pressure in Pascals */

Definition at line 24 of file met_cvt.h.

◆ MET_UNITS__Q_G_KG

#define MET_UNITS__Q_G_KG   21 /* Specific humidity in g / Kg */

Definition at line 29 of file met_cvt.h.

◆ MET_UNITS__Q_KG_KG

#define MET_UNITS__Q_KG_KG   20 /* Specific humidity in Kg / Kg */

Definition at line 28 of file met_cvt.h.

◆ MET_UNITS__T_C

#define MET_UNITS__T_C   11 /* Temperature in deg C */

Definition at line 27 of file met_cvt.h.

◆ MET_UNITS__T_K

#define MET_UNITS__T_K   10 /* Temperature in deg K */

Definition at line 26 of file met_cvt.h.

◆ R_W

#define R_W   461.5 /* gas constanr for water vapor in K^-1 kg^-1 */

Definition at line 37 of file met_cvt.h.

Function Documentation

◆ met_cvt_p_cvt()

double met_cvt_p_cvt ( double  ,
int  ,
int   
)

Definition at line 236 of file met_cvt.c.

◆ met_cvt_q_cvt()

double met_cvt_q_cvt ( double  ,
int  ,
int   
)

Definition at line 314 of file met_cvt.c.

◆ met_cvt_q_to_rh()

int met_cvt_q_to_rh ( int  ,
float *  ,
int  ,
float *  ,
int  ,
float *  ,
int  ,
float *   
)

Definition at line 15 of file met_cvt.c.

◆ met_cvt_rh_to_q()

int met_cvt_rh_to_q ( int  ,
float *  ,
int  ,
float *  ,
int  ,
float *  ,
float *  ,
int   
)

Definition at line 99 of file met_cvt.c.

◆ met_cvt_t_cvt()

double met_cvt_t_cvt ( double  ,
int  ,
int   
)

Definition at line 284 of file met_cvt.c.

◆ met_cvt_ttd_to_rh()

int met_cvt_ttd_to_rh ( int  ,
float *  ,
int  ,
float *  ,
int  ,
float *   
)

Definition at line 182 of file met_cvt.c.