File:North killeak lake alaska pollen diagram.svg
Original file (SVG file, nominally 1,398 × 620 pixels, file size: 112 KB)
Captions
Summary[edit]
DescriptionNorth killeak lake alaska pollen diagram.svg |
English: North Killeak Lake pollen diagram, Seward Peninsula, Alaska, near Kotzebue. |
Date | |
Source | Own work |
Author | Merikanto |
Tata for this plotting is from Neotoma database, site
NKILLEAK_NK-3, North Killeak Lake. Longitude -164,054 Latitude 66,36669.
Original source of data is North american pollen database.
PIs: Anderson, Patricia M.
Anderson, P.M. 1995. Pollen Results from North Killeak Lake: A Final Report to the National Park Service. NPS Alaska Regional Office, Anchorage, Alaska, USA.
PIs: Anderson, Patricia M.
Anderson, P.M. 1995. Pollen Results from North Killeak Lake: A Final Report to the National Park Service. NPS Alaska Regional Office, Anchorage, Alaska, USA.
Age;Spike;Betula;Alnus;Cyperaceae;Pediastrum;Poaceae;Salix;Sphagnum;Picea;Artemisia;Equisetum;Populus undiff.;Ericaceae;Polypodiaceae undiff.;Athyrium;Others
244;297;230;212;125;122;110;76;49;33;27;25;18;17;16;11;23
451;163;88;74;71;1;47;13;17;15;8;5;0;10;5;0;17
886;200;91;81;72;4;41;15;12;10;5;0;0;5;5;0;12
1321;213;80;93;64;3;32;6;28;9;5;1;0;8;2;0;8
1735;158;53;185;59;1;19;5;21;15;7;4;0;6;2;0;15
2150;245;47;131;84;0;29;3;14;18;3;1;0;5;0;1;14
2584;216;58;155;66;0;30;7;24;33;7;4;0;5;2;0;15
2999;186;78;157;68;1;30;4;14;8;11;2;0;8;6;0;7
3392;120;78;138;44;0;48;10;25;9;4;4;0;7;2;0;11
3686;139;76;159;47;0;15;7;20;5;7;2;0;4;1;0;10
3818;151;70;128;53;1;25;1;7;9;9;4;0;11;0;0;5
3944;121;91;130;45;0;39;7;18;6;6;3;0;8;2;0;15
4083;93;61;164;48;0;27;3;18;4;4;3;0;1;0;0;18
4208;89;60;181;60;1;23;5;20;12;5;1;0;2;0;0;10
4341;297;81;158;47;1;14;1;27;8;6;1;0;3;3;0;9
4671;111;85;155;43;0;30;7;22;6;5;0;1;6;7;0;11
4737;99;69;184;49;2;27;0;19;4;1;3;0;8;5;1;13
4876;127;62;173;32;0;26;3;14;6;5;2;0;5;1;0;11
5022;133;64;139;65;0;24;2;14;4;5;2;0;6;1;0;8
5161;150;65;180;34;1;27;5;11;5;11;3;0;2;4;0;13
5227;98;57;183;22;1;19;3;18;5;3;2;0;5;1;0;7
5385;76;77;194;31;0;28;4;17;0;3;1;0;7;2;0;6
5504;82;54;212;35;0;21;6;15;3;6;0;0;6;5;0;7
5637;118;64;183;36;0;11;6;13;7;2;0;0;2;4;0;18
5762;101;71;192;42;4;24;9;17;2;11;4;0;11;1;0;10
5987;142;60;192;57;7;18;4;10;6;5;0;2;1;1;0;6
6133;135;67;155;48;1;34;5;26;3;1;1;0;2;3;0;7
6278;176;80;178;42;1;26;8;22;1;4;1;0;13;4;0;10
6397;69;86;154;39;0;25;8;32;3;4;6;2;5;4;0;10
6529;52;59;204;31;1;11;7;15;2;3;2;0;3;3;0;14
6662;126;71;190;33;36;23;8;16;1;5;0;0;3;6;0;7
6794;80;76;193;29;88;21;6;16;0;2;1;0;2;1;0;5
6963;102;63;208;53;122;28;4;17;0;2;4;1;2;1;0;13
7189;106;79;167;50;44;21;5;17;2;6;3;0;3;2;0;10
7580;91;86;134;42;41;27;13;16;1;2;6;0;4;6;0;14
7776;103;84;144;75;46;23;8;19;0;5;6;0;1;5;0;23
7992;119;98;62;71;15;43;25;32;0;8;7;0;17;3;0;9
8197;135;132;48;72;17;44;9;24;3;6;1;0;8;3;3;12
8424;145;142;11;83;79;42;6;39;1;10;6;0;12;8;0;8
8743;139;174;12;61;67;23;14;24;2;6;5;2;5;9;1;20
8949;137;188;16;48;65;28;15;24;2;5;10;0;2;9;1;15
9134;160;193;15;41;61;30;13;31;2;7;11;7;7;7;0;17
9339;127;206;9;57;20;31;27;35;2;2;6;1;4;14;1;24
9545;122;195;11;29;19;36;20;27;1;7;9;3;4;16;0;21
9730;93;193;10;36;28;48;14;29;1;5;10;0;8;6;2;23
9936;106;138;18;53;19;46;24;23;2;8;12;15;2;16;1;29
10163;114;183;12;40;18;33;21;31;2;11;15;3;7;13;2;25
10368;154;186;12;29;13;42;21;49;2;14;23;5;5;16;11;18
10574;142;192;8;38;32;40;26;36;0;16;25;5;4;11;2;10
10780;56;213;11;15;41;26;21;38;0;8;18;8;4;16;2;22
10986;54;193;17;17;17;44;35;20;0;5;13;18;0;8;2;17
11171;123;154;15;23;4;35;38;34;1;11;12;17;3;2;2;24
11418;90;173;11;27;35;45;48;15;2;12;11;0;2;6;0;27
11623;74;124;3;37;19;109;76;11;1;27;13;0;4;1;0;24
11829;170;170;2;52;7;68;33;16;1;9;8;1;3;6;0;15
12035;98;168;2;63;39;72;10;10;1;5;17;1;8;1;0;9
12302;130;128;1;66;26;74;12;5;0;15;0;5;1;1;0;12
12508;133;149;1;67;25;57;17;4;1;10;1;5;2;1;0;10
12714;244;147;0;75;20;61;10;5;2;14;0;0;5;3;0;17
12951;175;133;0;82;21;61;25;3;0;9;4;2;2;1;0;12
13146;81;174;0;67;13;36;12;5;0;8;3;0;1;1;0;13
13372;113;168;2;100;24;39;25;10;1;6;6;0;2;2;0;11
13558;81;230;1;47;6;26;11;4;1;12;12;0;0;2;0;11
13763;115;189;2;97;5;59;26;18;4;4;6;0;1;2;0;14
13959;96;180;0;96;3;25;20;7;1;7;5;0;1;0;0;14
14051;124;105;4;106;2;71;21;7;1;16;7;0;1;2;0;12
Some scripts to generate data, R and python
require(optimbase);
- require(car);
- R neotoma explorer .csv file to simpler csv
- output is semicolon separated
- alfa wip 0003 2017.2
- sample usage
neotoma_reader<-function(sitename, outfilename)
{
data= read.table(file = sitename, sep=",");
mata=as.matrix(data);
kolu=ncol(mata);
rovu=nrow(mata);
- data 6:s sarake
names0=mata[8:rovu,1];
- print(names0);
ages0=mata[7,6:kolu];
- print(ages0);
ages1=gsub("--/", "", ages0);
ages2=gsub("/--", "", ages1);
- print(ages2);
# names0, ages2
- f8
counts0=mata[8:rovu,6:(kolu)];
counts1=transpose(counts0);
makolu=ncol(counts1);
marovu=nrow(counts1);
counts2=matrix(, nrow=marovu, ncol = makolu)
for (i in 1:nrow(counts1) )
{
for (j in 1:ncol(counts1) )
{
valo=as.numeric(counts1[i,j]);
# print (valo);
if ( is.na(valo) )
{
# counts2[i,j]="0.001";
counts2[i,j]=NA;
}
else {
counts2[i,j]=counts1[i,j];
}
}
}
- print (counts2);
- print (counts2);
ekarivi=c(c("Age BP"), names0);
tokarivi=cbind(ages2, counts2);
kontti=rbind(ekarivi, tokarivi);
- kontti2=as.character(kontti);
write.table(kontti, file = outfilename, sep=";", na="0", quote=FALSE,row.names=FALSE, col.names=FALSE);
}
- neotoma_reader("dataset17345.csv", "killeak_p15.pxt");
args <- commandArgs(trailingOnly = TRUE)
neotoma_reader(args[1], args[2]);
Filter 15
- nilab pollen datafile
- beatifizer test
- select 15 most abundant pollen types
- wip 0005 alfa
- sample usage
- Rscript nilab2.r titaluk2.txt titaluk2_p15.txt
- require("neotoma")
- require("analogue")
to_p15<-function(sitename, outfilename)
{
data= read.table(file = sitename, sep=";");
mata=as.matrix(data);
kolu=ncol(mata);
rovu=nrow(mata);
taxes0=mata[1,];
ages0=mata[,1];
taxes=taxes0[2:length(taxes0)];
ages=ages0[2:length(ages0)];
kounts=mata[2:(rovu), 2:(kolu)];
# print (kounts);
kounts2=as.numeric(kounts);
dim(kounts2) <- c((rovu-1), (kolu-1))
# stop();
# kounts[,1:15]
maksimit=apply(kounts2, 2, max);
indeksit=c(1:(kolu-1));
kols=length(maksimit);
#length(maksimit);
#length(indeksit);
#footeri=rbind( indeksit, maksimit)
footeri=rbind( as.numeric(maksimit), as.numeric(indeksit));
footeri1=rbind( as.numeric(maksimit), as.numeric(indeksit));
#footeri
footeri2=footeri1[, order(footeri1[1,])];
footeri3=footeri2[, ncol(footeri2):1];
jindeksit=footeri3[2, 1:kols ];
# print(jindeksit);
- print(footeri3);
- footeri3
- kounts2
paketti=rbind(footeri, kounts2);
paketti2=paketti[, order(paketti[1,])];
paketti3=paketti2[, ncol(paketti2):1];
# print(paketti3[,3]);
summat0=rowSums(paketti3);
summat=summat0[3:rovu];
- print (sum(paketti3[1,]));
osio0=paketti3[, 1:15];
jaannos0=paketti3[, 16:kols ];
osio=osio0[-2,];
jaannos=jaannos0[-2,];
osiosummat0=rowSums(osio);
osiosummat=osiosummat0[2:rovu];
jaannossummat0=rowSums(jaannos);
jaannossummat=jaannossummat0[2:rovu];
# print (summat);
#print (osiosummat);
- print (jaannossummat);
- print(osio);
- print(osio[,2]);
muut=jaannossummat;
- muut=summat-osiosummat;
- print (muut);
taksb <- vector(mode="character", length=32)
for (i in 1:kols){
indeksi=jindeksit[i];
taksi=taxes[indeksi];
taksj=taksi[1];
- print (taksj);
taksb[i]=taksi;
}
taksc=taksb[1:15];
- print(taksc);
ekarivi=c(c("Age"), taksc,c( "Others"));
- print (ekarivi);
lohko=cbind(ages, osio, muut);
kontti=rbind(ekarivi, lohko);
konttirows=nrow(kontti);
kontti2=kontti[1:konttirows-1, ];
- print (kontti);
write.table(kontti2, file = outfilename, sep=";", quote=FALSE,row.names=FALSE, col.names=FALSE);
}
- to_p15("vaara.txt", "vaara_p15.pxt");
args <- commandArgs(trailingOnly = TRUE)
to_p15(args[1], args[2]);
Plotting
- python pollen diagram draw
- staclead area percentage plot
- test program
- WIP 0005 2017.2
- input ; separated csv
- in ubuntu needs matplotlib numpy tk-inter
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
- pypol 1 python csw pollen percentage drawer
- version wip 0005
- print size
basefontsize=80
xsiz=240
ysiz=60
- time, x axis
alkut=0
lopput=14000
tstep=1000
kaptioni="North Killeak Lake, near Kotzebue, Alaska"
xlaabeli= 'Age BP, Neotoma'
ylaabeli='Pollen percent \n '
- infiili_2="berelekh.csv"
infiili_2='killeak_p15.txt'
colorado=['#00005f',
'#004000',
'#008000',
'#377EB8',
'#F00000',
'#FF7F00',
'#7F7F00',
'#008000',
'#00F000',
'#FFFF00',
'#FFFF80',
'#800000',
'#8000F0',
'#F00000',
'#FF7F00',
'#3f3f3f',
'#008000',
]
- pollen data
indata_2 = np.genfromtxt(infiili_2, delimiter=';', dtype=None)
muoto_2=np.shape(indata_2)
rowis_2=muoto_2[0]
colis_2=muoto_2[1]
data_2=np.zeros((rowis_2, colis_2))
for i in xrange(1,rowis_2):
for j in xrange(0,colis_2):
data_2[i-1][j]=np.float(indata_2[i][j])
rowis_2=rowis_2-1
pdata_2=data_2.transpose()
pdata_2[0][rowis_2]=pdata_2[0][rowis_2-1]
pdata_2[1][rowis_2]=pdata_2[1][rowis_2-1]
takki=[]
plants2=[]
varjy=[]
for i in xrange(1,colis_2):
takki.append(pdata_2[i])
plants2.append(indata_2[0][i])
varjy.append(mpatches.Patch(color=colorado[i-1]) )
- plottingi
fig = plt.figure()
ax2=plt.subplot()
x = pdata_2[0]
y = np.row_stack(( takki) )
percent = y / y.sum(axis=0).astype(float) * 100
ax2.stackplot(x,percent, colors=colorado, edgecolors=['#377EB8'], linewidth=0)
ax2.set_ylim([0, 100])
ax2.set_xlim([alkut, lopput])
- Shrink current axis's height by 10% on the bottom
box = ax2.get_position()
ax2.set_position([box.x0, box.y0, box.width * 0.80, box.height])
ax2.legend( varjy, plants2,loc='center left', bbox_to_anchor=(1.05, 0.5), fontsize=16)
for label in (ax2.get_xticklabels() + ax2.get_yticklabels()):
label.set_fontname('Arial')
label.set_fontsize(15)
ax2.set_xlabel(xlaabeli, fontsize=15)
plt.title(kaptioni, fontsize=18)
ax2.set_ylabel(ylaabeli , color='#004000', fontsize=15)
for tl in ax2.get_yticklabels():
tl.set_color('#004000')
start, end = ax2.get_xlim()
ax2.xaxis.set_ticks(np.arange(start, end, tstep))
ax2.xaxis.set_tick_params(width=4)
ax2.yaxis.set_tick_params(width=4)
plt.gca().invert_xaxis()
plt.show()
plt.draw()
- plt.get_current_fig_manager().window.setGeometry(600,400,1000,800)
plt.get_current_fig_manager().window.showMaximized()
fig.set_size_inches(21, 6)
fig.savefig('out.svg', dpi=80)
Licensing[edit]
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:58, 9 February 2017 | 1,398 × 620 (112 KB) | Merikanto (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 1118pt |
---|---|
Height | 496pt |