OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1io.h
Go to the documentation of this file.
1 /*******************************************************************
2 
3  l1io.h
4 
5  purpose: include file for the use of the level 1 direct I/O routines
6 
7  Parameters:
8  Type Name I/O Description
9  ---- ---- --- -----------
10  unsigned char * l1a_path I path for level 1A file
11 
12  Modification history:
13  Programmer Date Description of change
14  ---------- ---- ---------------------
15  W. Robinson 15-Feb-1993 Original development
16 
17  *******************************************************************/
18 
19 /*
20  * Note that hdf.h is needed for this and navigation defs
21  */
22 #include <stdint.h>
23 #include "nav_l1io.h"
24 #include "ancil.h"
25 
26 /*
27  * the l1info_struct structure has file ids...
28  */
29 typedef struct l1info_struct_d {
30  int32_t fid;
31  int32_t sdfid;
32 } l1info_struct;
33 
34 /*
35  * prototypes
36  */
37 void pexit(char *string);
38 int pwarning(char *string);
39 
40 int32_t open_hdf(char *fname, l1info_struct *l1info);
41 int32_t read_g_attr(l1info_struct l1info, char *name, int32_t *n_type,
42  int32_t *count, void *data);
43 int day2mday(int year, int day_of_year, int *month, int *day_of_month);
44 
45 
46 /* prototypes from ANCroutines.c */
47 int startHDF(char *outfile, int32_t *sdfid, int32_t *fid, int32_t mode);
48 int32_t setupGrid(int32_t fid, char *grpname);
49 int32_t gridToGrid(int32_t outergridid, int32_t innergridid);
50 int32_t writeGeom(int32_t fid, int32_t gridid, char *geomname, int32_t bin_meth,
51  int32_t registration, float vsize, float hsize,
52  float max_north, float max_south, float max_west,
53  float max_east);
54 int32_t findGeomId(int32_t fid, char *geomname);
55 int32_t linkGeom(int32_t gridid, int32_t geomid);
56 int32_t detachGeom(int32_t geomid);
57 int addAttr(int32_t sdsid, char *dataattr, int32_t datatype, char *dataunit);
58 int setSDSref(int32_t sdsid, int32_t gridid);
59 int deattachHDFgrid(int32_t gridid);
60 int closeHDFstructs(int32_t sdfid, int32_t fid);
61 int32_t wrtsds(int32_t sdfid, int rank, int32_t *shape, int32_t datatype,
62  char *datalabel, void *data);
63 int32_t rewrtsds(int32_t sdsid, int32_t *shape, void *data);
64 int rdsds(char *filename, char *vgname, char *sdsname, int32_t *dimsizes,
65  void *inData);
66 int wrtattr(int32_t dfile, struct annotation *annot, int numannarr);
67 
68 
69 int32_t l1io_open(char *, l1info_struct*, int32_t *, int32_t *);
70 int32_t l1io_read(l1info_struct, int, int16 *,
71  navblockType *);
72 void l1io_close(l1info_struct);
integer, parameter int16
Definition: cubeio.f90:3
int32_t writeGeom(int32_t fid, int32_t gridid, char *geomname, int32_t bin_meth, int32_t registration, float vsize, float hsize, float max_north, float max_south, float max_west, float max_east)
Definition: ANCroutines.c:92
void pwarning(char *string)
Definition: pexit.c:21
int addAttr(int32_t sdsid, char *dataattr, int32_t datatype, char *dataunit)
Definition: ANCroutines.c:222
int32_t l1io_open(char *, l1info_struct *, int32_t *, int32_t *)
Definition: l1io_open.c:4
int32_t rewrtsds(int32_t sdsid, int32_t *shape, void *data)
int32_t open_hdf(char *fname, l1info_struct *l1info)
Definition: open_hdf.c:5
README for MOD_PR02AQUA(AQUA) Version to set to For disabling creating and output data sets when in night mode
Definition: README.txt:96
int32_t fid
Definition: l1io.h:45
int32_t read_g_attr(l1info_struct l1info, char *name, int32_t *n_type, int32_t *count, void *data)
int32_t gridToGrid(int32_t outergridid, int32_t innergridid)
Definition: ANCroutines.c:71
int32_t sdfid
Definition: l1io.h:46
int rdsds(char *filename, char *vgname, char *sdsname, int32_t *dimsizes, void *inData)
int wrtattr(int32_t dfile, struct annotation *annot, int numannarr)
Definition: ANCroutines.c:631
int setSDSref(int32_t sdsid, int32_t gridid)
Definition: ANCroutines.c:245
char filename[FILENAME_MAX]
Definition: atrem_corl1.h:122
int day2mday(int year, int day_of_year, int *month, int *day_of_month)
Definition: day2mday.c:3
int32_t findGeomId(int32_t fid, char *geomname)
Definition: ANCroutines.c:162
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
int32_t linkGeom(int32_t gridid, int32_t geomid)
int32_t setupGrid(int32_t fid, char *grpname)
Definition: ANCroutines.c:51
int32_t detachGeom(int32_t geomid)
Definition: ANCroutines.c:205
int startHDF(char *outfile, int32_t *sdfid, int32_t *fid, int32_t mode)
Definition: ANCroutines.c:27
Extra metadata that will be written to the HDF4 file l2prod rank
int deattachHDFgrid(int32_t gridid)
Definition: ANCroutines.c:267
struct annotation * annot
void l1io_close(l1info_struct)
Definition: l1io_close.c:4
int32_t wrtsds(int32_t sdfid, int rank, int32_t *shape, int32_t datatype, char *datalabel, void *data)
int closeHDFstructs(int32_t sdfid, int32_t fid)
Definition: ANCroutines.c:281
int32_t l1io_read(l1info_struct, int, int16_t *, navblockType *)
Definition: l1io_read.c:5
void pexit(char *string)
Definition: pexit.c:10
int count
Definition: decode_rs.h:79