man1/ams_BMscale

Table of Contents

Name

ams_BMscale - scale a field strength

Synopsis

ams_BMscale <Imass> <Omass> <dbman_host>

Description

The program reads stdin for a list of Label-RefName pairs which are assumed to control/read parameters.

A new value is calculated for the field strength from Imass and Omass and written back to the database.

The formula is: Vnew = sqrt(Omass/Imass) * Vold

This is suitable for simple scaling of magnetic components.

Arguments

Imass - required

The starting mass.
Omass - required

The ending mass.
dbman_host - required

The host where dbman(8) is running.

File Format

Each entry in the file contains two sets of parameters. The first pair of fields is the parameter to read the field strength from. The second pair is the parameter to write the new value to.

HPB 01-1|MfieldR |BM 01-1|MfieldC |
HPB 03-1|MfieldR |BM 03-1|MfieldC |

Examples

ams_BMscale 12 13 csdev1 < par_value_list
Scale the magnets for 13C assuming they are presently scaled for 12C.

Notes

The program registers with dbman(8) as dbmod.

Manual page revision

$Id: ams_BMscale.1,v 1.2 2003/04/24 17:30:37 kitchen Exp $


Table of Contents