Sponsored Content
Top Forums Shell Programming and Scripting An interpolation between two files Post 302969707 by jypark22 on Saturday 26th of March 2016 09:37:51 AM
Old 03-26-2016
Both data arrival times need to be calculated. The first calculated output, 0.8295 is an interpolation result from (0.78-0.945)/(0.72-0.70)*0.714+(0.945-0.70*(0.78-0.945)/(0.72-0.70)).

The other calculated output, 0.714 is obtained without the calculation since the data arrival time at 0.945V is above 0.714 so it would be 0.714.

Let me clarify one thing again. I would like to find voltage when the data arrival time reaches 0.714 using a linear interpolation and replace the calculated voltage with the data arrival time

Thank you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

variable interpolation

I've become obsessed with trying to get this to work. As of yet, I am unable to figure it out. Unfortunately, I don't have Linux or UNIX available when I get home. Anyone have tips for me on how I can pass param1 to ID via use of COUNTER and loop? thx. LIMIT=6 param1="999999999" export... (0 Replies)
Discussion started by: egkumpe
0 Replies

2. Web Development

JavaScript variable interpolation

Hi everybody, Firstly, this would be the first time I'm using JavaScript. My background is mainly Perl. Nevertheless, here's my problem. So I've created a function function linkout(url){ setTimeout("window.open(url)",5000) //in milliseconds } However because the variable "url" is... (0 Replies)
Discussion started by: z1dane
0 Replies

3. Shell Programming and Scripting

Interpolation using awk

Hi all, Consider I have a text file containing: 1003 60 1005 80 1100 110 Based on that file I need to create another file which is containing value from 1001 till 1100 which is a linear interpolation between two point (for 1004; 1006;1007 until 1109) and extrapolation based on 2... (7 Replies)
Discussion started by: ardy_yana
7 Replies

4. Shell Programming and Scripting

Hi ! whether it is possible to do interpolation in scripting...

Hi ! Experts... I just wanted to know whether it is possible in scripting...to do interpolation.... if so....have a look on my data file I need temperature and salinity value with a bin size of 0.5 m output looks somewhat like this dep temp sal 0.5 25 0.077 1 25 ... (12 Replies)
Discussion started by: nex_asp
12 Replies

5. Shell Programming and Scripting

Script to solve second order (polynomial) interpolation

Currently I have awk command to do linear interpolation awk ' { P=$2 I=$1 } END { j=0; s=I; t=I for(i=m;i<=n;i++) { if(I && i>t) { j++; s=I; t=I } print i, P+(i-s)*(P-P)/(t-s) } } ' m=1 n=8 infile FILE CONTENT... (8 Replies)
Discussion started by: Tzeronone
8 Replies

6. Shell Programming and Scripting

Expand & Interpolation

Dear All, I have input like this, infile: 10 464310.16 20 464309.44 30 464309.02 40 464316.93 ... ... Desired output per step: out_step01: 10 464310.16 11 12 13 14 (9 Replies)
Discussion started by: attila
9 Replies

7. UNIX for Dummies Questions & Answers

Interpolation if there is no exact match for value

Dear all, could you help me with following question. There are two datasets (below). I need to find match between BP values from data1 and data2, and add corresponding CM value from data2 into data1. if there is not exact match, the corresponding CM value should be calculated using interpolation.... (20 Replies)
Discussion started by: kush
20 Replies

8. Shell Programming and Scripting

XY interpolation by time in awk

Hi I am a newbie in awk scripting. I'm working with a file with xy coordinates that were acquired with a time stamp. All the time stamps were recorded but not the XY coordinates. Let see an example: FFID X Y UNIX TIME TIMEGAP... (8 Replies)
Discussion started by: Joćo Noiva
8 Replies

9. Shell Programming and Scripting

Interpolation of two values in two different files

