Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
8 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_NUMERIC_OBSERVATION_H_
9 #define SERVICES_FIELD_TRIALS_INCLUDE_NUMERIC_OBSERVATION_H_
42 const char *growth_stage_s,
const char *method_s,
Instrument *instrument_p,
const ObservationNature nature,
const uint32 *index_p,
const char *notes_s);
Definition: instrument.h:33
bool AddNumericObservationRawValueToJSON(const NumericObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
bool SetNumericObservationRawValueFromString(NumericObservation *observation_p, const char *value_s)
Observation no_base_observation
Definition: numeric_observation.h:16
bool AddNumericObservationCorrectedValueToJSON(const NumericObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
bool AddNumericObservationValuesToJSON(const Observation *obs_p, const char *raw_key_s, const char *corrected_key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
NumericObservation * AllocateNumericObservation(bson_oid_t *id_p, const struct tm *start_date_p, const struct tm *end_date_p, MeasuredVariable *phenotype_p, MEM_FLAG phenotype_mem, const double *raw_value_p, const double *corrected_value_p, const char *growth_stage_s, const char *method_s, Instrument *instrument_p, const ObservationNature nature, const uint32 *index_p, const char *notes_s)
bool SetNumericObservationRawValue(NumericObservation *observation_p, const double64 *value_p)
Set the raw value for a given Observation.
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
Definition: measured_variable.h:39
bool GetNumericObservationRawValueAsString(NumericObservation *observation_p, char **value_ss, bool *free_flag_p)
json_t * GetNumericObservationAsJSON(const NumericObservation *observation_p, const ViewFormat format)
bool SetNumericObservationCorrectedValueFromString(NumericObservation *observation_p, const char *value_s)
bool SetNumericObservationRawValueFromJSON(NumericObservation *observation_p, const json_t *value_p)
bool SetNumericObservationCorrectedValue(NumericObservation *observation_p, const double64 *value_p)
Set the corrected value for a given Observation.
double64 * no_corrected_value_p
The corrected phenotypic value for this Observation.
Definition: numeric_observation.h:27
bool GetNumericObservationCorrectedValueAsString(NumericObservation *observation_p, char **value_ss, bool *free_flag_p)
double64 * no_raw_value_p
The raw phenotypic value for this Observation.
Definition: numeric_observation.h:22
ObservationNature
Definition: observation.h:41
A datatype for storing a phneotypic observation within an experiment.
Definition: observation.h:63
void ClearNumericObservation(Observation *observation_p)
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
bool SetNumericObservationCorrectedValueFromJSON(NumericObservation *observation_p, const json_t *value_p)
Definition: numeric_observation.h:14
NumericObservation * GetNumericObservationFromJSON(const json_t *phenotype_json_p, FieldTrialServiceData *data_p)