Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: saveregions.settable - Function Up: saveregions - Tool Previous: saveregions.gui - Function


saveregions.setregions - Function



Package display
Module widgets
Tool saveregions


Set new regions to save


Synopsis
setregions(regions)


Arguments

regions Regions or region names
Allowed: Record of regions or vector of strings


Returns
Bool or fail



Description

This function allows you to change the list of regions available for saving. If you constructed with globalsave=T, then you pass in a vector of region names. Otherwise, you pass in a record of regions.



Example
- include 'saveregions.g'   
- r1 := drm.box([10,10],[20,30]);
- r2 := drm.quarter();
- sr1 := saveregions(globalsave=T);
- sr1.setregions("r1 r2");
- r[1] := r1;
- r[2] := r2;
- sr2 := saveregions(globalsave=F);
- sr2.setregions(r);

We show how to set regions from the global name space and from a record.





next up previous contents index
Next: saveregions.settable - Function Up: saveregions - Tool Previous: saveregions.gui - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15