.:cplot:home: Difference between revisions
Jump to navigation
Jump to search
Davidjdelene (talk | contribs) m (Protected ".:cplot:home" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
Davidjdelene (talk | contribs) m (Changed protection level for ".:cplot:home" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
|
Revision as of 15:01, 5 October 2014
CPLOT
CPLOT is a software program that quickly plots data from flights of the University of North Dakota's Citation research aircraft. CPLOT is written in IDL which is a commercial software development package. Anyone can run the program by downloading the cplot.sav file and using the IDL virtual machine. No IDL license is needed to run CPLOT.
To Download
- Download the cplot.sav file.
- Create a directory on your computer to save the "cplot.sav" file in, i.e. C:\Program Files\cplot.
- Download cplot.sav to your computer, i.e. c:\Program Files\cplot.
- Download and install the IDL virtual machine.
- The IDL virtual machine can be downloaded from http://www.ittvis.com/Downloads/ProductDownloads.aspx
NOTE: The download file is very large. - Run the IDL installation program, i.e. idl64.exe
- Choose to install IDL.
- When asked, choose to install the "IDL Virtual Machine", you don't need the full "IDL" development package.
- Create a shortcut on the desktop to start IDL.
- Right click on the desktop background
- Select New/shortcut
- Type in the following for the location (Assuming IDL6.4 was installed in the default location and the cplot.sav file was placed in c:\Program Files\cplot):
c:\RSI\IDL64ubin\bin.x86\idlrt.exe -vm="c:\Program Files\cplot\cplot.sav"
- Update software for any scripts(The whole ADPAA package)
- Change directory to /usr/local/ADPAA/src
- Type this command into the terminal; svn update
- Change directory to build
- Type this command into the terminal; make
- How to change scripts
- Make sure to update software before you change a script
- After updating software, change your directory to /usr/local/ADPAA/src
- Change your directory to scripts.
- To get the syntax on any scripts you can type the script name and the word help
Example: cd scripts convert2kml help Syntax convert2kml [start=n] [end=n] [format=format] [format_s=format_s] [fill=MVC's] [mvcfield=n] [newmvc=n] < input file > output file
How to Run cplot on Linux/UNIX
Two ways:
- Open a terminal:
- Enter 'cplot' followed by the filename in which you wish to open. Note: Be in the directory of the file.
or
- Open a terminal:
- Enter 'cplot', and hit enter.
- Click on Browse on the graphical interface that shows up.
- Enter the directory of the file that you want to bring up in cplot.
- Double click on the directory and then click on the file that you want.
- Click 'ok', 'open file'.
Walk Through
- This section describes cplot and its various features.
To Make A Plot
- Choose a unit for the x-axis of your plot.
- Choose a unit for the y-axis of your plot.
- Click on plot and then choose type of plot.
Adding additional lines to plot
- Select the unit under the axis you wish to add.
- Click on plot and then overlay.
- Choose formatting and click ok.
To Change Background Color
- Click edit and then settings.
- Then move background slide bar under color palette. Note: 0 = Black and 225 = White.
To Change Foreground Color
- Repeat Background process, but for the foreground slide bar.
To Edit Labels on Plot
- Click edit and then text.
- To edit the names of labels:
- Under Plot Titles, type edits into corresponding section (x-axis, y-axis, main).
- To edit the font size:
- Under Plot Font Sizes, type desired size into corresponding boxes (overall, x-axis, y-axis).
To Change Values of x-axis and/or y-axis
- Click edit and then axis.
- You will be able to type you minimum and maximum values for each the x-axis and y- axis.
- You can also change the type, grideline, and style of each axis.
Additional eps output
- Click on edit and then options.
- On the bottom of the pop up window there will be an option to create eps file. Click on the box.
- Replot the data that you want to be in the eps file.
- To display the eps file before you save it you type this into your terminal:
- evince cplot_latest.eps
To Gather Statistic Information for Box Plots
- In terminal use the command:
- cplot stats outputstats time_min =
- i.e 'cplot stats outputstats time_min = 76854 time_max = 76989 y_para = 10 stats_file = filename.stats inputfile
- Where time_min and time_max indicate the start and end times
- Where r_para is used to indicate the use of a ratio of 2 variables
- Where y_para is the numerator value of the ratio, or simply the y parameter to be plotted
- To find parameter number use command 'listparas <filename>'
- To view stats file use the command 'vi <filename.stats>
- output file should display as below:
- StartTime EndTime Year Month Day ID Mean Std_Dev 5_percen 25_percen 50_percen 75_percen 95_percen
- 76854.3900 76989.3500 2012.0000 7.0000 29.0000 10.0000 -0.1487 0.2362 -0.5050 -0.2900 -0.1700 0.0100 0.2700
Once the ***.stats_file is created, this file can be run in Cplot. If everything is right (17characters long before the .stats.*** file name) there will be a boxplots option in the plot menu.