OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
regen_proto.h
Go to the documentation of this file.
1 #ifndef REGEN_PROTO_H
2 #define REGEN_PROTO_H
3 
4 extern int32 regen(char *infile, int32 *spix, int32 *epix, int32 *sscan,
5  int32 *escan, int32 pix_sub, int32 sc_sub, char *parm_list,
6  char *outfile);
7 
8 extern void set_subsc_params(int32 nsamp, int32 nrec, int32 xsub, int32 ysub,
9  int32 *ssamp, int32 *esamp, int32 *srec, int32 *erec,
10  int32 *subsc_samps, int32 *subsc_recs, int32 *max_samp_used,
11  int32 *max_rec_used);
12 
13 extern int32 rdattr(int32 sdfid, char *attr_name, void *buf);
14 
15 extern int32 getset_gattrs(int32 isdfid, int32 osdfid);
16 
17 extern int32 dupHDF(int32 ifid, int32 ofid, int32 isdfid, int32 osdfid,
18  int32 *ssamp, int32 *esamp, int32 *srec, int32 *erec, int32 xsub,
19  int32 ysub, int32 subsc_samps, int32 subsc_recs, int32 nvgps,
20  char *parm_list);
21 
22 extern int32 set_sds(int32 isdfid, int32 osdfid, char *vgname, int32 ovid,
23  int32 tag, int32 ref, int32 subsc_samps, int32 subsc_recs,
24  char *parm_list, int32 *in_sdsid, int32 *out_sdsid);
25 
26 extern int32 write_data(int32 isdfid, int32 osdfid, int32 isdsid, int32 osdsid,
27  int32 ssamp, int32 srec, int32 esamp, int32 erec, int32 xsub,
28  int32 ysub);
29 
30 extern int32 rdslice(int32 sdfid, char *name, int32 *start, int32 *edge,
31  void *buf);
32 
33 extern int32 subsample(int32 rank, int32 *idims, int32 *odims,
34  int32 num_type, int32 srec, int32 erec, int32 ssamp,
35  int32 esamp, int32 xsub, int32 ysub, void *ibuf, void *obuf);
36 
37 extern int32 update_sds(int32 sdfid, char *name, int32 *start, int32 *edge,
38  void *buf);
39 
40 extern int32 subsamp_rec(int32 srec, int32 maxrec, int32 rank, int32 *dims,
41  int32 ysub, int32 nt, void *obuf, void *nbuf);
42 
43 extern void subsamp_2D(int32 spix, int32 sscan, int32 epix, int32 escan,
44  int32 xdim, int32 xsub, int32 ysub, int32 nt, void *inbuf,
45  void *outbuf);
46 
47 extern int32 alloc_nav_buffs(int32 nrec, NavType *nav_rec);
48 
49 extern int32 get_navdata(int32 sdfid, int32 nrec, NavType *nav_rec);
50 
51 extern int32 alloc_geonav_buffs(int32 nrec, GeoType *geo_rec);
52 
53 extern int32 get_geodata(int32 pix_start, int32 pix_sub, int32 srec,
54  int32 ssamp, int32 subsc_recs,
55  int32 subsc_samps, int32 ysub, int32 xsub, char *dtype,
56  NavType *nav_rec, GeoType *geo_rec);
57 
58 extern int32 write_coords(int32 sdfid, int32 nrec, GeoType *geo_rec);
59 
60 extern int32 get_tiltdata(int32 sdfid, tilt_Type *tiltrec);
61 
62 extern int32 set_tiltdata(int32 sdfid, int32 srec, int32 erec, int32 ysub,
63  float32 *slat, float32 *slon, float32 *elat, float32 *elon,
64  tilt_Type *old_tiltrec, tilt_Type *new_tiltrec);
65 
66 extern int32 set_l1adata(int32 isdfid, int32 osdfid, int32 num_recs,
67  int32 num_samps, int32 subsc_recs, int32 subsc_samps,
68  int32 srec, int32 ssamp, int32 erec, int32 esamp, int32 xsub,
69  int32 ysub, FilemetricsType *fm_rec);
70 
71 extern int32 subsamp_l1adata(int32 srec, int32 erec, int32 ssamp,
72  int32 esamp, int32 xsub, int32 ysub, int32 nsamp,
73  int16 *gain, int16 *dark_rest, FilemetricsType *fm_rec,
74  int16 *inbuf, int16 *outbuf, int16 *s_satp, int16 *s_zerop,
75  int32 *new_buf_recs);
76 
77 extern int32 set_flags(int32 sdfid, int32 nrec, int32 nsamp, int32 *flags);
78 
79 extern int32 set_globalattrs(char *outfile, int32 sdfid, int32 l1aflag,
80  int32 nrec, int32 nsamp, int32 ssamp, int32 xsub, int32 *flags,
81  GeoType *geo_rec, FilemetricsType *fm_rec);
82 
83 extern void free_geonav_buffs(GeoType *geo_rec);
84 
85 extern void free_nav_buffs(NavType *nav_rec);
86 
87 #endif /* REGEN_PROTO_H */
88 
integer, parameter int16
Definition: cubeio.f90:3
int32 write_data(int32 isdfid, int32 osdfid, int32 isdsid, int32 osdsid, int32 ssamp, int32 srec, int32 esamp, int32 erec, int32 xsub, int32 ysub)
Definition: extract_sub.c:788
void subsamp_2D(int32 spix, int32 sscan, int32 epix, int32 escan, int32 xdim, int32 xsub, int32 ysub, int32 nt, void *inbuf, void *outbuf)
Definition: extract_sub.c:1929
int32 get_navdata(int32 sdfid, int32 nrec, NavType *nav_rec)
Definition: extract_sub.c:1741
int16 * gain
Definition: l1_czcs_hdf.c:33
int32 subsample(int32 rank, int32 *idims, int32 *odims, int32 num_type, int32 srec, int32 erec, int32 ssamp, int32 esamp, int32 xsub, int32 ysub, void *ibuf, void *obuf)
Definition: extract_sub.c:1039
int32 set_sds(int32 isdfid, int32 osdfid, char *vgname, int32 ovid, int32 tag, int32 ref, int32 subsc_samps, int32 subsc_recs, char *parm_list, int32 *in_sdsid, int32 *out_sdsid)
Definition: extract_sub.c:661
int32 rdslice(int32 sdfid, char *name, int32 *start, int32 *edge, void *buf)
Definition: stat_chk_utl.c:94
int16_t * dark_rest
Definition: l1a_seawifs.c:89
int32 getset_gattrs(int32 isdfid, int32 osdfid)
Definition: extract_sub.c:390
int32 set_flags(int32 sdfid, int32 nrec, int32 nsamp, int32 *flags)
Definition: extract_sub.c:1645
int32 alloc_nav_buffs(int32 nrec, NavType *nav_rec)
Definition: extract_sub.c:1691
int32 dupHDF(int32 ifid, int32 ofid, int32 isdfid, int32 osdfid, int32 *ssamp, int32 *esamp, int32 *srec, int32 *erec, int32 xsub, int32 ysub, int32 subsc_samps, int32 subsc_recs, int32 nvgps, char *parm_list)
Definition: extract_sub.c:569
int32 subsamp_l1adata(int32 srec, int32 erec, int32 ssamp, int32 esamp, int32 xsub, int32 ysub, int32 nsamp, int16 *gain, int16 *dark_rest, FilemetricsType *fm_rec, int16 *inbuf, int16 *outbuf, int16 *s_satp, int16 *s_zerop, int32 *new_buf_recs)
Definition: extract_sub.c:2187
int32 get_tiltdata(int32 sdfid, tilt_Type *tiltrec)
Definition: extract_sub.c:1446
int32 update_sds(int32 sdfid, char *name, int32 *start, int32 *edge, void *buf)
Definition: extract_sub.c:1188
int32 get_geodata(int32 pix_start, int32 pix_sub, int32 srec, int32 ssamp, int32 subsc_recs, int32 subsc_samps, int32 ysub, int32 xsub, char *dtype, NavType *nav_rec, GeoType *geo_rec)
Definition: extract_sub.c:1326
int32 subsamp_rec(int32 srec, int32 maxrec, int32 rank, int32 *dims, int32 ysub, int32 nt, void *obuf, void *nbuf)
Definition: extract_sub.c:1856
int32 write_coords(int32 sdfid, int32 nrec, GeoType *geo_rec)
Definition: extract_sub.c:1398
flags
Definition: DDAlgorithm.h:22
dtype
Definition: DDataset.hpp:31
Extra metadata that will be written to the HDF4 file l2prod rank
int32 regen(char *infile, int32 *spix, int32 *epix, int32 *sscan, int32 *escan, int32 pix_sub, int32 sc_sub, char *parm_list, char *outfile)
Definition: extract_sub.c:152
void free_nav_buffs(NavType *nav_rec)
Definition: extract_sub.c:1813
int32 epix
Definition: l1_czcs_hdf.c:23
int32 alloc_geonav_buffs(int32 nrec, GeoType *geo_rec)
Definition: extract_sub.c:1236
void set_subsc_params(int32 nsamp, int32 nrec, int32 xsub, int32 ysub, int32 *ssamp, int32 *esamp, int32 *srec, int32 *erec, int32 *subsc_samps, int32 *subsc_recs, int32 *max_samp_used, int32 *max_rec_used)
Definition: extract_sub.c:318
int32 rdattr(int32 sdfid, char *attr_name, void *buf)
Definition: stat_chk_utl.c:38
void free_geonav_buffs(GeoType *geo_rec)
Definition: extract_sub.c:1282
int32 set_l1adata(int32 isdfid, int32 osdfid, int32 num_recs, int32 num_samps, int32 subsc_recs, int32 subsc_samps, int32 srec, int32 ssamp, int32 erec, int32 esamp, int32 xsub, int32 ysub, FilemetricsType *fm_rec)
Definition: extract_sub.c:2039
int32 set_tiltdata(int32 sdfid, int32 srec, int32 erec, int32 ysub, float32 *slat, float32 *slon, float32 *elat, float32 *elon, tilt_Type *old_tiltrec, tilt_Type *new_tiltrec)
Definition: extract_sub.c:1503
int32 set_globalattrs(char *outfile, int32 sdfid, int32 l1aflag, int32 nrec, int32 nsamp, int32 ssamp, int32 xsub, int32 *flags, GeoType *geo_rec, FilemetricsType *fm_rec)
Definition: extract_sub.c:2296