BG_Flood  0.1
Documentation (Work-in-progress)
Read_netcdf.cu File Reference
#include "Read_netcdf.h"
Include dependency graph for Read_netcdf.cu:

Functions

int nc_get_var_T (int ncid, int varid, float *&zb)
 
int nc_get_var_T (int ncid, int varid, double *&zb)
 
int nc_get_var_T (int ncid, int varid, int *&zb)
 
int nc_get_vara_T (int ncid, int varid, const size_t *startp, const size_t *countp, int *&zb)
 
int nc_get_vara_T (int ncid, int varid, const size_t *startp, const size_t *countp, float *&zb)
 
int nc_get_vara_T (int ncid, int varid, const size_t *startp, const size_t *countp, double *&zb)
 
int nc_get_var1_T (int ncid, int varid, const size_t *startp, float *zsa)
 
int nc_get_var1_T (int ncid, int varid, const size_t *startp, double *zsa)
 
void readgridncsize (const std::string ncfilestr, const std::string varstr, std::string reftime, int &nx, int &ny, int &nt, double &dx, double &dy, double &dt, double &xo, double &yo, double &to, double &xmax, double &ymax, double &tmax, bool &flipx, bool &flipy)
 
void readgridncsize (forcingmap &Fmap, Param XParam)
 
template<class T >
void readgridncsize (T &Imap)
 
template void readgridncsize< inputmap > (inputmap &Imap)
 
template void readgridncsize< forcingmap > (forcingmap &Imap)
 
template void readgridncsize< StaticForcingP< int > > (StaticForcingP< int > &Imap)
 
template void readgridncsize< StaticForcingP< float > > (StaticForcingP< float > &Imap)
 
template void readgridncsize< deformmap< float > > (deformmap< float > &Imap)
 
template void readgridncsize< DynForcingP< float > > (DynForcingP< float > &Imap)
 
int readvarinfo (std::string filename, std::string Varname, size_t *&ddimU)
 
int readnctime (std::string filename, double *&time)
 
int readnctime2 (int ncid, char *timecoordname, std::string refdate, size_t nt, double *&time)
 
template<class T >
int readncslev1 (std::string filename, std::string varstr, size_t indx, size_t indy, size_t indt, bool checkhh, double eps, T *&zsa)
 
template int readncslev1< float > (std::string filename, std::string varstr, size_t indx, size_t indy, size_t indt, bool checkhh, double eps, float *&zsa)
 
template int readncslev1< double > (std::string filename, std::string varstr, size_t indx, size_t indy, size_t indt, bool checkhh, double eps, double *&zsa)
 
template<class T >
int readvardata (std::string filename, std::string Varname, int step, T *&vardata, bool flipx, bool flipy)
 
template int readvardata< int > (std::string filename, std::string Varname, int step, int *&vardata, bool flipx, bool flipy)
 
template int readvardata< float > (std::string filename, std::string Varname, int step, float *&vardata, bool flipx, bool flipy)
 
template int readvardata< double > (std::string filename, std::string Varname, int step, double *&vardata, bool flipx, bool flipy)
 
std::string checkncvarname (int ncid, std::string stringA, std::string stringB, std::string stringC, std::string stringD, std::string stringE)
 
void readWNDstep (forcingmap WNDUmap, forcingmap WNDVmap, int steptoread, float *&Uo, float *&Vo)
 
void readATMstep (forcingmap ATMPmap, int steptoread, float *&Po)
 
void read3Dnc (int nx, int ny, int ntheta, char ncfile[], float *&ee)
 
void read2Dnc (int nx, int ny, char ncfile[], float *&hh)
 
void readnczb (int nx, int ny, std::string ncfile, float *&zb)
 

Function Documentation

◆ checkncvarname()

std::string checkncvarname ( int  ncid,
std::string  stringA,
std::string  stringB,
std::string  stringC,
std::string  stringD,
std::string  stringE 
)

◆ nc_get_var1_T() [1/2]

int nc_get_var1_T ( int  ncid,
int  varid,
const size_t *  startp,
double *  zsa 
)
inline

◆ nc_get_var1_T() [2/2]

int nc_get_var1_T ( int  ncid,
int  varid,
const size_t *  startp,
float *  zsa 
)
inline

◆ nc_get_var_T() [1/3]

int nc_get_var_T ( int  ncid,
int  varid,
double *&  zb 
)
inline

◆ nc_get_var_T() [2/3]

int nc_get_var_T ( int  ncid,
int  varid,
float *&  zb 
)
inline

◆ nc_get_var_T() [3/3]

int nc_get_var_T ( int  ncid,
int  varid,
int *&  zb 
)
inline

◆ nc_get_vara_T() [1/3]

int nc_get_vara_T ( int  ncid,
int  varid,
const size_t *  startp,
const size_t *  countp,
double *&  zb 
)
inline

