|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide nregion.pro
nregion |
procedure nregion, regions |
Set some regions for use by other GUIDE procedures and functions.
This sets the !g.regions structure with the regions described by the regions argument. Overlaps in regions are eliminated and the resulting contents of !g.regions is a set of unique, non-overlapping regions. Regions are expressed as channel numbers. This procedure always clears the contents of !g.regions before starting.
Note: there is a limit of 100 regions. If you need to use more regions you will need to either use the fitting functions directly or make a local copy of the guide_struct file which defines the !g structure and edit the sizes in there.
; as 1-D array nregion, [125,180,215,300,320,475] ; as 2-D array nregion, [[125,180],[215,300],[320,475]] ; same regions, beginning and end channels swapped nregion, [180,125,300,215,320,475] ; overlapping regions nregion, [125,160,150,180,215,300,320,420,400,475]