#include <netcdf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "molfile_plugin.h"
Go to the source code of this file.
Compounds | |
struct | amberdata |
struct | cdfdata |
struct | mmtkdata |
Defines | |
#define | CDF_TYPE_UNKNOWN 0 |
#define | CDF_TYPE_AMBER 1 |
#define | CDF_TYPE_MMTK 2 |
#define | CDF_SUCCESS 0 |
#define | CDF_ERR -1 |
Functions | |
void | close_cdf_read (void *mydata) |
int | open_amber_cdf_read (cdfdata *cdf) |
int | open_mmtk_cdf_read (cdfdata *cdf, int conventionsknown) |
void * | open_cdf_read (const char *filename, const char *filetype, int *natoms) |
char * | find_closing_bracket (char *s) |
void | atom_name_replace (char *name, char *substring, char letter) |
void | atom_name_remove_underscores (char *name) |
void | set_atom_attributes (molfile_atom_t *atoms, int natoms, char **atom_pointers, char chain_id, char *resname, int resnum, char *start, char *end, int name_correction_type) |
int | read_mmtk_cdf_structure (void *mydata, int *optflags, molfile_atom_t *atoms) |
int | read_cdf_structure (void *mydata, int *optflags, molfile_atom_t *atoms) |
int | read_amber_cdf_timestep (void *mydata, int natoms, molfile_timestep_t *ts) |
int | read_mmtk_cdf_timestep (void *mydata, int natoms, molfile_timestep_t *ts) |
int | read_cdf_timestep (void *mydata, int natoms, molfile_timestep_t *ts) |
VMDPLUGIN_API int | VMDPLUGIN_init (void) |
VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
VMDPLUGIN_API int | VMDPLUGIN_fini (void) |
Variables | |
molfile_plugin_t | plugin |
|
Definition at line 34 of file netcdfplugin.c. Referenced by open_amber_cdf_read, and open_mmtk_cdf_read. |
|
Definition at line 33 of file netcdfplugin.c. Referenced by open_amber_cdf_read, and open_mmtk_cdf_read. |
|
Definition at line 30 of file netcdfplugin.c. Referenced by open_amber_cdf_read, read_cdf_structure, and read_cdf_timestep. |
|
Definition at line 31 of file netcdfplugin.c. Referenced by open_mmtk_cdf_read, read_cdf_structure, and read_cdf_timestep. |
|
Definition at line 29 of file netcdfplugin.c. Referenced by open_cdf_read. |
|
Definition at line 592 of file netcdfplugin.c. References name. Referenced by set_atom_attributes. |
|
Definition at line 584 of file netcdfplugin.c. References name. Referenced by set_atom_attributes. |
|
Definition at line 109 of file netcdfplugin.c. References cdfdata::amber, amberdata::application, amberdata::cell_angles_units, amberdata::cell_lengths_units, mmtkdata::comment, cdfdata::conventions, amberdata::conventionversion, amberdata::coordinates_units, cdfdata::mmtk, cdfdata::ncid, amberdata::program, amberdata::programversion, and amberdata::title. Referenced by open_cdf_read, and VMDPLUGIN_init. |
|
Definition at line 571 of file netcdfplugin.c. Referenced by read_mmtk_cdf_structure. |
|
|
Definition at line 511 of file netcdfplugin.c. References CDF_TYPE_UNKNOWN, close_cdf_read, cdfdata::conventions, cdfdata::natoms, cdfdata::ncid, open_amber_cdf_read, open_mmtk_cdf_read, and cdfdata::type. Referenced by VMDPLUGIN_init. |
|
|
|
Definition at line 901 of file netcdfplugin.c. References CDF_TYPE_AMBER, CDF_TYPE_MMTK, MOLFILE_ERROR, MOLFILE_NOSTRUCTUREDATA, read_mmtk_cdf_structure, and cdfdata::type. Referenced by VMDPLUGIN_init. |
|
Definition at line 1102 of file netcdfplugin.c. References CDF_TYPE_AMBER, CDF_TYPE_MMTK, MOLFILE_ERROR, read_amber_cdf_timestep, read_mmtk_cdf_timestep, and cdfdata::type. Referenced by VMDPLUGIN_init. |
|
Definition at line 655 of file netcdfplugin.c. References molfile_atom_t::chain, cdfdata::curframe, mmtkdata::description, mmtkdata::description_id, mmtkdata::description_lengthdim, find_closing_bracket, cdfdata::mmtk, MOLFILE_ERROR, MOLFILE_NOOPTIONS, name, molfile_atom_t::name, cdfdata::natoms, cdfdata::ncid, molfile_atom_t::resid, molfile_atom_t::resname, molfile_atom_t::segid, set_atom_attributes, and molfile_atom_t::type. Referenced by read_cdf_structure. |
|
|
Definition at line 604 of file netcdfplugin.c. References atom_name_remove_underscores, atom_name_replace, molfile_atom_t::chain, molfile_atom_t::name, molfile_atom_t::resid, and molfile_atom_t::resname. Referenced by read_mmtk_cdf_structure. |
|
Definition at line 1142 of file netcdfplugin.c. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 1137 of file netcdfplugin.c. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
Definition at line 1117 of file netcdfplugin.c. |