Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInferenceHDF5.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 John Veitch and Leo Singer
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with with program; see the file COPYING. If not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19
20#ifndef LALInferenceHDF5_h
21#define LALInferenceHDF5_h
22
23#include <lal/LALInference.h>
24#include <lal/H5FileIO.h>
25
26/**
27 * Returns 1 if a non-empty file exists, 0 otherwise
28 */
30
31/**
32 * Prints the size of the file
33 */
35
37 LALH5File *h5file, LALInferenceVariables *const *const varsArray, UINT4 N,
38 const char *TableName);
39
41 LALH5Dataset *dataset, LALInferenceVariables ***varsArray, UINT4 *N);
42
43/**
44 * Create a HDF5 heirarchy in the given LALH5File reference
45 * /codename/runID/
46 * Returns a LALH5File pointer to the runID group.
47 */
49 LALH5File *h5file, const char *codename, const char *runID);
50
53
54#endif /* LALInferenceHDF5_h */
struct tagLALH5File LALH5File
struct tagLALH5Dataset LALH5Dataset
int LALInferenceCheckNonEmptyFile(char *filename)
Returns 1 if a non-empty file exists, 0 otherwise.
int LALInferencePrintCheckpointFileInfo(char *filename)
Prints the size of the file.
int LALInferenceH5DatasetToVariablesArray(LALH5Dataset *dataset, LALInferenceVariables ***varsArray, UINT4 *N)
const char LALInferenceHDF5PosteriorSamplesDatasetName[]
int LALInferenceH5VariablesArrayToDataset(LALH5File *h5file, LALInferenceVariables *const *const varsArray, UINT4 N, const char *TableName)
LALH5File * LALInferenceH5CreateGroupStructure(LALH5File *h5file, const char *codename, const char *runID)
Create a HDF5 heirarchy in the given LALH5File reference /codename/runID/ Returns a LALH5File pointer...
const char LALInferenceHDF5NestedSamplesDatasetName[]
uint32_t UINT4
The LALInferenceVariables structure to contain a set of parameters Implemented as a linked list of LA...
Definition: LALInference.h:170