next up previous contents
Next: 10.3 mission_createorbitinfo.pro Up: 10. Templates for PaPCo Previous: 10.1 PaPCo interface templates

Subsections

10.2 Plot & Read templates

These routines are user specific and do the actual data reading and data plotting. The template provided here serves as a working guide, but there are NO RESTRICTIONS on how you decide to read or plot your data yourself.

PaPCo provides some plot routines for line plots and color spectrograms. Most modules written so far use these routines, but again, there is NO RESTRICTION on the way you want to do things. However, to make panels look good together, some of the conventions used by these plot routines make sense!

   
10.2.1 r_plot_type.pro

This file is the read routine for plot_type.

   
10.2.2 p_plot_type_line.pro

This file is the plot routine for plot_type line plots.

   
10.2.3 p_plot_type_spec.pro

This file is plot routine for plot_type spectra plots.

   
10.2.4 defaults.config

This is a simple text file used to configure the module. This is done through the use of environmental variables, which point to the data directories or remote sites for use with wGet, or can be used to set other user-defined options in the module (such as enable/disable remote data get).

Each line in this file has the name of a global variable and it's definition. For the plot_type template the the variables needed are the one contaning the data path and the one containing the URL string to be used with the remote get data facility. The default settings that come with a module might not be correct for your installation, so you will need to use the config function of the plot_type panel editor to change it (replace papco_XX by the correct path to your PaPCo site).

10.2.4.1 wGet URL

The URL string used here needs a little explanation. The URL has the general format of

ftp://user:password@host//data_dir

Where

user:password are the account name and password for the site. If your URL contains exactly the string ``user:password'' here, then PaPCo will prompt you for the user and passowrd name. The idea is not to EVER put an password into a file - if you want to protect your site, make at least sure thast you never ship a module which has pasword information explicitly in it!

When user:password are omitted (us in this example), wGet will attempt to use anonymous ftp.

host is the internet address, in this case papco.lanl.gov.

data_dir is the full path to the directory containing the data.

For further information refer to the wGet manual.

10.2.4.2 You don't have wGet?

wGet is a GNU freeware utility for UNIX freeley available on the web and should also be available in some form for Win95.

If you cannot use wGet on your site then you'll have to do without the remote get data facility of PaPCo. You can, however, still access the files needed outside of PaPCo using normal ftp. For the plot_type module simply ftp to

papco.lanl.gov, login as user anonymous

cd pub/papco/data/plot_type

bin

get plot_type_970111.idl


next up previous contents
Next: 10.3 mission_createorbitinfo.pro Up: 10. Templates for PaPCo Previous: 10.1 PaPCo interface templates
Reiner Friedel
1999-02-03