|
#define | STREAM_GEOM_START_MARKER "----- Begin geometry file -----" |
|
#define | STREAM_GEOM_END_MARKER "----- End geometry file -----" |
|
#define | STREAM_CELL_START_MARKER "----- Begin unit cell -----" |
|
#define | STREAM_CELL_END_MARKER "----- End unit cell -----" |
|
#define | STREAM_CHUNK_START_MARKER "----- Begin chunk -----" |
|
#define | STREAM_CHUNK_END_MARKER "----- End chunk -----" |
|
#define | STREAM_PEAK_LIST_START_MARKER "Peaks from peak search" |
|
#define | STREAM_PEAK_LIST_END_MARKER "End of peak list" |
|
#define | STREAM_CRYSTAL_START_MARKER "--- Begin crystal" |
|
#define | STREAM_CRYSTAL_END_MARKER "--- End crystal" |
|
#define | STREAM_REFLECTION_START_MARKER "Reflections measured after indexing" |
|
#define | STREAM_REFLECTION_END_MARKER "End of reflections" |
|
|
Stream * | stream_open_for_read (const char *filename) |
|
Stream * | stream_open_for_write (const char *filename, const DataTemplate *dtempl) |
|
Stream * | stream_open_fd_for_write (int fd, const DataTemplate *dtempl) |
|
void | stream_close (Stream *st) |
|
void | stream_write_data_template (Stream *st, const DataTemplate *dtempl) |
|
void | stream_write_geometry_file (Stream *st, const char *geom_filename) |
|
void | stream_write_target_cell (Stream *st, UnitCell *cell) |
|
void | stream_write_commandline_args (Stream *st, int argc, char *argv[]) |
|
void | stream_write_indexing_methods (Stream *st, const char *indm_str) |
|
int | stream_has_old_indexers (Stream *st) |
|
char * | stream_audit_info (Stream *st) |
|
char * | stream_geometry_file (Stream *st) |
|
int | stream_get_fd (Stream *st) |
|
int | stream_rewind (Stream *st) |
|
StreamIndex * | stream_make_index (const char *filename) |
|
int | stream_select_chunk (Stream *st, StreamIndex *index, const char *filename, const char *ev) |
|
void | stream_index_free (StreamIndex *index) |
|
struct image * | stream_read_chunk (Stream *st, StreamFlags srf) |
|
int | stream_write_chunk (Stream *st, const struct image *image, StreamFlags srf) |
|
Stream functions (for indexing results)
- Parameters
-
filename | Filename of new stream |
dtempl | A DataTemplate |
Creates a new stream with name filename
. If filename
already exists, it will be overwritten.
The CrystFEL version number will be written, but you should call stream_write_geometry_file, stream_write_target_cell, stream_write_commandline_args and stream_write_Indexing_methods to write extended audit information.
- Returns
- A Stream, or NULL on failure.