|
User Documentation |
|||||||||
| prev file | next file | ||||||||||
| SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide gregion.pro
| gregion |
procedure gregion, regions |
Set some regions for use by GUIDE gaussian procedures and functions.
This sets the !g.gauss.regions structure with the regions described by the regions argument. Overlaps in regions are eliminated and the resulting contents of !g.gauss.regions is a set of unique, non-overlapping regions. Regions are expressed as channel numbers. This procedure always clears the contents of !g.gauss.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
gregion, [125,180,215,300,320,475]
; as 2-D array
gregion, [[125,180],[215,300],[320,475]]
; same regions, beginning and end channels swapped
gregion, [180,125,300,215,320,475]
; overlapping regions
gregion, [125,160,150,180,215,300,320,420,400,475]