<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Olá pessoal,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>Como resultado da leitura de algumas images de satélite, tenho o seguinte array no R</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;">> dim(ncdata)</div><div
 style="background-color: transparent;">[1]   18   15   16 2555</div><div style="background-color: transparent;">> length(ncdata)</div><div style="background-color: transparent;"><span></span></div><div style="background-color: transparent;">[1] 11037600</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">onde as dimensões representam</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">         18 é a quantidade de longitudes, </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">         15 é a quantidade de latitudes,</div><div style="font-family: 'times new roman',
 'new york', times, serif; font-size: 12pt;">         16 é a quantidade de tipos de vegetação (floresta tropical, cerrado etc),</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">         2555 é a quantidade de datas em que as imagens foram feitas.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Por outro lado, tenho os seguintes arrays:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><div>> length(nclon)</div><div>[1] 18</div><div>> length(nclat)</div><div>[1] 15</div><div>> length(pft)</div><div>[1] 16</div><div>> length(nctime)<br></div><div>[1] 2555</div></div><div style="font-family: 'times new roman', 'new york', times, serif;
 font-size: 12pt;">         </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span style="font-size: 12pt;">E, em suma, o que eu quero fazer é criar um data.frame com a seguinte estrutura:</span><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span style="font-size: 12pt;"><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">nclon1 nclat1 pft1 ncdate1 (primeiro valor do ncdata)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">nclon1 nclat1 pft1 ncddate2 (segundo valor do ncdata)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">.</div><div style="font-family: 'times new roman', 'new york', times, serif;
 font-size: 12pt;">.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">nclon18 nclat15 pft16 nctime2555 (último valor do ncdata)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Como a quantidade de linhas é muito grande, o ideal seria até usar alguma técnica que permita paralelização usando os cores do pc.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Alguém conhece uma maneira (realmente) eficiente de fazer isso?</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size:
 12pt;">Saudações,<br>--<br>Thiago V. dos Santos<br>PhD student<br>Land and Aé qtmospheric Science<br>University of Minnesota<br>http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm<br>Phone: (612) 323 9898</div></div></body></html>