Provides methods to convert between common NMR units
| Parameters : | size : int
cplex : bool
sw : float
obs : float
car : float
|
|---|
Methods
| __init__(size, cplx, sw, obs, car) | create and set up a unit_conversion object |
| f(val[, unit]) | Convert string or value/unit pair to float |
| hz(val) | Convert to Hz |
| hz_limits() | Return tuple of left and right edges in Hz |
| hz_scale() | Return array of Hz values |
| i(val[, unit]) | Convert string or value/unit pair to integer |
| ms(val) | Convert to milliseconds (ms) |
| ms_limits() | Return tuple of left and right edges in milliseconds |
| ms_scale() | Return array of seconds values |
| percent(val) | Convert to percent |
| percent_limits() | Return tuple of left and right edges in percent |
| percent_scale() | Return array of percent values |
| ppm(val) | Convert to ppm |
| ppm_limits() | Return tuple of left and right edges in ppm |
| ppm_scale() | Return array of ppm values |
| sec(val) | Convert to seconds |
| sec_limits() | Return tuple of left and right edges in seconds |
| sec_scale() | Return array of seconds values |
| seconds(val) | Convert to seconds |
| unit(val, unit) | Convert val points to unit |
| us(val) | Convert to microseconds (us) |
| us_limits() | Return tuple of left and right edges in milliseconds |
| us_scale() | Return array of seconds values |