09-15-2009
Thanks ryandegreat25.....i had a look at the manual and I will search it again
I think i can make it easier by using all coordinates in one file......by appending one set to the end of the other.......in that case......i will have 8 lines and I can calculate distance between coordinates given in columns 3,4 and 5 from line 1 with that of the same columns of lines 5,6,7 and 8 and print them accordingly......i am still trying to figure out how to do it
any suggestions.....???????????
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
2. Shell Programming and Scripting
Hello,
I am a beginner with perl. I have a perl program to calculate the distance between 5 atoms or more.
i have an array which looks like this:
6.324 32.707 50.379
5.197 32.618 46.826
4.020 36.132 46.259
7.131 38.210 45.919
6.719 38.935 42.270
2.986 39.221 ... (1 Reply)
Discussion started by: annie_singh
1 Replies
3. Shell Programming and Scripting
I have a large numbers of files containing data that look like this:
(ID31:0.01682,(ID-123:0.00000,(ID_24:0.00000,ID&890:0.00000):0.00000):0.00000,ID12876:0.00000);
(ID_24:-0.00052,(ID31:0.01697,(ID-123:-0.00059,ID&890:0.03528):0.00037):0.00027,ID12876:0.03484);
I need to find ":" anywhere... (6 Replies)
Discussion started by: Xterra
6 Replies
4. Shell Programming and Scripting
Hi everyone,
Please help on this:
I have file1:
<file title="Title 1 and 2">
<report>
<title>Title 1</title>
<number>No. 1234</number>
<address>Address 1</address>
<date>October 07, 2009</date>
<description>Some text</description>
</report>
... (6 Replies)
Discussion started by: Ophiuchus
6 Replies
5. Shell Programming and Scripting
Hello to all,
I am very new in the shell scripting and I need help. I have data for several individuals in several rows followed by a tag and by 5 values per row, with the name of the individual in the first column, e.g.:
IND1 H1 12 13 12 15 14
IND2 H2 12 12 15 14 14
IND3 H1 12 15... (2 Replies)
Discussion started by: Bemar
2 Replies
6. Shell Programming and Scripting
I am wanting to search a directory tree and return files that are older than a specified datetime. So far straight forward with find, now I want to sort in date order and format the output.
So far I have this, but is not working and there is a problem with "." in the file and/or path names.
... (2 Replies)
Discussion started by: larry2311
2 Replies
7. Shell Programming and Scripting
I have to remove sequences from a file based on the distance value. I am attaching the file containing the distances (Distance.xls)
The second file looks something like this:
Sequences.txt
>Sample1 Freq 59
ggatatgatgatgaactggt
>Sample1 Freq 54
ggatatgatgttgaactggt
>Sample1 Freq 44... (2 Replies)
Discussion started by: Xterra
2 Replies
8. Shell Programming and Scripting
Dear All,
I have 2 files. If field 1, 2, 4 and 5 matches in both file1 and file2, I want to print the whole line of file1 and file2 one after another in my output file.
File1:
sc2/80 20 . A T 86 F=5;U=4
sc2/60 55 . G T ... (1 Reply)
Discussion started by: NamS
1 Replies
9. Shell Programming and Scripting
---------- Post updated at 11:48 AM ---------- Previous update was at 11:46 AM ----------
Hello all
I have an awk code that successfully creates separate text files based on the first six letters of the second field. What it doesn't do is preserve the header into each resulting file.
... (6 Replies)
Discussion started by: colecandoo
6 Replies
sua2(1) General Commands Manual sua2(1)
Name
sua2 - Find USNO-A2.0 Catalog stars in a square on the sky
Synopsis
sua2 [options] ra dec system
Description
suac finds all of the U.S. Naval Observatory A2.0 Catalog objects in a specified region of the sky and lists their sky positions and magni-
tudes in order of brightness. Output is to standard out, unless the -w flag is set, in which case it goes to objectname.uac or search.uac.
It is a link to scat.
Options
-a list single closest catalog source -b Output B1950 (FK4) coordinates -d Sort by distance from center instead of flux -e Output ecliptic
coordinates -f Output search center for other programs -g Output galactic coordinates -h Print heading, else do not -i Print catalog object
name, not catalog number (=ua2_region_number) -j Output J2000 (FK5) coordinates -l Print center and closest star on one line -m [<bright
magnitude>] <faint magnitude> Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) -n <num> Number of brightest
stars to print -o <name> Object name used to name output file -p Sort by distance from search center instead of brightness -q <years>
Equinox of output positions in years -r <radius> Search box half-width in arcsec or dd:mm:ss If negative, this is a radius; if two numbers,
first is in right ascension, second is in declination. (default is 10, that is a 20x20 arcsec box) -s Sort by right ascension instead of
flux -t Tab table output -u <num> Print X Y instead of number in front of non-tab entry -v Verbose listing of processing intermediate
results -w Write tab table output file imagename.uac -y Epoch of output positions in years
See Also
scat(1), susac(1), imuac(1), sgsc(1)
Author
Doug Mink, SAO (dmink@cfa.harvard.edu)
19 November 1999 WCS sua2(1)