[Show/Hide Left Column]
[Show/Hide Right Column]


Carrington rotation generation software

The programs used to convert raw data to human-readable ascii-files and png-pictures are crplots_f50 and crplot_f50. They also create html-pages from the plotted data. Crplots_f50 acts as a front end for the procedure crplot_f50. It repeatedly calls that procedure for each Carrington rotation number requested, for both proton and helium data. In addition corresponding master HTML-lists are constructed. It also creates one extra rotation entry to act as the list terminator.


Calling sequence

crplots_f50,carRot1,carRot2 where carRot1 is the desired rotation where to start the plotting from and carRot2 is the last to contain valid data. Then the procedure creates a html-page to hold a 'no data yet' image for carRot2 + 1.


  • /insert_rots is used to insert CR-data in between the old ones. It doesn't rewrite the master lists or add new entries, it just overwrites the old images and ascii-files
  • path='/this/is/an/example/' makes it possible to run IDL elsewhere and specify the filepath of the web page data (note the '-marks and the / in the end). If "path"-keyword isn't used, the program must be run in the directory of the web page data.
  • rots2date=[yyyy,mm,dd] updates the current data up to the given date.
  • start=1999 explicitly defines a start rotation where to begin the updating from (in this case, rotation number 1999). Supposed to be used with the rots2date keyword which by default starts the updating from the last existing rotation.
  • /linetool is used to plot vertical lines and text into CR-pictures which contain for example, data gaps. The dates where to plot the lines and text to, are read from the file errordates.dat. It can be modified with a text editor and contains the instructions to add dates and text. This also removes bad data from between the lines for given channels if necessary.



  • crplots,1946,1950,/insert_rots,/linetool creates and rewrites CR-data for rotations from 1946 to 1950, reads the errordates.dat file, draws vertical lines and plots text onto the CR-images if errordates.dat contains suitable ones.
  • crplots,rots2date=[2006,06,17] checks if there is any new data up to the given date. If there is, begins plotting from the latest created Carrington rotation and updates the data to the rotation that is ongoing at the given date.
  • crplots_f50,/rots2date takes the current date from the system clock and updates the data.
  • crplots_f50,rots2date=[2006,06,17],start=2050 the same as before, but forces the starting rotation to be 2050.
  • crplots,1999,2000,path='/usr/srl/data/carrot/' tells the program where the html-data is if IDL is run elsewhere (in this example the path is /usr/srl/data/carrot). The program then changes its working directory to the one defined in the keyword. 'Path' can of course be used together with all the other keywords.

Created by tl. Last Modification: Friday 29 of August, 2008 08:51:06 UTC by aspkar.