Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Create a list from minimum and maximum Post 303040002 by jiam912 on Monday 21st of October 2019 11:29:08 AM
Old 10-21-2019
Hi RudiC

Please can u let me know one of the similar problems to check for it

Many Tks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to create a list of entries without vi

Hi Is there a way to create a list of entries in a file without using vi to create this list ? I like to write a shell script that would create a list like this: apple : 2 orange : 4 pear : 3 Any tips/suggestions ? Thanks (3 Replies)
Discussion started by: mpc8250
3 Replies

2. Shell Programming and Scripting

minimum and maximum from columns

Hi Friends, my input file is this way chr1 100 120 abc chr1 100 121 def chr1 100 122 ghi chr2 240 263 kil chr2 240 276 ghj chr2 255 290 hjh my output chr1 100 122 abc chr2 240 276 kil chr2 255 290 hjh Basically, I want to match on first and second column and then print the... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

3. Shell Programming and Scripting

Print minimum and maximum values using awk

Can I print the minimum and maximum values of values in first 4 columns ? input 3038669 3038743 3037800 3038400 m101c 3218627 3218709 3217600 3219800 m290 ............. output 3037800 3038743 m101c 3217600 3219800 m290 (2 Replies)
Discussion started by: quincyjones
2 Replies

4. Shell Programming and Scripting

Finding minimum maximum and average

I am trying to find the minimum maximum and average from one file which has values Received message from https://www.demandmatrix.net/app/dm/xml] in milliseconds. Received message from https://www.demandmatrix.net/app/dm/xml] in milliseconds. Received message from... (5 Replies)
Discussion started by: aroragaurav.84
5 Replies

5. Shell Programming and Scripting

Getting average ,maximum and minimum value

Hi Evreyone below is the sample data i have in one file Wed Jan 30 7 :04:50 2013 type1 419990050 101 ms Wed Jan 30 7 :04:58 2013 type1 488226363 101 ms Wed Jan 30 7 :05:03 2013 type1 431525334 101 ms Wed Jan 30 7 :05:48 2013 type2 400676615 101 ms Wed Jan 30 8 :09:46... (3 Replies)
Discussion started by: zozoo
3 Replies

6. Shell Programming and Scripting

Extract minimum/maximum using awk

From the below table I want to print highest value and lowest value using awk script. aaa 55 66 96 77 ggg 22 96 77 23 ddd 74 58 18 3 kkk 45 89 47 92 zzz 34 58 89 92 Thanks, Green edit by bakunin: it sure is not news to you that you should use CODE-tags, no? And that we do not want such... (3 Replies)
Discussion started by: gwgreen1
3 Replies

7. UNIX and Linux Applications

Maximum and minimum threshold in autosys

Good evening In a production system there are houndred of Jobs running and i´ve got to monitor all of them, but the problem arises when a job running takes much longer or conversely takes nothing and as operator is almost imposible to detect the máximum or mínimum threshold for a running job. Ive... (1 Reply)
Discussion started by: alexcol
1 Replies

8. Shell Programming and Scripting

Output minimum and maximum values for replicates ID

Hi All I hope that someone could help me! I have an input file like this, with 4 colum(ID, feature1, start, end): a x 1 5 b x 3 10 b x 4 9 b x 5 16 c x 5 9 c x 4 8 And my output file should be like this: a x 1 5 b x 3 16 c x 4 9 What I would like to do is to output for each ID... (2 Replies)
Discussion started by: giuliangiuseppe
2 Replies

9. Shell Programming and Scripting

Find minimum and maximum values based on column with associative array

Hello, I need to find out the minimum and maximum values based on specific column, and then print out the entire row with the max value. Infile.txt: scf6 290173 290416 . + X_047241 T_00113118-1 scf6 290491 290957 . + X_047241 T_00113118-2 scf6 290898 290957 . + X_047241 T_00113119-3 scf6... (2 Replies)
Discussion started by: yifangt
2 Replies

10. Shell Programming and Scripting

awk to find maximum and minimum from column and store in other column

Need your support for below. Please help to get required output If column 5 is INV then only consider column1 and take out duplicates/identical rows/values from column1 and then put minimum value of column6 in column7 and put maximum value in column 8 and then need to do subtract values of... (7 Replies)
Discussion started by: as7951
7 Replies
MINCLOOKUP(1)							 MINC User's Guide						     MINCLOOKUP(1)

