For colors, it is done by a number system, with 250 being red. To add commands, we just add a comma and then add whichever command we want. If you notice, we have to read our "X" variable first, then Y. Let's try plotting column B versus column A: Want our axis labeled, or what color we should use. We have to tell IDL what our variables are, and we can also tell it how we The command to plot things is.plot, you guessed it. Remember, our file has 3 columns, a/b/c in order, so: An example of the basic format, using the datafile. ![]() You want to specify the filename after readcol, and then all the column names so you can call them later on. Readcol : This reads in the columns of the file you want to use. This should be your first step on anything if you get stuck. ? : The ? opens up the IDL help window, allowing you to search through the manual and the list of commands. Then type IDL in the command line.īefore we start doing any work, I'll list the most useful command in IDL, the "?" ![]() This exercise is intended to go through basic commands in IDL to make basic plots, sort data based on specific parameters, and make a for-loop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |