diff options
author | Thomas White <taw@physics.org> | 2020-12-16 16:01:58 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-12-16 16:01:58 +0100 |
commit | 9da7f1b3f6a4245eb0c35fb32d32c60d60538eb2 (patch) | |
tree | 0af0ee5b82a5966aadcfd5f9446c7889a3eeba5c /libcrystfel/src/datatemplate_priv.h | |
parent | b4f243ec2c704e510655de8ea34c9fc16f454390 (diff) |
Add flag_{lessthan,morethan,equal} in geometry file
This makes handling Pilatus/Eiger files, as well as many others, much
easier.
Diffstat (limited to 'libcrystfel/src/datatemplate_priv.h')
-rw-r--r-- | libcrystfel/src/datatemplate_priv.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate_priv.h b/libcrystfel/src/datatemplate_priv.h index 9d4f8f26..593ebaa8 100644 --- a/libcrystfel/src/datatemplate_priv.h +++ b/libcrystfel/src/datatemplate_priv.h @@ -55,6 +55,15 @@ enum wavelength_unit WAVELENGTH_PHOTON_EV }; +#define MAX_FLAG_VALUES (16) + +enum flag_value_type +{ + FLAG_NOTHING, + FLAG_EQUAL, + FLAG_MORETHAN, + FLAG_LESSTHAN +}; /* Special values for dimension IDs */ #define DIM_FS (-1) @@ -107,6 +116,10 @@ struct panel_template /** Treat pixel as unreliable if higher than this */ double max_adu; + /** Pixels with exactly this value will be marked as bad */ + enum flag_value_type flag_types[MAX_FLAG_VALUES]; + signed int flag_values[MAX_FLAG_VALUES]; + /** Location of data in file (possibly with placeholders) */ char *data; |