◆ nc_get_vara_T() [2/3]

int nc_get_vara_T ( int  ncid,
int  varid,
const size_t *  startp,
const size_t *  countp,
float *&  zb 
)
inline

◆ nc_get_vara_T() [3/3]

int nc_get_vara_T ( int  ncid,
int  varid,
const size_t *  startp,
const size_t *  countp,
int *&  zb 
)
inline

◆ read2Dnc()

void read2Dnc ( int  nx,
int  ny,
char  ncfile[],
float *&  hh 
)

◆ read3Dnc()

void read3Dnc ( int  nx,
int  ny,
int  ntheta,
char  ncfile[],
float *&  ee 
)

◆ readATMstep()

void readATMstep ( forcingmap  ATMPmap,
int  steptoread,
float *&  Po 
)

◆ readgridncsize() [1/3]

void readgridncsize ( const std::string  ncfilestr,
const std::string  varstr,
std::string  reftime,
int &  nx,
int &  ny,
int &  nt,
double &  dx,
double &  dy,
double &  dt,
double &  xo,
double &  yo,
double &  to,
double &  xmax,
double &  ymax,
double &  tmax,
bool &  flipx,
bool &  flipy 
)

◆ readgridncsize() [2/3]

void readgridncsize ( forcingmap Fmap,
Param  XParam 
)

◆ readgridncsize() [3/3]

template<class T >
void readgridncsize ( T &  Imap)

◆ readgridncsize< deformmap< float > >()

template void readgridncsize< deformmap< float > > ( deformmap< float > &  Imap)

◆ readgridncsize< DynForcingP< float > >()

template void readgridncsize< DynForcingP< float > > ( DynForcingP< float > &  Imap)

◆ readgridncsize< forcingmap >()

template void readgridncsize< forcingmap > ( forcingmap Imap)

◆ readgridncsize< inputmap >()

template void readgridncsize< inputmap > ( inputmap Imap)

◆ readgridncsize< StaticForcingP< float > >()

template void readgridncsize< StaticForcingP< float > > ( StaticForcingP< float > &  Imap)

◆ readgridncsize< StaticForcingP< int > >()

template void readgridncsize< StaticForcingP< int > > ( StaticForcingP< int > &  Imap)

◆ readncslev1()

template<class T >
int readncslev1 ( std::string  filename,
std::string  varstr,
size_t  indx,
size_t  indy,
size_t  indt,
bool  checkhh,
double  eps,
T *&  zsa 
)

◆ readncslev1< double >()

template int readncslev1< double > ( std::string  filename,
std::string  varstr,
size_t  indx,
size_t  indy,
size_t  indt,
bool  checkhh,
double  eps,
double *&  zsa 
)

◆ readncslev1< float >()

template int readncslev1< float > ( std::string  filename,
std::string  varstr,
size_t  indx,
size_t  indy,
size_t  indt,
bool  checkhh,
double  eps,
float *&  zsa 
)

◆ readnctime()

int readnctime ( std::string  filename,
double *&  time 
)

◆ readnctime2()

int readnctime2 ( int  ncid,
char *  timecoordname,
std::string  refdate,
size_t  nt,
double *&  time 
)

std::vector<std::string> nameelements;

nameelements = split(filename, '?'); if (nameelements.size() > 1) { //variable name for bathy is not given so it is assumed to be zb ncfilestr = nameelements[0]; //varstr = nameelements[1]; } else { ncfilestr = filename; //varstr = "time"; }

status = nc_open(ncfilestr.c_str(), 0, &ncid); if (status != NC_NOERR) handle_ncerror(status);

status = nc_close(ncid);

◆ readnczb()

void readnczb ( int  nx,
int  ny,
std::string  ncfile,
float *&  zb 
)

◆ readvardata()

template<class T >
int readvardata ( std::string  filename,
std::string  Varname,
int  step,
T *&  vardata,
bool  flipx,
bool  flipy 
)

◆ readvardata< double >()

template int readvardata< double > ( std::string  filename,
std::string  Varname,
int  step,
double *&  vardata,
bool  flipx,
bool  flipy 
)

◆ readvardata< float >()

template int readvardata< float > ( std::string  filename,
std::string  Varname,
int  step,
float *&  vardata,
bool  flipx,
bool  flipy 
)

◆ readvardata< int >()

template int readvardata< int > ( std::string  filename,
std::string  Varname,
int  step,
int *&  vardata,
bool  flipx,
bool  flipy 
)

◆ readvarinfo()

int readvarinfo ( std::string  filename,
std::string  Varname,
size_t *&  ddimU 
)

◆ readWNDstep()

void readWNDstep ( forcingmap  WNDUmap,
forcingmap  WNDVmap,
int  steptoread,
float *&  Uo,
float *&  Vo 
)