This template is used to write RHESSI image and spectrum scripts from the routine hsi_params2script. Please don't remove. Kim Tolbert, 06-Jul-2018 TOP ;+ ; insert_class script - created insert_systime by hsi_params2script.pro ; Includes insert_chg_text ; ; Note: This script simply sets control parameters in the insert_class object as they ; were when you wrote the script. To make the object do anything in this script, ; you need to add some action commands. For instance, the command ; insert_data_type= obj->getdata() ; would generate and return the insert_data_type. ; ; For a complete list of control parameters look at the tables in ; http://hesperia.gsfc.nasa.gov/ssw/hessi/doc/hsi_params_all.htm ; ; There are several ways to use this script: ; ; A. Run this procedure via this command (compile first if it's not in your IDL path): ; insert_script_name, obj=obj ; Note: you can set additional parameters or override parameters in script via: ; insert_script_name, obj=obj, param1=param1, param2=param2,... ; or ; B. Compile and execute it as a main program by: ; 1. Comment out the "pro" line and save. ; 2. From the command line, type .run insert_script_name. ; In the IDLDE, click Compile, then Execute. ; 3. Use .GO to restart at the beginning of the script ; or ; C. Execute it as a batch file via: ; 1. Comment out the "pro" and "end" lines and save. ; 2. Run the commands via @insert_script_name ; ; Once you have run the script (via one of those 3 methods), you will have an ; insert_class object called obj that is set up as it was when you wrote the script. ; You can proceed using obj from the command line or the hessi GUI. ; To use it in the GUI, type ; hessi,obj TOP IMAGE_NOTES ; To use it from the command line, here are a few examples of commands: ; data = obj->getdata() ; retrieve the last image made ; data = obj->getdata(use_single=0) ; retrieve all images in cube ; obj->plot ; plot the last image ; obj->plotman ; plot the last image in plotman ; obj->plotman, /choose ; choose which image(s) in cube to plot in plotman IMAGE_NOTES SPECTRUM_NOTES ; To use it from the command line, here are a few examples of commands: ; data = obj->getdata() ; retrieve the spectrum data ; obj->plot ; plot the spectrum ; obj->plotman ; plot the spectrum in plotman ; obj->plot, /pl_time ; plot the time history ; obj->plotman, /pl_time ; plot the time history in plotman SPECTRUM_NOTES MIDDLE ;- pro insert_script_name, obj=obj, _extra=_extra obj = insert_class() MIDDLE BOTTOM if keyword_set(_extra) then obj->set, _extra=_extra end BOTTOM