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


next up previous contents index
Next: inputsmanager.show - Function Up: inputsmanager - Tool Previous: inputsmanager.getvalues - Function


inputsmanager.savevalues - Function



Package utility
Module tasking
Tool inputsmanager


Save inputs for a tool and function


Synopsis
savevalues(tool, method, values, keyword, dosave)


Description
Save the inputs for a given tool, function, and keyword. The record must contain the argument names and values.



Arguments

tool   Name of tool
    Allowed: String
    Default: None
method   Name of function
    Allowed: String
    Default: None
values   Record of inputs
    Allowed: Record
    Default: [=]
keyword   Name of keyword
    Allowed: String
    Default: 'lastsave'
dosave   Force a save to disk-based table
    Allowed: Bool
    Default: F


Returns
Bool


Example
- include 'inputsmanager.g'
- inputs.show()
Inputs:

  Row                  Time   Keyword
-------------------------------------
    1   2000/02/18/13:54:24  lastsave
T                                        
- rec := inputs.getvalues('imager', 'setimage')
- print rec
[nx=300, ny=300, cellx=[value=1.2, unit=arcsec], celly=[value=1.2,
unit=arcsec], stokes=IQUV, doshift=T, phasecenter=[m0=[value=0,
unit=deg], m1=[value=90, unit=deg], type=direction, refer=JUPITER],
shiftx=[value=0, unit=arcsec], shifty=[value=0, unit=arcsec],
mode=mfs, nchan=1, start=1, step=1, mstart=[value=0, unit=km/s],
mstep=[value=0, unit=km/s], spwid=1, fieldid=1, facets=1]
- rec.stokes:='IV';
- inputs.savevalues('imager', 'setimage', rec, 'IV only', dosave=F)
- inputs.show()
Inputs:

  Row                  Time   Keyword
-------------------------------------
    1   2000/02/18/14:04:25  lastsave
    2   2000/02/18/14:04:25   IV only
T





next up previous contents index
Next: inputsmanager.show - Function Up: inputsmanager - Tool Previous: inputsmanager.getvalues - 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