.:tutorials Boxplot:home: Difference between revisions

From ADPAA
Jump to navigation Jump to search
(Created page with "=How to Create Boxplots with Aplot or Cplot2= This tutorial uses data from the 19 September 2017 flight found on ADTAE. ==Step 1: Gather Information= Need to know the start time, stop time, x- and y-parameter numbers in the input file. The parameter numbers can be found using 'listparas' command. Listparas example: listparas 17_09_19_20_24_36.basic.1Hz Listparas example output: 1) Air_Temp 2) MachNo_N 3) IAS 4) AIMMS_TAS 5) Press_Alt 6) Pot_Temp_T1 7) IA...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=How to Create Boxplots with Aplot or Cplot2=
=How to Create Boxplots with Aplot or Cplot2=


This tutorial uses data from the 19 September 2017 flight found on ADTAE.  
This tutorial uses data from the 19 September 2017 flight found on ADTAE (../TestData/FlightData/20170919_202436/PostProcessing).  


==Step 1: Gather Information=
==Step 1: Gather Information==


Need to know the start time, stop time, x- and y-parameter numbers in the input file.  The parameter numbers can be found using 'listparas' command.
Need to know the start time, stop time, x- and y-parameter numbers in the input file.  The parameter numbers can be found using 'listparas' command.
Line 11: Line 11:


Listparas example output:
Listparas example output:
  1) Air_Temp
  2) MachNo_N
  3) IAS
  4) AIMMS_TAS
  5) Press_Alt
  6) Pot_Temp_T1
  7) IAS_A
  8) CIP_TAS
  9) Density
10) TCritWing
11) TCritIcing


  1) Air_Temp
==Step 2: Generate the statistics file==
  2) MachNo_N
 
  3) IAS
 
  4) AIMMS_TAS
For each time period use the following command to generate the mean, standard deviation, 5-, 25- 50-, 75- and 90-percentiles, number of samples in the time period, minimum, and maximum statistics:
5) Press_Alt
  cplot2 outputstats time_min = start_time time_max = stop_time y_para = y_parameter_number stats_file = output_statistics_file_name input_file_name
6) Pot_Temp_T1
 
7) IAS_A
Example:
8) CIP_TAS
  cplot2 outputstats time_min = 74248 time_max = 74669 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats 17_09_19_20_24_36.basic.1Hz
9) Density
  cplot2 outputstats time_min = 74963 time_max = 75160 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats 17_09_19_20_24_36.basic.1Hz
10) TCritWing
  cplot2 outputstats time_min = 75469 time_max = 75880 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats 17_09_19_20_24_36.basic.1Hz
11) TCritIcing
  cplot2 outputstats time_min = 75967 time_max = 76345 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats 17_09_19_20_24_36.basic.1Hz
  cplot2 outputstats time_min = 76462 time_max = 76948 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz
 
==Step 3: Plot the Boxplots==
 
Use cplot2 to open the output statistics file from step 2.
 
Example:
 
  cplot2 17_09_19_20_24_36.basic.aimms_TAS.stats
 
Click on the 'Plot' button on the top of the cplot2 gui and then click on the 'Boxplot' option in the popup menu. A boxplot graph should show up in a new window.

Latest revision as of 11:09, 17 April 2025

How to Create Boxplots with Aplot or Cplot2

This tutorial uses data from the 19 September 2017 flight found on ADTAE (../TestData/FlightData/20170919_202436/PostProcessing).

Step 1: Gather Information

Need to know the start time, stop time, x- and y-parameter numbers in the input file. The parameter numbers can be found using 'listparas' command.

Listparas example:

 listparas 17_09_19_20_24_36.basic.1Hz

Listparas example output:

 1) Air_Temp
 2) MachNo_N
 3) IAS
 4) AIMMS_TAS
 5) Press_Alt
 6) Pot_Temp_T1
 7) IAS_A
 8) CIP_TAS
 9) Density
10) TCritWing
11) TCritIcing

Step 2: Generate the statistics file

For each time period use the following command to generate the mean, standard deviation, 5-, 25- 50-, 75- and 90-percentiles, number of samples in the time period, minimum, and maximum statistics:

 cplot2 outputstats time_min = start_time time_max = stop_time y_para = y_parameter_number stats_file = output_statistics_file_name input_file_name

Example:

 cplot2 outputstats time_min = 74248 time_max = 74669 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz
 cplot2 outputstats time_min = 74963 time_max = 75160 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz
 cplot2 outputstats time_min = 75469 time_max = 75880 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz
 cplot2 outputstats time_min = 75967 time_max = 76345 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz
 cplot2 outputstats time_min = 76462 time_max = 76948 y_para = 4 stats_file = 17_09_19_20_24_36.basic.aimms_TAS.stats  17_09_19_20_24_36.basic.1Hz

Step 3: Plot the Boxplots

Use cplot2 to open the output statistics file from step 2.

Example:

 cplot2 17_09_19_20_24_36.basic.aimms_TAS.stats

Click on the 'Plot' button on the top of the cplot2 gui and then click on the 'Boxplot' option in the popup menu. A boxplot graph should show up in a new window.