Hi All,
I have a file which has data in following format:
"Body_Model","2/1/2007","2/1/2007"
"CSCH74","0","61"
"CSCS74","0","647"
"CSCX74","0","3"
"CSYH74","0","299"
"CSYS74","0","2514"
"CSYX74","0","3"
"Body_Model","3/1/2007","3/1/2007"
"CSCH74","0","88"
"CSCS74","0","489"... (3 Replies)
I have the below file ...where some of the column values should replaced with desired values ....below file u can find that 3 column where ever 'AAA' comes should replaced with ' CC '
NOTE : we have to pass the column number ,AAA,CC (modified value) as the parameters to the code.
... (6 Replies)
Dear Guyz:)
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Hello,
I have 2 columns (1st column has multiple entries but the corresponding values in the column 2 may be the same or different.) however I want to extract unique values for each entry in column 1 by assigning the max value from column 2
SDF4 -0.211654
SDF4 0.978068
... (1 Reply)
Hello all. I am a beginner UNIX user who is using UNIX to work on a bioinformatics project for my university.
I have a bit of a complicated issue in trying to use sed (or awk) to "find and replace" bases (letters) in a genetics data spreadsheet (converted to a text file, can be either... (3 Replies)
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
I have one file as it has the following format
File1
S No Site IP Address
1 Australia 192.168.0.1/26
2 Australia 192.168.0.2/26
3 Australia 192.168.0.3/26
I need awk/sed command to replace the column2 value ( under Site) with some other... (8 Replies)
I'm trying to make an awk script to compare values I've set as var1, var2, and var3 earlier in the script to the values in the userinputted column of four text files called Node1.txt, Node2.txt, Node3.txt, and Node4.txt and then replace the values in that userinputted column with either ttt or gcc,... (8 Replies)
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (12 Replies)
Please help me to get required output for both scenario 1 and scenario 2 and need separate code for both scenario 1 and scenario 2
Scenario 1
i need to do below changes only when column1 is CR and column3 has duplicates rows/values. This inputfile can contain 100 of this duplicated rows of... (1 Reply)
Discussion started by: as7951
1 Replies
LEARN ABOUT DEBIAN
geo::surface
Geo::Surface(3pm) User Contributed Perl Documentation Geo::Surface(3pm)NAME
Geo::Surface - A surface description.
INHERITANCE
Geo::Surface
is a Geo::Shape
SYNOPSIS
my $island = Geo::Surface->new($outer, $lake1, $lake2);
DESCRIPTION
In this context, a "surface" is defined as one filled area with possible enclosures in one projection system.
METHODS
Constructors
Geo::Surface->new((SURFACE|(OUTER,INNER,...)), [OPTIONS])
When called as instance method, some defaults are copied from the object where the call is made upon.
You may either provide a Math::Polygon::Surface SURFACE, or a LIST of lines. In the latter case, the first line is the OUTER polygon
of the surface, and the other are all INNER enclosures: lakes. Lines are and Geo::Line, Math::Polygon objects, or ARRAY of points.
If no projection is specified, then the projection of the first Geo-encoded line will be used.
Option--Defined in--Default
proj Geo::Shape see Geo::Proj::defaultProjection()
. proj => LABEL
Attributes
$obj->geoInner
Returns a LIST of enclosed polygons, converted to Geo::Line objects.
$obj->geoOuter
Returns the outer polygon as Geo::Line object.
$obj->inner
Returns a LIST of enclosed Math::Polygon objects.
$obj->outer
Returns the outer Math::Polygon.
$obj->proj
See "Attributes" in Geo::Shape
$obj->proj4
See "Attributes" in Geo::Shape
Projections
$obj->in(LABEL|'utm')
See "Projections" in Geo::Shape
$obj->projectOn(NICK, POINTS)
See "Projections" in Geo::Shape
Geometry
$obj->area
Returns the area enclosed by the outer polygon, minus the erea of the enclosures. Only useful when the points are in some orthogonal
projection.
$obj->bbox
The bounding box of outer surface polygon.
$obj->bboxCenter
See "Geometry" in Geo::Shape
$obj->bboxRing([XMIN, YMIN, XMAX, YMAX, [PROJ]])
Geo::Surface->bboxRing([XMIN, YMIN, XMAX, YMAX, [PROJ]])
See "Geometry" in Geo::Shape
$obj->distance(OBJECT, [UNIT])
See "Geometry" in Geo::Shape
$obj->perimeter
The length of the outer polygon. Only useful in a orthogonal coordinate systems.
Display
$obj->deg2dm(DEGREES, POS, NEG)
Geo::Surface->deg2dm(DEGREES, POS, NEG)
See "Display" in Geo::Shape
$obj->deg2dms(DEGREES, POS, NEG)
Geo::Surface->deg2dms(DEGREES, POS, NEG)
See "Display" in Geo::Shape
$obj->dms2deg(DMS)
Geo::Surface->dms2deg(DMS)
See "Display" in Geo::Shape
$obj->toString([PROJECTION])
Returns a string representation of the line, which is also used for stringification.
DIAGNOSTICS
Warning: Geo::Line is should be filled
When Geo::Line objects are used to compose a surface, each of them must be filled. Representation of rivers and such do not belong in
a surface description.
Error: distance calculation not implemented between a $kind and a $kind
Only a subset of all objects can be used in the distance calculation. The limitation is purely caused by lack of time to implement
this.
Error: in() not implemented for a $class
Error: not known what to do with $component
SEE ALSO
This module is part of Geo-Point distribution version 0.93, built on May 19, 2010. Website: http://perl.overmeer.net/geo/ All modules in
this suite: "Geo::Point", "Geo::Proj4", "Geo::WKT", "Math::Polygon", "Geo::GML", "Geo::ISO19139", "Geo::EOP", "Geo::Format::Envisat", and
"Geo::Format::Landsat".
Please post questions or ideas to the mailinglist at http://geo-perl@list.hut.fi
LICENSE
Copyrights 2005-2010 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.14.2 2010-05-19 Geo::Surface(3pm)