How to use the main script for the Multi-source spectral plot (MSSP) capability from command line In order to access MSSP data for a moderately large number of cases/runs, it may be convenient to use command lines rather than MSSP interactive Interface Browser, because that command line can be placed in an external loop to gain the ability to automatically change any combination of parameter values. Below is an example of how to get 5 image plots (gif files) in one run of the program for each two day interval from 2006-12-01 to 2006-12-10 Parameter names are obtained from the source code of the page http://omniweb.sci.gsfc.nasa.gov/ftpbrowser/flux_spectr_m.html, while parameter values in this example are those used as default values (data sources, species, plotting options) of this page. ---------------------------------------- #!usr/bin/perl use LWP::Simple; $date1=20061201; $date2=20061202; my $url="http://omniweb.gsfc.nasa.gov/cgi/nx1.cgi?activity=spectra&sars=12&sars=13&sars=14&species=1&spacecraft=m_spectra&start_date=20061201&end_date=20061202&start_range=&stop_range=&y_start=&y_stop=&charsize=&linestyle=solid&symsize=&imagex=640&imagey=640"; # Default selections: # sars=12 correspond ACE EPAM, FunTech # sars=13 correspond ACE SIS, Caltech # sars=14 correspond Wind EPACT, GSFC # species=1 correspond Alpha particles for (my $id=0; $id<10; $id=$id+2) { $date1_n=$date1 +$id; $date2_n=$date2 +$id; $url =~ s/start_date=[0-9]+&/start_date=$date1_n&/; $url =~ s/end_date=[0-9]+&/end_date=$date2_n&/; #print "$url\n"; # get file including name of gif file my $name="test" . $date1_n . ".txt"; getstore( $url, $name); open(FIN, "< $name ") || die "Can't open $name file: $!\n"; my $line=; while($line ne "") { # find the name of gif file if( $line =~ /(rets_\d+\.gif)/ ) { $gif=$1; last;} $line=; chop($line); } #end while close(FIN); print "gif=$gif\n"; if($gif){ $url_gif="http://omniweb.gsfc.nasa.gov/tmp/images/" . "$gif"; # Specify the name of you gif file $gif_file="test" . $date1_n . "_" . $date2_n . ".gif"; # Pull out gif file getstore( $url_gif, $gif_file); print "Your output gif file is: $gif_file\n"; unlink($name); } else { print "No gif file for your parameters selection\n"; } } #end of program ------------------------------------------------------