User Tools

Site Tools


visual3d:documentation:pipeline:file_commands:downsample_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:file_commands:downsample_data [2024/06/19 12:50] sgrangervisual3d:documentation:pipeline:file_commands:downsample_data [2024/11/20 20:28] (current) – Cleaned up and working towards Pipeline Command template. Added internal links. wikisysop
Line 1: Line 1:
-downsample all target signals or all analog signals by an integer multiple.+===== Downsample Data =====
  
-**noteas of february 2017, this is still a hidden and unsupported command**+This command downsamples all [[visual3d:documentation:c3d_signal_types:target_data_type|TARGET]] signals or all [[visual3d:documentation:c3d_signal_types:analog_data_type|ANALOG]] signals in a [[visual3d:documentation:c3d_signal_types:c3d_format|C3D file]] by an integer multiple. **NoteThis is a hidden and unsupported command**
  
-if modifying the analog rate, not that the resulting analog rate must be an integer multiple of the target rate.+If you are modifying the ANALOG rate then it will be necessary to ensure that the resulting ANALOG rate is an integer multiple of the TARGET rate.
  
-====== pipeline command ======+==== Pipeline Command ====
  
-**downsample_data** +<code> 
-/old_file_name+Downsample_Data 
-/signal_types+/OLD_FILE_NAME
-/new_point_rate+/SIGNAL_TYPES
-/new_analog_rate+/NEW_POINT_RATE
-**;** +/NEW_ANALOG_RATE
-====== example: downsample target ======+
 +</code>
  
-given a c3d file with a point rate of 50 and an analog rate of 200+==== Example: Downsample TARGET ====
  
-downsample the point signals to 25+Given a C3D file with a POINT rate of 50 Hz and an ANALOG rate of 200 Hz , downsample the POINT signals to 25 Hz.
  
-**downsample_data** +<code> 
-/old_file_name=*test.c3d +Downsample_Data 
-/signal_types=target +/OLD_FILE_NAME=*test.c3d 
-/new_point_rate=25 +/SIGNAL_TYPES=TARGET 
-/new_analog_rate+/NEW_POINT_RATE=25 
-**;** +/NEW_ANALOG_RATE
-====== example: downsample analog ======+
 +</code>
  
-given a c3d file with a point rate of 50 and an analog rate of 200+==== Example: Downsample ANALOG ====
  
-downsample the analog signals to 100+Given a C3D file with a POINT rate of 50 Hz and an ANALOG rate of 200 Hz, downsample the ANALOG signals to 100 Hz.
  
-**downsample_data** +<code> 
-/old_file_name=*test.c3d +Downsample_Data 
-/signal_types=analog +/OLD_FILE_NAME=*test.c3d 
-/new_point_rate+/SIGNAL_TYPES=ANALOG 
-/new_analog_rate=100 +/NEW_POINT_RATE
-**;**+/NEW_ANALOG_RATE=100 
 +; 
 +</code> 
 + 
 +==== See Also ==== 
 + 
 +The pipeline command [[visual3d:documentation:pipeline:file_commands:upsample_point_data_to_analog_rate|Upsample_Point_Data_to_Analog_Rate]] upsamples the point data of a C3D file to match the analog rate using a cubic spline.
  
  
visual3d/documentation/pipeline/file_commands/downsample_data.1718801406.txt.gz · Last modified: 2024/06/19 12:50 by sgranger