OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_mld.cpp File Reference
#include <cstdio>
#include "l12_proto.h"
#include <sys/types.h>
#include <netcdf>
#include <vector>
#include <algorithm>
Include dependency graph for get_mld.cpp:

Go to the source code of this file.

Classes

struct  mld_info_struct
 

Macros

#define MLDXANC   360
 
#define MLDYANC   180
 

Functions

char * mldclimatology_path ()
 
float get_mld_hdf (float lon, float lat, int day)
 
int closest_index (vector< float > const &refvals, const float value)
 
float wrap (const float val, const float lo, const float hi)
 
vector< float > get_coords (NcFile *ncid, vector< string > varnames)
 
int init_mld_nc (char *mldfile, mld_info *mldinfo)
 
float get_mld_nc (char *mldfile, float lon, float lat)
 
float get_mld (char *mldfile, float lon, float lat, int day)
 

Macro Definition Documentation

◆ MLDXANC

#define MLDXANC   360

Definition at line 12 of file get_mld.cpp.

◆ MLDYANC

#define MLDYANC   180

Definition at line 13 of file get_mld.cpp.

Function Documentation

◆ closest_index()

int closest_index ( vector< float > const refvals,
const float  value 
)

Definition at line 198 of file get_mld.cpp.

◆ get_coords()

vector<float> get_coords ( NcFile *  ncid,
vector< string varnames 
)

Definition at line 232 of file get_mld.cpp.

◆ get_mld()

float get_mld ( char *  mldfile,
float  lon,
float  lat,
int  day 
)

Definition at line 347 of file get_mld.cpp.

◆ get_mld_hdf()

float get_mld_hdf ( float  lon,
float  lat,
int  day 
)

Definition at line 34 of file get_mld.cpp.

◆ get_mld_nc()

float get_mld_nc ( char *  mldfile,
float  lon,
float  lat 
)

Definition at line 303 of file get_mld.cpp.

◆ init_mld_nc()

int init_mld_nc ( char *  mldfile,
mld_info *  mldinfo 
)

Definition at line 248 of file get_mld.cpp.

◆ mldclimatology_path()

char* mldclimatology_path ( )

Definition at line 15 of file get_mld.cpp.

◆ wrap()

float wrap ( const float  val,
const float  lo,
const float  hi 
)

Definition at line 220 of file get_mld.cpp.