|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide find.pro
find |
Put entries in to the stack based on the given selection criteria in the global find structure. This is an alternative to select.
Use setfind to set specific selection criteria. Once set, they remain set until cleared using clearfind. FIND uses those selection criteria and select to add entries to the stack corresponding to items in the data source that match the selection criteria. The stack can then be iterated through to process just the most recently found data.
Note: unlike select, find clears the stack unless the /append keyword is used. This has been done to make the behavior of FIND more like the CLASS version of FIND.
; define the selection setfind,'scan',100,200 ; scans 100 through 200 find ; refine it setfind,'polarization','LL' ; only the LL polarization find ; refine it setfind,'int','2:3' ; only integrations 2 and 3 find ; refine it setfind,'int',4,/append ; add integration 4 to the set find ; this is equivalent to the previous 2 setfind examples. ; note that any valid selection string can be used setfind,'int','2:3,4' setfind,'polarization','RR' ; the other polarization find,/append ; the LL selection is still there due to /append clearfind,'int' ; clear the integration parameter find ; all integrations, RR polarization, scans 100 to 200.If you often set the same parameter, you can write a procedure, as in this example, to save yourself time. You might add optional feedback to the user that the parameter was set and you might add additional parameter checks.
pro setsrc,src setfind,'source',src end