NAME
minclookup - perform lookup table conversions on minc files SYNOPSIS
minclookup [<options>] <in1>.mnc <out>.mnc DESCRIPTION
Minclookup will perform a lookup table operation on each voxel of a minc file. A lookup table consists of a list of input values with matching output values. Each voxel of the input file is found in the lookup table and the corresponding output value is written out. These output values can be either scalar or vector values so, for example, a colour lookup table would have four columns: one column for input values and one column for each of red, green and blue output values. Lookup tables can take one of two forms: continuous or discrete. A continuous lookup table is for treating voxel values as continuous (real) values and converting values by doing interpolation between the values given in the lookup table. A discrete lookup table treats input values as integers and deals with them as completely independent entries, doing no interpolation. The most common use of continuous lookup tables is for converting intensity values into RGB colours. To make the lookup tables simpler, the input values are all rescaled into the range zero to one. By default, the smallest value in the file maps to zero and the largest maps to one. This value is then found in the lookup table, usually between two entries in the table (the table is always sorted in ascending order of input values). Linear interpolation is then done on each output column and the resultant value (or values) is written to the output file. If there is more than one output value per input value, then the dimension vector_dimension is added to the output file with length equal to the number of output columns in the lookup table. For input values outside the range zero to one, the nearest table value is used. Discrete lookup tables are usually used for remapping label values. Each input value is treated as an integer (it is not rescaled) and if it is found in the lookup table, then the corresponding value (or values) is written to the output file. If it is not found, then a null value is written out (zero by default). No interpolation is done with discrete lookup tables - to get a non-null output value, there must be an entry in the table. OPTIONS
Note that options can be specified in abbreviated form (as long as they are unique) and can be given anywhere on the command line. General options -2 Create a MINC 2.0 format output file. -clobber Overwrite an existing file. -noclobber Don't overwrite an existing file (default). -no_clobber Synonym for -noclobber. -verbose Print out progress information for each chunk of data copied (default). -quiet Do not print out progress information. -buffer_size size Specify the maximum size of the internal buffers (in kbytes). Default is 10 MB. -filetype Create an output file with the same type as the first input file (default). -byte Store each voxel as an 8-bit integer. -short Store each voxel as a 16-bit integer. -int Store each voxel as a 32-bit integer. -long Superseded by -int. -float Store each voxel in 32-bit floating point format. -double Store each voxel in 64-bit floating point format. -signed Create an output file with data stored in a signed type. This option is meaningless when used with floating point data formats, which are always signed. -unsigned Create an output file with data stored in an unsigned type. This option is meaningless when used with floating point data formats. -valid_range min max Scale integer voxel values to fall between the values min and max. By default integer voxel values will be scaled to use the entire range of the base type. This option is meaningless when used with floating point data formats. Lookup table options -gray Use a gray lookup table to write out RGB values (default). -grey Synonym for -gray. -hotmetal Use a hot-metal lookup table to write out RGB values. -spectral Use a spectral (rainbow) lookup table to write out RGB values. -invert Invert the lookup table so that the maximum value maps to zero and the minimum value maps to one. Applies only to continuous lookup tables. -noinvert Do not invert the lookup table - the minimum maps to zero and the maximum maps to one (default). -range min max Specify the range of values that should map to the range of the lookup table (default is the full range of the input file). -minimum min Specify the input value that maps to the minimum value in the lookup table. -maximum max Specify the input value that maps to the maximum value in the lookup table. -lookup_table [file | -] Specify the name of a file containing the lookup table. If - is given, the lookup table is read from the standard input. The file must have at least two columns: The first column gives the input values; the other columns give the corresponding output values. For a continuous lookup table, the first column should contain a value between zero and one inclusive Explicit entries for both zero and one should usually be given. For a discrete lookup table, the first column should contain integer values. If more than one output column is given, then the output file will have the dimension vector_dimension with a length equal to the number of output columns. The lines of the table will be sorted if necessary so that the first column is in ascending order. -lut_string lookup-table-string Specify the complete lookup table as a single string. The semicolon character ";" is used to separate lines. -continuous The lookup table is continuous (see description above): Input values are treated as continuous (real) values and are rescaled to the range zero to one before being looked up; interpolation is done between values in the table. This is the default behaviour. -discrete The lookup table is discrete (see description above): Input values are treated as integers and no interpolation is done between input values. -null_value null-value-string Specify a null value to be used with discrete lookup tables when a value is not found in the lookup table. This value must be speci- fied as a comma-separated list of values, with the same number of values as output columns in the lookup table. Generic options for all commands: -help Print summary of command-line options and exit. -version Print the program's version number and exit. EXAMPLES
To get hot-metal RGB images from an MRI file: minclookup -hotmetal input.mnc output.mnc To convert the labels in a minc label file, use -discrete: minclookup -discrete -lookup_table lookupfile in_labels.mnc out_labels.mnc where lookupfile is a file containing entries to map label 2 to 4 and label 3 to 5: 2 4 3 5 You could also specify this lookup table on the command line: minclookup -discrete -lut_string '2 4;3 5' in_labels.mnc out_labels.mnc To get a grey RGB file, with red for values less than the minimum and green for values greater than the minimum, you can give two zero entries and two one entries. The first zero is used for negative values, the second zero is used for interpolation to the next entry. There is no ambiguity about how to handle a value of exactly zero because the first and last values of the table are handled in a special way to make sure that they are treated as within range if this sort of two-entry situation occurs. minclookup -lookup_table - input.mnc output.mnc <<EOF 0 1 0 0 0 0 0 0 1 1 1 1 1 0 1 0 EOF To invert a scalar image, you could use minclookup: minclookup -lut_string '0 1;1 0' in.mnc out.mnc AUTHOR
Peter Neelin COPYRIGHTS
Copyright (C) 1995 by Peter Neelin $Date: 2004-05-20 21:52:08 $ MINCLOOKUP(1)
All times are GMT -4. The time now is 07:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy