source: trunk/examples/berrada/sinobad/workdir_sinobad1/include/ncutil.h @ 23

Last change on this file since 23 was 23, checked in by lnalod, 15 years ago

Add of sinobad (NEMO) in the directory exemples/berrada/sinobad/.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1//netcdf
2#ifndef NCUTIL
3#define NCUTIL
4
5#include <stdio.h>
6#include <stdlib.h>
7#include <iostream.h>
8#include <netcdf.h>
9
10
11void    handle_error (int status, char *txt);///*fonction de message d'erreur
12int Ouvre_nc(char const *var_file );///* Ouvre un fichier nc et renvoie son id var_file_id
13int Var_id(int  var_file_id,char* varn); ///*initial traceurs actifs
14
15void vonclire(int t,int znbval, int ynbval, int xnbval, int ncid, int varid, double vect[]);
16void vonclire(int t,int znbval, int ynbval, int xnbval, int ncid, int varid, int vect[]);
17// lire volume 3D au temps t
18// le parametre t commence de 0 et pas de 1
19// (t,znbval,ynbval,xnbval,ncid, varid):
20// lit la variable varid aux points (t,1:znbval,1:ynbval,1:xnbval) et
21// renvoie un vecteur de dim znbval*ynbval*xnbval
22
23void sonclire(int t,int ynbval, int xnbval, int ncid, int varid, double vect[]);
24void sonclire(int t,int ynbval, int xnbval, int ncid, int varid, float vect[]);
25void sonclire(int t,int ynbval, int xnbval, int ncid, int varid, int vect[]);
26// lire surface 2D au temps t
27// le parametre t commence de 0 et pas de 1
28// (t,ynbval,xnbval,ncid, varid):
29// lit la variable varid aux points (t,1:ynbval,1:xnbval) et
30// renvoie un vecteur de dim ynbval*xnbval
31
32void zonclire(int t,int znbval, int ncid, int varid, double vect[]);
33void zonclire(int t,int znbval, int ncid, int varid, int vect[]);
34// lire surface 1D au temps t
35// le parametre t commence de 0 et pas de 1
36// (t,znbval,ncid, varid):
37// lit la variable varid aux points (t,1:znbval) et
38// renvoie un vecteur de dim znbval
39
40#endif
41
Note: See TracBrowser for help on using the repository browser.