hi, nudging the post in hope the last question gets answered
just nudging the post in hope the last question gets answered
---------- Post updated 19-08-11 at 09:11 AM ---------- Previous update was 18-08-11 at 07:08 PM ----------
debugging I added this at lines 86 and 96
the resulting stats output shows what is happening:
If there is a negative maximum (this would happen if the logger was intalled in reverse -easily possible in the field) the result is that no maximum count is recorded -it should be 6 above.
any idea how I can achieve this?
thanks
hi i am trying to perform some calculations with awk and arrays. i have this so far:
awk 'NR==FNR{ for(i=1; i<=NF; i++) {array+=$i} tot++;next}
{for(i=1; i<=NF; i++) {avg=array/tot} {diff=(array - avg)}} {for(i=1; i<=NF; i++) {printf("%5.8f\n",diff)}}' "$count".txt "$count".ttt >... (4 Replies)
I'm at wits end with this issue and my troubleshooting leads me to believe it is a problem with the file formatting of the array referenced by my script:
awk -F, '{if (NR==FNR) {a=$4","$3","$2}\
else {print a "," $0}}' WBTSassignments1.txt RNCalarms.tmp
On the WBTSassignments1.txt file... (2 Replies)
Dear All,
I am facing problem to get right output through awk program
I have file in which “B” value is appearing multiple time and I need to capture all these values.
My script is
BEGIN { FS=" " }
{
if ( substr($1,1,5) == "START" )
{
i =... (2 Replies)
Hi all,
i have a data array as follows.
array=ertfgj2345
array=456ttygkd
.
.
.
array=errdjt3235
so number or elements in the array can varies depending on how big the data input is.
now i have a variable, and it is $1 (there are $2, $3 and so on, i am only interested in $1).
... (9 Replies)
Hi,
I rather have a very complicated awk problem here, at least to me. I have two files.
File 1:
607 687 174 0 0 chr1 3000001 3000156 -194195276 - L1_Mur2 LINE L1 -4310 1567 1413 1
607 917 214 114 45 chr1 3000237 ... (19 Replies)
I am trying to map values in the input file, where 2nd column depends on the specific value in the 1st column. When 1st column is A place 1 into 2nd column, when it is B, place 2, when C place 3, otherwise no change.
My input:
U |100|MAIN ST |CLMN1|1
A |200|GREEN LN |CLMN2|2
1 |12... (4 Replies)
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Hi, I have a problem with awk array when iam trying to use awk in solaris box as below..Iam unable to figure out the problem..
Need your help. is there any alternative to make it in arrays from variable values
nawk 'BEGIN {SUBSEP=" ";
split("101880|110045 101887|110045 101896|110045... (9 Replies)
Hello All,
Can you please help me with the below.
#!/bin/bash
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5 EXTRACT_DT:30-SEP-12 VER_NUM:1"
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5... (14 Replies)
I am trying to reformat the table by filling any missing rows. The final table will have consecutive IDs in the first column. My problem is the index of the associate array in the awk script.
infile:
S01 36407 53706 88540
S02 69343 87098 87316
S03 50133 59721 107923... (4 Replies)
Discussion started by: yifangt
4 Replies
LEARN ABOUT XFREE86
rhoptimize
RHOPTIMIZE(1) General Commands Manual RHOPTIMIZE(1)NAME
rhoptimize - optimize beam locations in holodeck file
SYNOPSIS
rhoptimize [ -u ] src_holo [ dest_holo ]
DESCRIPTION
Rhoptimize optimizes beam positions and eliminates fragment waste in the holodeck file src_holo, writing the result to dest_holo, or back
into src_holo if only one argument is given. This may improve rendering speed on large holodecks, which tend to have widely dispersed beam
positions that cause delays due to long file seeks. It may also reduce the size of the file, since large holodecks become fragmented as
they fill up with new ray samples. (Use the rhinfo(1) program to determine holodeck file fragmentation.) The -u option adds a check to
make sure that each ray sample is unique, i.e., the same sample is never given twice. This check is usually unnecessary, but may eliminate
redundant samples from some holodeck files.
EXAMPLE
To optimize the beam order in old.hdk and write the results to new.hdk:
rhoptimize old.hdk new.hdk
To optimize beam order in scene.hdk:
rhoptimize scene.hdk
NOTES
If rhoptimize is given only one file argument, it creates a temporary file in the same directory, and moves it onto the original file once
it has successfully completed its operation. If the operation fails for some reason, the temporary file is removed and the original
holodeck is left unchanged.
This program generally takes several minutes to run and offers no progress reports.
FILES
rho????.hdk temporary file to hold new holodeck
AUTHOR
Greg Ward Larson
ACKNOWLEDGMENT
This work was supported by Silicon Graphics, Inc.
SEE ALSO getinfo(1), pfilt(1), psign(1), rhcopy(1), rhinfo(1), rholo(1), rpict(1)RADIANCE 1/25/99 RHOPTIMIZE(1)