Dear All, I have two files which contain numerical data and strings. I want to create a new file that only revise numerical data from two files using interpolation. I guess AWK works, but I am new on AWK. FileA.txt . . index_2("0.1, 1, 2, 4, 8, 16, 32"); values("0.0330208, 0.0345557,... (17 Replies)
Discussion started by: jypark22
17 Replies

10. Shell Programming and Scripting

Linear Interpolation of CSV Columnar Data

I am trying to perform linear interpolation on three columns in a CSV file. When I run this code, I do not get any changes in the output (see Expected Output). What am I doing wrong here? Awk Code ' function interpolate(lat1, lon1, t1, lat2, lon2, t2, i) { for (i = 1; i... (2 Replies)
Discussion started by: hrrruser
2 Replies
magnifier(1)							   User Commands						      magnifier(1)

NAME
magnifier - standalone magnification service for GNOME SYNOPSIS
magnifier --fullscreen | --horizontal | --vertical [--border-color=long] [--border-size=int] [--cursor-color=long] [--cursor-scale-fac- tor=float] [--cursor-set=string] [--cursor-size=int] [--help] [--invert-image] [--mouse-follow] [--mouse-latency=int] [--no-initial-region] [--override-redirect] [--refresh-time=int] [--smooth-scrolling] [--smoothing-type=string] [--source-display=string] [--target-dis- play=string] [--timing-delta-x=int] [--timing-delta-y=int] [--timing-iterations=int] [--timing-output] [--timing-pan-rate=int] [--usage] [--use-test-pattern] [--zoom-factor=float] DESCRIPTION
magnifier provides a simple fullscreen or splitscreen magnifier for GNOME. magnifier also provides a magnification service API for use by assistive technologies such as gnopernicus, and is more commonly used in this service mode. OPTIONS
The following options are supported: --border-color=lSpecify the border color as (A)RGB 23-bit value, Alpha-MSB. You can also use -c to specify this option. --border-size=inSpecify the width of the border. You can also use -b to specify this option. --cursor-color=lSpecify the cursor color, applied to 'black' pixels. --cursor-scale-fSpecifylthe cursor scale factor. --cursor-set=strSpecify the cursor set to use in the target display. --cursor-size=inSpecify the cursor size to use. This option overrides the --cursor-scale-factor option. --fullscreen Specify fullscreen magnification, which covers the entire target display. If you specify this option, you must also specify the --source-display and --target-display options. You can also use -f to specify this option. --help Display help message. You can also use -? to specify this option. --horizontal Split the screen horizontally, if the target display is the same as the source display. You can also use -h to specify this option. --invert-image Invert the image colormap. You can also use -i to specify this option. --mouse-follow Track mouse movements. You can also use -m to specify this option. --mouse-latency=Specify the maximum mouse latency time, in ms. --no-initial-regDonnot create an initial zoom region. --override-redirMake the magnifier window completely unmanaged by the window manager. --refresh-time=iSpecify the minimum refresh time for idle, in ms. You can also use -r to specify this option. --smooth-scrolliUse smooth scrolling. --smoothing-typeSpecify the image smoothing algorithm to apply: either bilinear-interpolation or none. --source-displaySpecify the display to magnify. You can also use -s to specify this option. --target-displaySpecify the display on which to show the magnified view. You can also use -t to specify this option. --timing-delta-xSpecify the number of pixels to pan in the x-dimension each frame in the timing update test. --timing-delta-ySpecify the number of pixels to pan in the y-dimension each frame in the timing update test. --timing-iteratiSpecify the number of iterations to run the timing benchmark test (0=continuous). --timing-output Display performance output. --timing-pan-ratSpecify the timing pan rate in lines per frame. --usage Display a brief usage message. --use-test-patteUse the test pattern as the source. --vertical Split the screen vertically, if the target display is the same as the source display. You can also use -v to specify this option. --zoom-factor=flSpecify the zoom (scale) factor used to magnify the source display. You can also use -z to specify this option. EXTENDED DESCRIPTION
magnifier provides a simple screen magnification utility for GNOME, offering splitscreen or fullscreen magnification. You should specify one of the following options: -v (vertical splitscreen magnification), -h (horizontal splitscreen magnification), or -f (fullscreen magni- fication). If fullscreen magnification is specified, the source and target displays must also be specified. Note that fullscreen magnification requires that two separate X server graphical screens are available. The source display can be virtual, that is, not connected to a physical graphics subsystem. The target display must be connected to a physical display device. Source and tar- get displays are of the following form: [hostname]:server_number.screen_number Most users of magnifier in standalone mode specify the -m option, which causes the magnified region to be continually recentered on the onscreen pointer position in the source display. magnifier capabilities include recoloring the mouse pointer, specifying the magnification factor for source to target conversion, separate magnification factors for the mouse pointer, and whether or not to apply smoothing or averaging to the resized image. EXAMPLES
Example 1: Displaying a Fullscreen Magnified Image of Screen ":0.0" on Target Display ":0.1", at a Magnification Factor of 3.5, With Mouse Tracking: example% magnifier -f -m -s:0.0 -t:0.1 -z3.5 Example 2: Displaying a Vertical Splitscreen Magnified Image on the Default Display, With a Scale Factor of 4 and a Horizontal Scale Factor of 3, Using Bilinear Interpolation to Smooth Resulting Image example% magnifier -v -m -z 4 --cursor-scale-factor=3 --smoothing-type=bilinear-interpolation ENVIRONMENT VARIABLES
magnifier uses $DISPLAY if the source or target displays are unspecified at startup. FILES
The following files are used by this application: /usr/bin/magnifier Executable for standalone magnification service for GNOME ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-a11y-reader | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Accessibility Guide for your platform. gnopernicus(1) NOTES
If you need fullscreen magnification due to visual difficulties, you might benefit from using a full-featured assistive technology such as gnopernicus instead. Written by Bill Haneman, Sun Microsystems Inc., 2004. SunOS 5.10 7 Sep 2004 magnifier(1)
All times are GMT -4. The time now is 08:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy