.:editfiles:home: Difference between revisions
Jump to navigation
Jump to search
Davidjdelene (talk | contribs) m (Removed protection from ".:editfiles:home") |
No edit summary |
||
Line 1: | Line 1: | ||
=Automatically Filtered Files (*.flt)= | |||
==Creating== | |||
The filteroutliers.py script can be used to create a filtered file (*.flt). | |||
The command syntax | |||
filteroutliers.py [points=n] [stdev=z] [keys=shortnames] input_file output_file | |||
n - Number of data points in average (default is 1500 data points, or 1 minute of data at 25 Hz). | |||
z - The z-score where all outlying points will be converted to missing value codes (default is 3 standard deviations). | |||
shortnames - Comma-delimited list of short names of parameters (VDESC) to filter (default is all data in file will be filtered). | |||
For example: | |||
filteroutliers.py points=1500 stdev=3 keys=AlphaPreNo,BetaPreNo,PitotPreNo 15_08_08_14_57_48.physical.raw 15_08_08_14_57_48.physical.flt | |||
Notes: | |||
* Program works best to filter serial data. Use caution when filtering analog data as too many data points may be filtered. | |||
=Human-Edited Files (*.edits)= | |||
==Creating== | ==Creating== | ||
The addedit script can be used to create or append to an edit file (*.edits). The command | The addedit script can be used to create or append to an edit file (*.edits). The command syntax is: | ||
addedit [start=n] [end=n] [id='Editor Name'] [outputfile] name='Parameter' why='Reason for edit' 08_06_13_18_19_05.physical.raw | addedit [start=n] [end=n] [id='Editor Name'] [outputfile] name='Parameter' why='Reason for edit' 08_06_13_18_19_05.physical.raw | ||
For Example: addedit start=64100 end=64200 name='Pitot_Nose' why='Iced up' inputfile | For Example: | ||
addedit start=64100 end=64200 name='Pitot_Nose' why='Iced up' inputfile | |||
Notes: | |||
* If no start and end times are given the whole entire time period of the inputfile is used. | |||
* If no id parameter is given the Flight Scientist name is used. | |||
* The input file need to be a *.raw file. | |||
* If no outputfile is given the input file is used as the base of the output file. | |||
You can use the gvim edit to view/modify an edit file. | You can use the gvim edit to view/modify an edit file. |
Revision as of 19:45, 2 June 2017
Automatically Filtered Files (*.flt)
Creating
The filteroutliers.py script can be used to create a filtered file (*.flt). The command syntax
filteroutliers.py [points=n] [stdev=z] [keys=shortnames] input_file output_file n - Number of data points in average (default is 1500 data points, or 1 minute of data at 25 Hz). z - The z-score where all outlying points will be converted to missing value codes (default is 3 standard deviations). shortnames - Comma-delimited list of short names of parameters (VDESC) to filter (default is all data in file will be filtered).
For example:
filteroutliers.py points=1500 stdev=3 keys=AlphaPreNo,BetaPreNo,PitotPreNo 15_08_08_14_57_48.physical.raw 15_08_08_14_57_48.physical.flt
Notes:
- Program works best to filter serial data. Use caution when filtering analog data as too many data points may be filtered.
Human-Edited Files (*.edits)
Creating
The addedit script can be used to create or append to an edit file (*.edits). The command syntax is:
addedit [start=n] [end=n] [id='Editor Name'] [outputfile] name='Parameter' why='Reason for edit' 08_06_13_18_19_05.physical.raw
For Example:
addedit start=64100 end=64200 name='Pitot_Nose' why='Iced up' inputfile
Notes:
- If no start and end times are given the whole entire time period of the inputfile is used.
- If no id parameter is given the Flight Scientist name is used.
- The input file need to be a *.raw file.
- If no outputfile is given the input file is used as the base of the output file.
You can use the gvim edit to view/modify an edit file.
Archiving
- To back up all of the *.edits files in a data set first navigate to the project name directory. For example,
$ cd /nas/ral/Mali
- Rename the current *editfiles* archive file. This way when the create_editstarfile script is run, it won't overwrite the current archive file.
$ mv Summer2008.editfiles.tar.gz Summer2008.editfiles.tar.gz_090819
- Execute the create_editstarfile script from the current directory. The argument passed into the script should be a general time period found within the project name directory.
$ create_editstarfile Summer2008
- This create the new *.editfiles.tar.gz archive file.
Extracting and Applying Archived
- To extract and apply edits, first go to the project name directory.
$ cd /nas/ral/Mali
- Then untar the archived *.edits files.
$ tar -xvzf Summer2008.editfiles.tar.gz