caltrack_reader_common.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef CALTRACK_READER_COMMON_H
00014 #define CALTRACK_READER_COMMON_H
00015
00016 #include "float.h"
00017 #include "math.h"
00018
00019 #include "c_hdf_reader.h"
00020
00029 #define NB_INPUT_FILE_MAX 20
00030 #define NB_AEROSOL_LAYER_CALIOP 8
00031 #define NB_PARASOL_DIRECTION 16
00032 #define NB_CLOUDSAT_VERTICAL_BINS 125
00033
00041 double default_scale_function ( const double invalue, const double scale_factor, const double scale_offset );
00042
00050 double parasol_scale_function ( const double invalue, const double scale_factor, const double scale_offset );
00051
00064 double * read_custom_scale_sds_data_by_id( const int32 sd_id, const char* sds_name, double * sds_data,
00065 int32 *start, int32 *stride, int32 *edges,
00066 double (*scale_function) (const double, const double, const double) );
00067
00079 double * custom_scale_data ( const void* indata, const int32 indata_size, const int32 indata_typecode,
00080 const double scale_factor, const double scale_offset,
00081 double (*scale_function) (const double, const double, const double),
00082 double * outdata );
00083
00092 int32 get_v_input_files( const char* filename, const char* product, char v_files[][MAX_NC_NAME], int32 *nb_file );
00093
00102 int32 get_v_input_files_by_id( const int32 sd_id, const char* product, char v_files[][MAX_NC_NAME], int32 *nb_file );
00103
00112 int32 get_input_file_by_id ( const int32 sd_id, const char* product, const int32 i_file, char infile[MAX_NC_NAME] );
00113
00120 int32 is_fill_value ( const void* p_value, const int32 typecode );
00121
00122 #endif