BG_Flood
0.1
Documentation (Work-in-progress)
|
#include "Read_netcdf.h"
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) |
std::string checkncvarname | ( | int | ncid, |
std::string | stringA, | ||
std::string | stringB, | ||
std::string | stringC, | ||
std::string | stringD, | ||
std::string | stringE | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void read2Dnc | ( | int | nx, |
int | ny, | ||
char | ncfile[], | ||
float *& | hh | ||
) |
void read3Dnc | ( | int | nx, |
int | ny, | ||
int | ntheta, | ||
char | ncfile[], | ||
float *& | ee | ||
) |
void readATMstep | ( | forcingmap | ATMPmap, |
int | steptoread, | ||
float *& | Po | ||
) |
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 | ||
) |
void readgridncsize | ( | T & | Imap | ) |
template void readgridncsize< deformmap< float > > | ( | deformmap< float > & | Imap | ) |
template void readgridncsize< DynForcingP< float > > | ( | DynForcingP< float > & | Imap | ) |
template void readgridncsize< forcingmap > | ( | forcingmap & | Imap | ) |
template void readgridncsize< inputmap > | ( | inputmap & | Imap | ) |
template void readgridncsize< StaticForcingP< float > > | ( | StaticForcingP< float > & | Imap | ) |
template void readgridncsize< StaticForcingP< int > > | ( | StaticForcingP< int > & | Imap | ) |
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< double > | ( | std::string | filename, |
std::string | varstr, | ||
size_t | indx, | ||
size_t | indy, | ||
size_t | indt, | ||
bool | checkhh, | ||
double | eps, | ||
double *& | 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 | ||
) |
int readnctime | ( | std::string | filename, |
double *& | time | ||
) |
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);
void readnczb | ( | int | nx, |
int | ny, | ||
std::string | ncfile, | ||
float *& | zb | ||
) |
int readvardata | ( | std::string | filename, |
std::string | Varname, | ||
int | step, | ||
T *& | vardata, | ||
bool | flipx, | ||
bool | flipy | ||
) |
template int readvardata< double > | ( | std::string | filename, |
std::string | Varname, | ||
int | step, | ||
double *& | 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< int > | ( | std::string | filename, |
std::string | Varname, | ||
int | step, | ||
int *& | vardata, | ||
bool | flipx, | ||
bool | flipy | ||
) |
int readvarinfo | ( | std::string | filename, |
std::string | Varname, | ||
size_t *& | ddimU | ||
) |
void readWNDstep | ( | forcingmap | WNDUmap, |
forcingmap | WNDVmap, | ||
int | steptoread, | ||
float *& | Uo, | ||
float *& | Vo | ||
) |