ocssw
V2022
|
argpar-help.c
Go to the documentation of this file.
20 static int print_wrapped(argpar* p, const char *doc, size_t *current_column, int indent, int filter_key) {
145 // all the group/option stuff should probably be pre-processed, like in argp (see clusters), but it works fine
146 static int print_all_options(const argpar_child *c, bool is_parent); // should prototype all group ones so this looks less weird
148 static int _print_group(const argpar_child *c, bool is_parent, option_type type, int group, child_type merged, item_counts *counts) {
149 // printf("%s %p, group %d, type %d, not merged %d\n", c->header ? "child" : "parent", c->argpar, group, type, merged);
152 if ((merged == NOT_MERGED && c->header && group == c->group) || (merged == MERGED && !c->header)) {
187 if (cur_group == group && !(o[i].flags & OPTION_HIDDEN) && !((o[i].flags & OPTION_PARENT) && !is_parent) && !((o[i].flags & OPTION_CHILD) && is_parent)) {
286 static int print_group(const argpar_child *c, bool is_parent, int group, child_type merged, item_counts *counts) {
Definition: argpar-help.c:338
Master structure containing options, document strings, child parsers, and text filters....
Definition: argpar.h:398
#define ARGPAR_KEY_HELP_PRE_DOC
Passed as the key to each help filter when printing the doc string before options are listed....
Definition: argpar.h:315
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
Definition: HOWTO_Add_a_product.txt:76
#define OPTION_DOC_NO_BREAK
Do not add an extra newline after this documentation string. Useful for lists and manual formatting.
Definition: argpar.h:171
#define OPTION_INT
Cast this option as a long. The value and any error will be reflected in the argpar_state struct duri...
Definition: argpar.h:160
#define ARGPAR_KEY_HELP_POST_DOC
Passed as the key to each help filter when printing the doc string after all options are listed,...
Definition: argpar.h:320
int argpar_help(argpar *argpar, FILE *stream, unsigned flags, char *name)
Print the default usage summary with all available sections.
Definition: argpar-help.c:512
int state(double tjdTDB, JPLIntUtilType *util, double posvel[13][6], double *pnut)
#define OPTION_ENUM
This option serves to document a valid value for an option. This is not enforced by argpar.
Definition: argpar.h:179
#define ARGPAR_KEY_HELP_OPTION_DOC
Passed as the key to each help filter when printing a group's trailing documentation.
Definition: argpar.h:326
int flags
Modify the behavior of the argument by OR'ing one or more OPTION_ macros.
Definition: argpar.h:100
char * strdup(const char *)
#define OPTION_HIDDEN
Do not display this option anywhere in the usage summary.
Definition: argpar.h:149
#define ARGPAR_KEY_HELP_HEADER
Passed as the key to each help filter when printing a group header.
Definition: argpar.h:323
int argpar_usage(argpar_state *state)
Print usage summary, called within a argpar_parser.
Definition: argpar-help.c:506
#define ARGPAR_KEY_HELP_EXTRA
Passed as the key to each help filter after all other documentation is printed, to return extra infor...
Definition: argpar.h:330
#define OPTION_ALIAS
Do not add an extra newline after this documentation string. Useful for lists and manual formatting.
Definition: argpar.h:175
#define OPTION_DOC
This option isn't actually an option, merely text for the usage summary.
Definition: argpar.h:152
State variable to be filled before each call to the parser callback.
Definition: argpar.h:196
int argpar_usage_default(argpar *argpar)
Print the default usage summary with all available sections.
Definition: argpar-help.c:509
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)
#define ARGPAR_KEY_HELP_ARGS_DOC
Passed as the key to each help filter when printing the args_doc.
Definition: argpar.h:310
Library for reading command-line arguments in the form of key=value.
#define OPTION_CHILD
This option only applies if this parser is not the top-most parser.
Definition: argpar.h:167
Definition: argpar-help.c:139
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed as required for compatibility with version of the SDP toolkit Corrected test output file names to end in per delivery and then split off a new MYD_PR03 pcf file for Aqua Added AssociatedPlatformInstrumentSensor to the inventory metadata in MOD01 mcf and MOD03 mcf Created new versions named MYD01 mcf and MYD03 where AssociatedPlatformShortName is rather than Terra The program itself has been changed to read the Satellite Instrument validate it against the input L1A and LUT and to use it determine the correct files to retrieve the ephemeris and attitude data from Changed to produce a LocalGranuleID starting with MYD03 if run on Aqua data Added the Scan Type file attribute to the Geolocation copied from the L1A and attitude_angels to radians rather than degrees The accumulation of Cumulated gflags was moved from GEO_validate_earth_location c to GEO_locate_one_scan c
Definition: HISTORY.txt:464
#define OPTION_PARENT
This option only applies if this parser is the top-most parser. Useful for return value documentation...
Definition: argpar.h:164
const char * arg
What to display as the right side of the argument in the usage statement.
Definition: argpar.h:98
#define OPTION_DBL
Cast this option as a double. The value and any error will be reflected in the argpar_state struct du...
Definition: argpar.h:156
int group
The group associated with this option. If 0 and a documentation option, it is auto-incremented.
Definition: argpar.h:111