Job Jar/Streamline statistics program
This Job Jar request is for a non-interactive command line program that reads in a collection of streamlines and the name of a streamline measurement, and optionally one or more relevant raster images, and computes statistics over the collection for the specified measurement.
Example measurements of a given streamline might include:
- Length
- Distance between the ends of the streamline
- Average curvature
- Average value of the specified raster image along the streamline
- Total length, weighted by the value of the raster image at each point
Output Formats
The final program should be able to create output in the following formats, chosen by a command line option:
- Standard output: print out the mean, standard deviation, median, quartiles, min, and max of the requested value.
- CSV: export values for each streamline to a CSV (comma-separated value) plain text file. Such files can be imported by just about any software, such as Excel, SAS, or Matlab, for further analysis.
- Streamline: assign values, as appropriate, to the points of each streamline or to the streamlines themselves, and export these assignments as a streamline collection file.
Example Call
streamline_stats my_streamlines.trk -length -silent -csv lengthstats.csv -streamlines lengths.trk
This call would read in the streamline file my_streamlines.trk, compute the lengths of the streamlines, and export them as a CSV file lengthstats.csv as well as a streamline collection file lengths.trk, but generate no output on the command line (as specified by the -silent option).
Dependencies
This job depends on the completion of Job Jar/Streamline library.