MISR Toolkit  1.5.1
MisrFileQuery.h
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MisrFileQuery =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2005, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #ifndef MISRFILEQUERY_H
18 #define MISRFILEQUERY_H
19 
20 #include "MisrError.h"
21 #include "MisrUtil.h"
22 #include "MisrProjParam.h"
23 
24 typedef enum MTKt_FileType { /* File type */
46 
47 #define MTKT_FILE_TYPE_DESC { "AGP", "GP_GMP", "GRP_RCCM", \
48  "GRP_ELLIPSOID_GM", "GRP_TERRAIN_GM", \
49  "GRP_ELLIPSOID_LM", "GRP_TERRAIN_LM", \
50  "AS_AEROSOL", "AS_LAND", "TC_ALBEDO", \
51  "TC_CLASSIFIERS", "TC_STEREO", \
52  "PP", "CONVENTIONAL", "UNKNOWN","TC_CLOUD", \
53  "MISR_HR_BRF", "MISR_HR_RPV", "MISR_HR_TIP", \
54  "MISR_CMV_NRT"}
55 
57 typedef struct MtkCoreMetaData {
58  union {
59  char **s; /* Array of strings */
60  int *i; /* Array of integers */
61  double *d; /* Array of doubles */
62  } data;
64  enum {
68  } datatype;
69  void *dataptr; /* Pointer data buffer */
71 
72 #define MTK_CORE_METADATA_INIT { {NULL}, 0, MTKMETA_CHAR, NULL }
73 
74 #define NGRIDCELL 2
75 
77 typedef struct MTKt_TimeMetaData {
81  MTKt_char8 camera[3];
82  MTKt_int32 number_transform[NBLOCK + 1];
84  MTKt_int32 start_line[NBLOCK + 1][NGRIDCELL];
85  MTKt_int32 number_line[NBLOCK + 1][NGRIDCELL];
86  MTKt_double coeff_line[NBLOCK + 1][6][NGRIDCELL];
87  MTKt_double som_ctr_x[NBLOCK + 1][NGRIDCELL];
88  MTKt_double som_ctr_y[NBLOCK + 1][NGRIDCELL];
90 
91 #define MTKT_TIME_METADATA_INIT { 0, 0, 0, {'\0'}, {0}, {{{'\0'}}}, {{0}}, {{0}}, \
92  {{{0.0}}}, {{0.0}}, {{0.0}} }
93 
95  int *path );
96 
98  int *path );
99 
101  int *path );
102 
103 MTKt_status MtkFileToPathFid( int32 sid,
104  int *path );
105 
107  int *path );
108 
109 MTKt_status MtkFileToOrbit( const char *filename,
110  int *orbit );
111 
113  int *orbit );
114 
116  int *orbit );
117 
118 MTKt_status MtkFileToOrbitFid( int32 sd_id,
119  int *orbit );
120 
122  int *orbit );
123 
125  int *start_block,
126  int *end_block );
127 
129  int *start_block,
130  int *end_block );
131 
133  int *start_block,
134  int *end_block );
135 
137  int *start_block,
138  int *end_block );
139 
141  int *start_block,
142  int *end_block );
143 
145  const char *gridname,
146  int *resolution );
147 
149  const char *gridname,
150  int *resolution );
151 
153  const char *gridname,
154  int *resolution );
155 
157  const char *gridname,
158  int *resolution );
159 
161  const char *gridname,
162  int *resolution );
163 
165  const char *gridname,
166  const char *fieldname,
168 
170  const char *gridname,
171  const char *fieldname,
173 
175  const char *gridname,
176  const char *fieldname,
178 
180  const char *gridname,
181  const char *fieldname,
183 
185  const char *gridname,
186  const char *fieldname,
188 
190  const char *gridname,
191  const char *fieldname,
192  MTKt_DataBuffer *fillbuf );
193 
195  const char *gridname,
196  const char *fieldname,
197  MTKt_DataBuffer *fillbuf );
198 
200  const char *gridname,
201  const char *fieldname,
202  MTKt_DataBuffer *fillbuf );
203 
205  const char *gridname,
206  const char *fieldname,
207  MTKt_DataBuffer *fillbuf );
208 
210  const char *gridname,
211  const char *fieldname,
212  MTKt_DataBuffer *fillbuf );
213 
215  int *ngrids,
216  char **gridlist[] );
217 
219  int *ngrids,
220  char **gridlist[] );
221 
223  int *ngrids,
224  char **gridlist[] );
225 
227  int *ngrids,
228  char **gridlist[] );
229 
231  int *ngrids,
232  char **gridlist[] );
233 int32
234 GDinqgridfid(int32 fid, char *objectlist, int32 * strbufsize);
235 
236 
238  const char *gridname,
239  int *nfields,
240  char **fieldlist[] );
241 
243  const char *gridname,
244  int *nfields,
245  char **fieldlist[] );
246 
248  const char *gridname,
249  int *nfields,
250  char **fieldlist[] );
251 
253  const char *gridname,
254  int *nfields,
255  char **fieldlist[] );
256 
258  const char *gridname,
259  int *nfields,
260  char **fieldlist[] );
261 
263  const char *gridname,
264  int *nfields,
265  char **fieldlist[] );
266 
268  const char *gridname,
269  int *nfields,
270  char **fieldlist[] );
271 
273  const char *gridname,
274  int *nfields,
275  char **fieldlist[] );
276 
278  const char *gridname,
279  int *nfields,
280  char **fieldlist[] );
281 
283  const char *gridname,
284  int *nfields,
285  char **fieldlist[] );
286 
287 MTKt_status MtkMakeFilename( const char *basedir,
288  const char *product,
289  const char *camera,
290  int path,
291  int orbit,
292  const char *version,
293  char **filename );
294 
295 MTKt_status MtkFindFileList( const char *searchdir,
296  const char *product,
297  const char *camera,
298  const char *path,
299  const char *orbit,
300  const char *version,
301  int *filecnt,
302  char **filenames[] );
303 
304 MTKt_status MtkFileLGID( const char *filename,
305  char **lgid );
306 
307 MTKt_status MtkFileLGIDNC( const char *filename,
308  char **lgid );
309 
310 MTKt_status MtkFileLGIDHDF( const char *filename,
311  char **lgid );
312 
313 MTKt_status MtkFileLGIDFid( int32 sds_id,
314  char **lgid );
315 
316 MTKt_status MtkFileLGIDNcid( int ncid,
317  char **lgid );
318 
319 MTKt_status MtkFileType( const char *filename,
320  MTKt_FileType *filetype );
321 
322 MTKt_status MtkFileTypeNC( const char *filename,
323  MTKt_FileType *filetype );
324 
325 MTKt_status MtkFileTypeHDF( const char *filename,
326  MTKt_FileType *filetype );
327 
328 MTKt_status MtkFileTypeFid( int32 Fid,
329  MTKt_FileType *filetype );
330 
331 MTKt_status MtkFileTypeNcid( int ncid,
332  MTKt_FileType *filetype );
333 
334 MTKt_status MtkFileVersion( const char *filename,
335  char *fileversion );
336 
338  char *fileversion );
339 
341  char *fileversion );
342 
343 MTKt_status MtkFileVersionFid( int32 sd_id,
344  char *fileversion );
345 
347  char *fileversion );
348 
349 MTKt_status MtkGridAttrGet( const char *filename,
350  const char *gridname,
351  const char *attrname,
352  MTKt_DataBuffer *attrbuf );
353 
355  const char *gridname,
356  const char *attrname,
357  MTKt_DataBuffer *attrbuf );
358 
360  const char *gridname,
361  const char *attrname,
362  MTKt_DataBuffer *attrbuf );
363 
364 MTKt_status MtkGridAttrGetFid( int32 fid,
365  const char *gridname,
366  const char *attrname,
367  MTKt_DataBuffer *attrbuf );
368 
370  const char *gridname,
371  const char *attrname,
372  MTKt_DataBuffer *attrbuf );
373 
375  const char *gridname,
376  const char *fieldname,
377  int *dimcnt,
378  char **dimlist[],
379  int **dimsize );
380 
382  const char *gridname,
383  const char *fieldname,
384  int *dimcnt,
385  char **dimlist[],
386  int **dimsize );
387 
389  const char *gridname,
390  const char *fieldname,
391  int *dimcnt,
392  char **dimlist[],
393  int **dimsize );
394 
396  const char *gridname,
397  const char *fieldname,
398  int *dimcnt,
399  char **dimlist[],
400  int **dimsize );
401 
403  const char *gridname,
404  const char *fieldname,
405  int *dimcnt,
406  char **dimlist[],
407  int **dimsize );
408 
410  char **coremeta );
412  char **coremeta );
414  char **coremeta );
415 
417  char **coremeta );
418 
420  char **coremeta );
421 
423  int *nparam,
424  char ***paramlist );
425 
427  int *nparam,
428  char ***paramlist );
429 
431  int *nparam,
432  char ***paramlist );
433 
435  int *nparam,
436  char ***paramlist );
437 
439  int *nparam,
440  char ***paramlist );
441 
443  const char *param,
444  MtkCoreMetaData *metadata );
446  const char *param,
447  MtkCoreMetaData *metadata );
449  const char *param,
450  MtkCoreMetaData *metadata );
451 
453  const char *param,
454  MtkCoreMetaData *metadata );
455 
457  const char *param,
458  MtkCoreMetaData *metadata );
459 
461 
462 MTKt_status MtkFileAttrGet( const char *filename,
463  const char *attrname,
464  MTKt_DataBuffer *attrbuf );
465 
467  const char *attrname,
468  MTKt_DataBuffer *attrbuf );
469 
471  const char *attrname,
472  MTKt_DataBuffer *attrbuf );
473 
474 MTKt_status MtkFileAttrGetFid( int32 sds_id,
475  const char *attrname,
476  MTKt_DataBuffer *attrbuf );
477 
479  const char *attrname,
480  MTKt_DataBuffer *attrbuf );
481 
483  const char *gridname,
484  const char *fieldname );
485 
487  const char *gridname,
488  const char *fieldname );
489 
491  const char *gridname,
492  const char *fieldname );
493 
495  const char *gridname,
496  const char *fieldname );
497 
499  const char *gridname,
500  const char *fieldname );
501 
503  int *num_attrs,
504  char **attrlist[] );
505 
507  int *num_attrs,
508  char **attrlist[] );
509 
511  int *num_attrs,
512  char **attrlist[] );
513 
514 MTKt_status MtkFileAttrListFid( int32 sd_id,
515  int *num_attrs,
516  char **attrlist[] );
517 
519  int *num_attrs,
520  char **attrlist[] );
521 
523  const char *gridname,
524  int *num_attrs,
525  char **attrlist[] );
526 
528  const char *gridname,
529  int *num_attrs,
530  char **attrlist[] );
531 
533  const char *gridname,
534  int *num_attrs,
535  char **attrlist[] );
536 
538  const char *gridname,
539  int *num_attrs,
540  char **attrlist[] );
541 
543  const char *gridname,
544  int *num_attrs,
545  char **attrlist[] );
546 
548  const char *fieldname,
549  int *num_attrs,
550  char **attrlist[] );
551 
553  const char *fieldname,
554  int *num_attrs,
555  char **attrlist[] );
556 
558  const char *fieldname,
559  int *num_attrs,
560  char **attrlist[] );
561 
563  const char *fieldname,
564  int *num_attrs,
565  char **attrlist[] );
566 
568  const char *fieldname,
569  int *num_attrs,
570  char **attrlist[] );
571 
573  const char *fieldname,
574  const char *attrname,
575  MTKt_DataBuffer *attrbuf );
576 
578  const char *fieldname,
579  const char *attrname,
580  MTKt_DataBuffer *attrbuf );
581 
583  const char *fieldname,
584  const char *attrname,
585  MTKt_DataBuffer *attrbuf );
586 
587 MTKt_status MtkFieldAttrGetFid( int32 sds_id,
588  const char *fieldname,
589  const char *attrname,
590  MTKt_DataBuffer *attrbuf );
591 
593  const char *fieldname,
594  const char *attrname,
595  MTKt_DataBuffer *attrbuf );
596 
598  int *nblockmeta,
599  char ***blockmetalist );
600 
601 MTKt_status MtkFileBlockMetaListFid( int32 file_id,
602  int *nblockmeta,
603  char ***blockmetalist );
604 
606  const char *blockmetaname,
607  int *nfields,
608  char **fieldlist[] );
609 
611  const char *blockmetaname,
612  int *nfields,
613  char **fieldlist[] );
614 
616  const char *blockmetaname,
617  const char *fieldname,
618  MTKt_DataBuffer *blockmetabuf );
619 
621  const char *blockmetaname,
622  const char *fieldname,
623  MTKt_DataBuffer *blockmetabuf );
624 
626  MTKt_TimeMetaData *time_metadata );
627 
628 MTKt_status MtkTimeMetaReadFid( int32 hdf_id,
629  int32 sd_id,
630  MTKt_TimeMetaData *time_metadata );
631 
632 #endif /* MISRFILEQUERY_H */
MTKt_status MtkFileToGridList(const char *filename, int *ngrids, char **gridlist[])
Read list of grids from a file.
MTKt_status MtkFileToOrbit(const char *filename, int *orbit)
Read orbit number from file.
struct MtkCoreMetaData MtkCoreMetaData
Core Metadata.
int version
Definition: jpeglib.h:901
MTKt_status MtkFileVersionNC(const char *filename, char *fileversion)
MTKt_status MtkFillValueGetHDF(const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
MTKt_status MtkFileCoreMetaDataQueryFid(int32 sd_id, int *nparam, char ***paramlist)
Version of MtkFileCoreMetaDataQuery that takes an HDF SD file identifier rather than a filename...
MTKt_status MtkFileToOrbitFid(int32 sd_id, int *orbit)
Version of MtkFileToOrbit that takes an HDF SD file identifier rather than a filename.
MTKt_status MtkFileGridToResolutionNcid(int ncid, const char *gridname, int *resolution)
MTKt_status MtkGridAttrListFid(int32 fid, const char *gridname, int *num_attrs, char **attrlist[])
Version of MtkGridAttrList that takes an HDF-EOS file identifier rather than a filename.
char * filename
Definition: cdjpeg.h:133
union MtkCoreMetaData::@0 data
MTKt_status MtkFileCoreMetaDataGetFid(int32 sd_id, const char *param, MtkCoreMetaData *metadata)
Version of MtkFileCoreMetaDataGet that takes an HDF SD identifier rather than a filename.
MTKt_status MtkGridAttrGetNC(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileTypeNC(const char *filename, MTKt_FileType *filetype)
Definition: MtkFileType.c:49
MTKt_DataType
Definition: MisrUtil.h:36
MTKt_status MtkFileLGIDNcid(int ncid, char **lgid)
Definition: MtkFileLGID.c:195
int32 GDinqgridfid(int32 fid, char *objectlist, int32 *strbufsize)
Replacement for HDF-EOS GDinqgrid that takes an HDF-EOS file id rather than a filename.
MTKt_status MtkFileGridFieldToDimListFid(int32 Fid, const char *gridname, const char *fieldname, int *dimcnt, char **dimlist[], int **dimsize)
Version of MtkFileGridFieldToDimList that takes an HDF-EOS file ID rather than a filename.
MTKt_status MtkGridAttrList(const char *filename, const char *gridname, int *num_attrs, char **attrlist[])
Get a list of grid attributes.
MTKt_status MtkFileToPathNC(const char *filename, int *path)
Definition: MtkFileToPath.c:46
MTKt_status MtkCoreMetaDataFree(MtkCoreMetaData *metadata)
Free core metadata.
MTKt_status MtkFileCoreMetaDataQueryHDF(const char *filename, int *nparam, char ***paramlist)
MTKt_status MtkFieldAttrGetFid(int32 sds_id, const char *fieldname, const char *attrname, MTKt_DataBuffer *attrbuf)
Version of MtkFieldAttrGet that takes an HDF SD file identifier rather than a filename.
MTKt_status MtkFileVersionNcid(int ncid, char *fileversion)
int32_t MTKt_int32
Definition: MisrUtil.h:72
MTKt_status MtkFileGridFieldToDataTypeNC(const char *filename, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
MTKt_status MtkFileGridToResolutionNC(const char *filename, const char *gridname, int *resolution)
MTKt_status MtkFileCoreMetaDataRawHDF(const char *filename, char **coremeta)
MTKt_status MtkFileTypeNcid(int ncid, MTKt_FileType *filetype)
Definition: MtkFileType.c:266
MTKt_status MtkFileAttrGetNcid(int ncid, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileToOrbitNC(const char *filename, int *orbit)
HDFFCLIBAPI intf * dimsize
MTKt_status MtkFieldAttrGetHDF(const char *filename, const char *fieldname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_FileType
Definition: MisrFileQuery.h:24
MTKt_status MtkFileGridFieldToDataTypeNcid(int ncid, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
MTKt_status MtkFileGridFieldCheckHDF(const char *filename, const char *gridname, const char *fieldname)
MTKt_status MtkFileToBlockRangeNcid(int ncid, int *start_block, int *end_block)
MTKt_status MtkFileAttrGetHDF(const char *filename, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFieldAttrList(const char *filename, const char *fieldname, int *num_attrs, char **attrlist[])
Get a list of field attributes.
2-dimensional Data Buffer
Definition: MisrUtil.h:98
MTKt_status MtkFileAttrListHDF(const char *filename, int *num_attrs, char **attrlist[])
HDFFCLIBAPI intf intf _fcd attrname
MTKt_status MtkFileGridToFieldListNC(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFileToBlockRangeNC(const char *filename, int *start_block, int *end_block)
MTKt_status MtkFileGridFieldToDataTypeFid(int32 fid, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
Version of MtkFileGridFieldToDataType that takes an HDF-EOS file id rather than a filename...
MTKt_status MtkFileLGIDNC(const char *filename, char **lgid)
Definition: MtkFileLGID.c:49
MTKt_status MtkGridAttrListNcid(int ncid, const char *gridname, int *num_attrs, char **attrlist[])
Core Metadata.
Definition: MisrFileQuery.h:57
MTKt_status MtkFileBlockMetaFieldRead(const char *filename, const char *blockmetaname, const char *fieldname, MTKt_DataBuffer *blockmetabuf)
Read a block metadata field.
MTKt_status MtkFileGridToNativeFieldListHDF(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFillValueGetFid(int32 fid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
Version of MtkFillValueGet that takes an HDF-EOS file ID rather than a filename.
MTKt_status MtkFindFileList(const char *searchdir, const char *product, const char *camera, const char *path, const char *orbit, const char *version, int *filecnt, char **filenames[])
Find files in a directory tree, using regular expressions.
MTKt_status MtkFileToBlockRangeFid(int32 sid, int *start_block, int *end_block)
Version of MtkFileToBlockRange that takes an HDF SD file identifier rather than a filename...
MTKt_status MtkFileAttrGet(const char *filename, const char *attrname, MTKt_DataBuffer *attrbuf)
Get a file attribute.
MTKt_status MtkFileVersion(const char *filename, char *fileversion)
Determine MISR product file version.
enum MtkCoreMetaData::@1 datatype
MTKt_status MtkFileBlockMetaListFid(int32 file_id, int *nblockmeta, char ***blockmetalist)
Version of MtkFileBlockMetaList that takes an HDF file identifier rather than a filename.
MTKt_status MtkGridAttrGetHDF(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileGridFieldToDataType(const char *filename, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
Find data type for a particular field.
MTKt_status MtkFieldAttrListHDF(const char *filename, const char *fieldname, int *num_attrs, char **attrlist[])
MTKt_status MtkFileCoreMetaDataQueryNcid(int ncid, int *nparam, char ***paramlist)
MTKt_status MtkFileToGridListHDF(const char *filename, int *ngrids, char **gridlist[])
MTKt_status MtkFieldAttrListNC(const char *filename, const char *fieldname, int *num_attrs, char **attrlist[])
MTKt_status MtkFileGridToFieldListNcid(int ncid, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFileGridToFieldListHDF(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFileToOrbitNcid(int ncid, int *orbit)
MTKt_status MtkFillValueGetNC(const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
MTKt_status MtkFileGridFieldCheckFid(int32 Fid, const char *gridname, const char *fieldname)
Version of MtkFileGridFieldCheck that takes an HDF-EOS file identifier rather than a filename...
MTKt_status MtkFileGridFieldToDimList(const char *filename, const char *gridname, const char *fieldname, int *dimcnt, char **dimlist[], int **dimsize)
Read dimension list of a particular field.
#define NBLOCK
Definition: MisrProjParam.h:51
MTKt_status MtkGridAttrGetFid(int32 fid, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
Version of MtkFileGridAttrGet that takes an HDF-EOS file ID rather than a filename.
MTKt_status MtkFileToPathFid(int32 sid, int *path)
Version of MtkFileToPath that takes an HDF SD identifier rather than a filename.
MTKt_status MtkFileGridToNativeFieldListFid(int32 Fid, const char *gridname, int *nfields, char **fieldlist[])
Version of MtkFileGridToNativeFieldList that takes an HDF-EOS file identifier rather than a filename...
MTKt_status MtkFileGridFieldCheckNC(const char *filename, const char *gridname, const char *fieldname)
MTKt_status MtkFileType(const char *filename, MTKt_FileType *filetype)
Determine MISR product file type.
Definition: MtkFileType.c:37
MTKt_status MtkFileAttrGetNC(const char *filename, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileToBlockRange(const char *filename, int *start_block, int *end_block)
Read start and end block numbers from file.
MTKt_status MtkFileGridFieldCheck(const char *filename, const char *gridname, const char *fieldname)
Check if file/grid/field/dimension are valid.
MTKt_status MtkMakeFilename(const char *basedir, const char *product, const char *camera, int path, int orbit, const char *version, char **filename)
Given a base directory, product, camera, path, orbit, version.
MTKt_status MtkFileBlockMetaFieldListFid(int32 file_id, const char *blockmetaname, int *nfields, char **fieldlist[])
Version of MtkFileBlockMetaFieldList that takes an HDF file identifier rather than a filename...
MTKt_status MtkFileLGID(const char *filename, char **lgid)
Determine local granual ID of MISR product file.
Definition: MtkFileLGID.c:37
MTKt_status MtkFileBlockMetaFieldReadFid(int32 file_id, const char *blockmetaname, const char *fieldname, MTKt_DataBuffer *blockmetabuf)
Version of MtkFileBlockMetaFileRead that takes an HDF file identifier rather than a filename...
MTKt_status MtkFileGridToFieldList(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
Read list of fields from file.
MTKt_status MtkFileCoreMetaDataGetNC(const char *filename, const char *param, MtkCoreMetaData *metadata)
MTKt_status MtkFileCoreMetaDataRawFid(int32 sds_id, char **coremeta)
Version of MtkFileCoreMetaDataRaw that takes an HDF SD file identifier rather than a filename...
MTKt_status MtkFileGridFieldToDataTypeHDF(const char *filename, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
#define NGRIDCELL
Definition: MisrFileQuery.h:74
MTKt_status MtkFileCoreMetaDataGet(const char *filename, const char *param, MtkCoreMetaData *metadata)
Get core metadata parameter.
MTKt_status MtkFillValueGetNcid(int ncid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
MTKt_status MtkFileGridToNativeFieldListNcid(int ncid, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFileGridFieldCheckNcid(int ncid, const char *gridname, const char *fieldname)
MTKt_int32 end_block
Definition: MisrFileQuery.h:80
MTKt_status MtkFileAttrList(const char *filename, int *num_attrs, char **attrlist[])
Get a list of file attributes.
MTKt_status MtkTimeMetaRead(const char *filename, MTKt_TimeMetaData *time_metadata)
Read time metadata from L1B2 Ellipsoid product file.
MTKt_status MtkFileGridToNativeFieldListNC(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
MTKt_status MtkFileTypeHDF(const char *filename, MTKt_FileType *filetype)
Definition: MtkFileType.c:83
MTKt_status MtkGridAttrGetNcid(int ncid, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileGridFieldToDimListHDF(const char *filename, const char *gridname, const char *fieldname, int *dimcnt, char **dimlist[], int **dimsize)
MTKt_status MtkFileToPathNcid(int ncid, int *path)
MTKt_status MtkFileCoreMetaDataRawNC(const char *filename, char **coremeta)
MTKt_status MtkFileLGIDFid(int32 sds_id, char **lgid)
Version of MtkFileLGID that takes an HDF SDS ID rather than a filename.
Definition: MtkFileLGID.c:129
Time Metadata.
Definition: MisrFileQuery.h:77
MTKt_status MtkFileToOrbitHDF(const char *filename, int *orbit)
MTKt_status MtkFileGridToFieldListFid(int32 Fid, const char *gridname, int *nfields, char **fieldlist[])
Version of MtkFileGridToFieldList that takes an HDF-EOS file identifier rather than a filename...
MTKt_status MtkFileCoreMetaDataRawNcid(int ncid, char **coremeta)
struct MTKt_TimeMetaData MTKt_TimeMetaData
Time Metadata.
MTKt_status MtkFileVersionFid(int32 sd_id, char *fileversion)
Version of MtkFileVersion that takes an HDF SD file identifier rather than a filename.
MTKt_status MtkFileAttrListNC(const char *filename, int *num_attrs, char **attrlist[])
MTKt_status MtkFileToGridListNcid(int ncid, int *ngrids, char **gridlist[])
char MTKt_char8
Definition: MisrUtil.h:66
MTKt_status MtkFileAttrListNcid(int ncid, int *num_attrs, char **attrlist[])
MTKt_status MtkGridAttrGet(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
Get a grid attribute.
MTKt_status MtkGridAttrListNC(const char *filename, const char *gridname, int *num_attrs, char **attrlist[])
MTKt_status MtkFileVersionHDF(const char *filename, char *fileversion)
MTKt_status MtkFileGridFieldToDimListNC(const char *filename, const char *gridname, const char *fieldname, int *dimcnt, char **dimlist[], int **dimsize)
MTKt_status
Definition: MisrError.h:11
MTKt_status MtkFileToBlockRangeHDF(const char *filename, int *start_block, int *end_block)
MTKt_status MtkFileLGIDHDF(const char *filename, char **lgid)
Definition: MtkFileLGID.c:83
MTKt_status MtkFieldAttrGetNC(const char *filename, const char *fieldname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFileAttrGetFid(int32 sds_id, const char *attrname, MTKt_DataBuffer *attrbuf)
Version of MtkFileAttrGet that takes an HDF SD file identifier rather than a filename.
MTKt_status MtkTimeMetaReadFid(int32 hdf_id, int32 sd_id, MTKt_TimeMetaData *time_metadata)
Version of MtkTimeMetaRead that takes an HDF SD file identifier and HDF file identifier rather than a...
MTKt_status MtkFillValueGet(const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
Get fill value.
MTKt_status MtkFileCoreMetaDataRaw(const char *filename, char **coremeta)
Read core metadata from a MISR product file into a buffer.
double MTKt_double
Definition: MisrUtil.h:77
MTKt_status MtkFileCoreMetaDataGetNcid(int ncid, const char *param, MtkCoreMetaData *metadata)
MTKt_status MtkFileAttrListFid(int32 sd_id, int *num_attrs, char **attrlist[])
Version of MtkFileAttrList that takes an HDF SD file identifier rather than a filename.
MTKt_status MtkFileCoreMetaDataQueryNC(const char *filename, int *nparam, char ***paramlist)
MTKt_status MtkFieldAttrListNcid(int ncid, const char *fieldname, int *num_attrs, char **attrlist[])
MTKt_status MtkFileBlockMetaFieldList(const char *filename, const char *blockmetaname, int *nfields, char **fieldlist[])
Read list of fields in a block metadata structure.
MTKt_status MtkFileBlockMetaList(const char *filename, int *nblockmeta, char ***blockmetalist)
List block metadata structures.
MTKt_status MtkFileToGridListNC(const char *filename, int *ngrids, char **gridlist[])
MTKt_status MtkFileCoreMetaDataGetHDF(const char *filename, const char *param, MtkCoreMetaData *metadata)
MTKt_int32 start_block
Definition: MisrFileQuery.h:79
MTKt_status MtkFileTypeFid(int32 Fid, MTKt_FileType *filetype)
Version of MtkFileType that takes an HDF-EOS file identifier rather than a filename.
Definition: MtkFileType.c:119
MTKt_status MtkFileGridToResolutionHDF(const char *filename, const char *gridname, int *resolution)
MTKt_status MtkGridAttrListHDF(const char *filename, const char *gridname, int *num_attrs, char **attrlist[])
MTKt_status MtkFieldAttrGet(const char *filename, const char *fieldname, const char *attrname, MTKt_DataBuffer *attrbuf)
Get a file attribute.
MTKt_status MtkFileToGridListFid(int32 fid, int *ngrids, char **gridlist[])
Version of MtkFileToGridList that takes an HDF-EOS file identifier rather than a filename.
MTKt_status MtkFileCoreMetaDataQuery(const char *filename, int *nparam, char ***paramlist)
Query file for core metadata.
MTKt_status MtkFileGridToNativeFieldList(const char *filename, const char *gridname, int *nfields, char **fieldlist[])
Read list of native fields from file (excludes derived fields)
MTKt_status MtkFileGridToResolutionFid(int32 fid, const char *gridname, int *resolution)
Version of MtkFileGridToResolution that takes an HDF-EOS file id rather than a filename.
MTKt_status MtkFileToPath(const char *filename, int *path)
Read path number from file.
Definition: MtkFileToPath.c:35
MTKt_status MtkFileToPathHDF(const char *filename, int *path)
Definition: MtkFileToPath.c:79
#define MTKd_DATETIME_LEN
Definition: MisrUtil.h:149
MTKt_status MtkFileGridFieldToDimListNcid(int ncid, const char *gridname, const char *fieldname, int *dimcnt, char **dimlist[], int **dimsize)
MTKt_status MtkFieldAttrGetNcid(int ncid, const char *fieldname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkFieldAttrListFid(int32 fid, const char *fieldname, int *num_attrs, char **attrlist[])
Version of MtkFieldAttrList that takes an HDF-EOS file identifier rather than a filename.
MTKt_status MtkFileGridToResolution(const char *filename, const char *gridname, int *resolution)
Get resolution of a particular grid.

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:51