ocssw
V2022
|
Typedefs | |
using | param_type = PARAM_TYPE_NONE |
Functions | |
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second and prod_ix set to PARAM_TYPE_INT name_prefix is compared with the beginning of the product name If name_suffix is not empty the it must match the end of the product name The characters right after the prefix are read as an integer and prod_ix is set to that number | strncpy (l2prod->name_prefix, "myprod", UNITLEN) |
How many dimensions is the output array Default is Not sure if anything above will work correctly | strcpy (l2prod->title, "no title yet") |
Put a d in the string to print the prod_ix | strcpy (l2prod->units, "undefined units") |
Variables | |
e | g |
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending | name_prefix |
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending | wavelength |
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through | prod_ix |
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second | band |
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used | are |
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used | DFNT_INT16 |
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used | DFNT_INT32 |
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used | DFNT_FLOAT32 |
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_FLOAT64 l2prod | slope = 1.0 |
l2prod | offset = 0.0 |
These are used to scale the SD before writing it to the HDF4 file The default is and which means the product is not scaled at all Since the product is usually stored as a float inside of | l2gen |
These are used to scale the SD before writing it to the HDF4 file The default is and which means the product is not scaled at all Since the product is usually stored as a float inside of this is a way to write the float out as a integer l2prod | min = 0 |
l2prod | max = 0 |
Extra metadata that will be written to the HDF4 file | Default |
Extra metadata that will be written to the HDF4 file l2prod | rank = 2 |
Set this as the descriptive title for the product if param_type is not equal to PARAM_TYPE_NONE Before your function is called title is set by | calling |
Set this as the descriptive title for the product if param_type is not equal to PARAM_TYPE_NONE Before your function is called title is set by product | title_format |
Every product should define the units l2prod | badData = BAD_FLT |
What value is used by your function when the data value is bad Default is BAD_FLT l2prod | product_id [0] = '\0' |
l2prod | algorithm_id [0] = '\0' |
These two strings are used for the product XML output If product_id is not set then prefix is used If the last char of the name_prefix is _ then it is removed If algorithm_id is not set then name_suffix is used If the first char is _ then it is removed l2prod | standard_name [0] = '\0' |
This should be set to the NetCDF standard name if exists for this product Create a function that computes your product edit get_myprod c add prototype to l12_proto h add get_myprod c to add_executable for l2gen and l3gen in CMakeLists txt Add an entry to the output routine to call your function edit prodgen c edit function prodgen() case CAT_myprod | pbuf = (VOIDP) fbuf |
break | |
Typedef Documentation
◆ param_type
Set this as the descriptive title for the product ONLY for param_type |
Definition at line 16 of file HOWTO_Add_a_product.txt.
Function Documentation
◆ strcpy() [1/2]
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy | ( | l2prod-> | title, |
"no title yet" | |||
) |
◆ strcpy() [2/2]
◆ strncpy()
First part of the product name Case independent compares are used to match products strncpy | ( | l2prod-> | name_prefix, |
"myprod" | , | ||
UNITLEN | |||
) |
Variable Documentation
◆ algorithm_id
l2prod algorithm_id[0] = '\0' |
Definition at line 103 of file HOWTO_Add_a_product.txt.
◆ are
Definition at line 67 of file HOWTO_Add_a_product.txt.
◆ badData
Definition at line 98 of file HOWTO_Add_a_product.txt.
◆ band
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second band |
Definition at line 42 of file HOWTO_Add_a_product.txt.
◆ break
break |
Definition at line 129 of file HOWTO_Add_a_product.txt.
◆ calling
Set this as the descriptive title for the product if param_type is not equal to PARAM_TYPE_NONE Before your function is called title is set by calling |
Definition at line 92 of file HOWTO_Add_a_product.txt.
◆ Default
Definition at line 78 of file HOWTO_Add_a_product.txt.
◆ DFNT_FLOAT32
Definition at line 67 of file HOWTO_Add_a_product.txt.
◆ DFNT_INT16
Definition at line 67 of file HOWTO_Add_a_product.txt.
◆ DFNT_INT32
Definition at line 67 of file HOWTO_Add_a_product.txt.
◆ g
e g |
Definition at line 5 of file HOWTO_Add_a_product.txt.
◆ l2gen
These are used to scale the SD before writing it to the HDF4 file The default is and which means the product is not scaled at all Since the product is usually stored as a float inside of l2gen |
Definition at line 73 of file HOWTO_Add_a_product.txt.
◆ max
l2prod max = 0 |
Definition at line 77 of file HOWTO_Add_a_product.txt.
◆ min
These are used to scale the SD before writing it to the HDF4 file The default is and which means the product is not scaled at all Since the product is usually stored as a float inside of this is a way to write the float out as a integer l2prod min = 0 |
Definition at line 76 of file HOWTO_Add_a_product.txt.
◆ name_prefix
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where name_prefix |
Definition at line 23 of file HOWTO_Add_a_product.txt.
◆ offset
l2prod offset = 0.0 |
Definition at line 70 of file HOWTO_Add_a_product.txt.
◆ pbuf
This should be set to the NetCDF standard name if exists for this product Create a function that computes your product edit get_myprod c add prototype to l12_proto h add get_myprod c to add_executable for l2gen and l3gen in CMakeLists txt Add an entry to the output routine to call your function edit prodgen c edit function prodgen () case CAT_myprod pbuf = (VOIDP) fbuf |
Definition at line 128 of file HOWTO_Add_a_product.txt.
◆ prod_ix
Set this as the descriptive title for the product if param_type is not equal to PARAM_TYPE_NONE Before your function is called title is set by product prod_ix |
Definition at line 32 of file HOWTO_Add_a_product.txt.
◆ product_id
What value is used by your function when the data value is bad Default is BAD_FLT l2prod product_id[0] = '\0' |
Definition at line 102 of file HOWTO_Add_a_product.txt.
◆ rank
Definition at line 80 of file HOWTO_Add_a_product.txt.
◆ slope
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_FLOAT64 l2prod slope = 1.0 |
Definition at line 69 of file HOWTO_Add_a_product.txt.
◆ standard_name
These two strings are used for the product XML output If product_id is not set then prefix is used If the last char of the name_prefix is _ then it is removed If algorithm_id is not set then name_suffix is used If the first char is _ then it is removed l2prod standard_name[0] = '\0' |
Definition at line 109 of file HOWTO_Add_a_product.txt.
◆ title_format
Set this as the descriptive title for the product if param_type is not equal to PARAM_TYPE_NONE Before your function is called title is set by product title_format |
Definition at line 92 of file HOWTO_Add_a_product.txt.
◆ wavelength
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending wavelength |
Definition at line 24 of file HOWTO_Add_a_product.txt.