OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
profile_management.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "profile_management.h"
Include dependency graph for profile_management.c:

Go to the source code of this file.

Macros

#define GRAV_ACCEL_EARTH   9.80665 /* m / s^2 */
 
#define SPEC_GAS_CONST_AIR   287.05 /* J / kg K */
 
#define SPEC_GAS_CONST_H2O   461.51 /* J / kg K */
 

Functions

double lin_int (double x1, double x2, double x, double y1, double y2)
 
int profile_to_101_ (double *p, double *t, double *w, int *nn, double *nlat, double *pp, double *tt, double *ww, int *is_o3)
 
float get_satmix (float P, float T)
 
int make_profile_101_ (double *p)
 
int int_levels_pp (double *p, double *t, double *w, int n, double *pp, double *tt, double *ww, int nn, int *i_str, int *i_end)
 
int height_profile_ (double *p, double *t, double *w, double *z, int *nn, double *np0)
 

Macro Definition Documentation

◆ GRAV_ACCEL_EARTH

#define GRAV_ACCEL_EARTH   9.80665 /* m / s^2 */

Definition at line 8 of file profile_management.c.

◆ SPEC_GAS_CONST_AIR

#define SPEC_GAS_CONST_AIR   287.05 /* J / kg K */

Definition at line 9 of file profile_management.c.

◆ SPEC_GAS_CONST_H2O

#define SPEC_GAS_CONST_H2O   461.51 /* J / kg K */

Definition at line 10 of file profile_management.c.

Function Documentation

◆ get_satmix()

float get_satmix ( float  P,
float  T 
)

After Rogers and Yau.

latent heat of ice, doesnt change very much

saturation vapor pressure in mb

saturation mixing ratio in g/kg

Definition at line 125 of file profile_management.c.

◆ height_profile_()

int height_profile_ ( double *  p,
double *  t,
double *  w,
double *  z,
int *  nn,
double *  np0 
)

Definition at line 253 of file profile_management.c.

◆ int_levels_pp()

int int_levels_pp ( double *  p,
double *  t,
double *  w,
int  n,
double *  pp,
double *  tt,
double *  ww,
int  nn,
int *  i_str,
int *  i_end 
)

Definition at line 179 of file profile_management.c.

◆ lin_int()

double lin_int ( double  x1,
double  x2,
double  x,
double  y1,
double  y2 
)

Definition at line 15 of file profile_management.c.

◆ make_profile_101_()

int make_profile_101_ ( double *  p)

Definition at line 157 of file profile_management.c.

◆ profile_to_101_()

int profile_to_101_ ( double *  p,
double *  t,
double *  w,
int *  nn,
double *  nlat,
double *  pp,
double *  tt,
double *  ww,
int *  is_o3 
)

Definition at line 25 of file profile_management.c.