Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/ciao/ahelp/paccess.html
AHELP for CIAO 4.9

paccess

Context: tools

Synopsis

Gives the location of a tool's parameter file

Syntax

paccess parameterfile [mode]

Description

paccess can be used to determine where a user is picking up their parameter file from, or which parameter file will be used by default. If the mode is "rw" (the default if not specified) and no user writeable file exists in $PDIRS, $PFILES, or $UPARM, one is copied from the reference directories to a user writeable location and that file name is returned.

The optional mode argument can be use to search for read or read-write files.

Example 1

(1) paccess dmlist

Will return where dmlist.par lives. It will copy it to the user's writeable location if one does not exist.

Example 2

(2) paccess dmlist r

Will return where a "read"-able version of dmlist.par lives. If the user does not have one in their write-able directory then the location of the reference parameter file is returned.

Parameters

name type def reqd
parameterfile string   yes
mode string rw  

Detailed Parameter Descriptions

Parameter=parameterfile (string required)

parameter file to find

name of the parameter file (typically same as tool) to search for

Parameter=mode (string default=rw)

access mode to search for

The mode allows the user to select what kind of parameter file they are looking for: read-able, write-able, or both. The mode can take the values

r Read-able
w Write-able

Bugs

There are no known bugs for this tool.

See Also

concept
parameter
tools
dmhistory, dmkeypar, dmmakepar, dmreadpar, pdump, pget, pline, plist, pquery, pset, punlearn

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.