next up previous contents
Next: 6.4 The papco_interface routines Up: 6. Including your own Previous: 6.2 make_new_module.pro

6.3 Module directory structure

Your module can reside anywhere you want (see Section 3.3). Traditionally, all the PaPCo distribution module directories are subdirectories under papco_XX/papco_modules, but this is not prescribed. The best place for you module while developing is in your papco_user_XX space under papco_user_XX/papco_user_modules. Your module directory MUST, however, contain the following:

1.
A subdirectory called /papco_interface. Place all the PaPCo specific interface files into this directory; that's panel editors, papcoadd routines and slices.
2.
A subdirectory called /plot_read. Put all your newly written plot and read-routines here. This directory also needs to contain a file defaults.config, which is used to define the environmental variables used by your module.
3.
An initialization file init_module.pro. This contains a series of .run commands to initialize your PaPCo interface, plot and read programs.

This structure is critical for a successful interface into PaPCo. To make life easier, the sample template module is already constructed using this file structure, and it contains all other templates already in their correct directories:
papco_XX/papco/papco_modules/plot_type.

Refer to the template in Appendix B for all the files that make up this module structure.

In what follows your own new module directory will be referred to as YOUR_MODULE_DIR.

1.
copy the contents of the template module directory to YOUR_MODULE_DIR.


next up previous contents
Next: 6.4 The papco_interface routines Up: 6. Including your own Previous: 6.2 make_new_module.pro
Reiner Friedel
1999-02-03