Skip to content

Instantly share code, notes, and snippets.

Created July 30, 2012 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3209637 to your computer and use it in GitHub Desktop.
Save anonymous/3209637 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
$in = open(IN,"< 2GK1A_NGTdeleted_fluctuationsplot.dat");
while (<IN>){
@line=split;
if($line[0]< 75){
$res=$line[0]+22;
}
if($line[0]> 74){
$res=$line[0]+22+14;
}
if($line[1]< 0.1){
print "color blue, resi $res\n";
}
elsif($line[1]< 0.5 && $line[1]>= 0.1){
print "color green, resi $res\n";
}
elsif($line[1]< 1 && $line[1]>= 0.5){
print "color yellow, resi $res\n";
}
elsif($line[1]< 2 && $line[1]>= 1){
print "color orange, resi $res\n";
}
elsif($line[1]=> 2){
print "color red, resi $res\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment