wrfout  0.0-0.dev0.dirty.el6
 All Data Structures Files Functions Variables Typedefs Enumerations Groups
wrfout_store_data.c
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Author:
4 * name: Brian Ermold
5 * phone: 509-375-2277
6 * email: brian.ermold@pnnl.gov
7 *
8 ******************************************************************************/
9 
10 /** @file wrfout_store_data.c
11  * WRFOUT Store Data Functions.
12  */
13 
14 #include "wrfout_ingest.h"
15 
16 /**
17  * Store the WRFOUT data.
18  *
19  * @param data pointer to the UserData structure
20  *
21  * @retval nstored number of data records stored
22  * @retval -1 if a fatal error occurred
23  */
25 {
26  // CDSGroup *dataset = data->out_ds;
27  int nstored;
28 
29  /* Dump the output dataset to a file if debug level is > 3 */
30 
31  if (dsproc_get_debug_level() > 3) {
32 
34  "./debug_dumps", "before_store.debug", 0);
35  }
36 
37  nstored = dsproc_store_dataset(data->out_dsid, 0);
38 
39  return(nstored);
40 }