<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_1_1417913795578_22177" dir="ltr">Alternativamente, direto do site do desenvolvedor (para acompanhar atualizações): <a href="http://cirrus.ucsd.edu/~pierce/ncdf/" id="yui_3_16_0_1_1417913795578_22212">http://cirrus.ucsd.edu/~pierce/ncdf/</a></div><div id="yui_3_16_0_1_1417913795578_22177"> </div><div></div><div id="yui_3_16_0_1_1417913795578_22178"> </div><div id="yui_3_16_0_1_1417913795578_22180"><div id="yui_3_16_0_1_1417913795578_22179">Saudações,<br>--<br>Thiago V. dos Santos<br>PhD student<br>Land and Atmospheric Science<br>University of Minnesota<br>http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm<br>Phone: (612) 323 9898</div></div> <div class="qtdSeparateBR" id="yui_3_16_0_1_1417913795578_22244"><br><br></div><div class="yahoo_quoted" style="display: block;" id="yui_3_16_0_1_1417913795578_22202"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;" id="yui_3_16_0_1_1417913795578_22201"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1417913795578_22200"> <div dir="ltr" id="yui_3_16_0_1_1417913795578_22243"> <font size="2" face="Arial" id="yui_3_16_0_1_1417913795578_22242"> On Saturday, December 6, 2014 6:58 PM, Humberto <hhazin@gmail.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container" id="yui_3_16_0_1_1417913795578_22199"><div id="yiv1109500113"><div id="yui_3_16_0_1_1417913795578_22207"><div id="yui_3_16_0_1_1417913795578_22241">Olá Mauro, </div><div id="yui_3_16_0_1_1417913795578_22240">Tente baixar por este link</div><div id="yui_3_16_0_1_1417913795578_22230"><br clear="none"></div><div id="yui_3_16_0_1_1417913795578_22232"><a rel="nofollow" shape="rect" target="_blank" href="https://www.dropbox.com/s/o8v4m4b4uce4djj/ncdf4_1.12.zip?dl=0" id="yui_3_16_0_1_1417913795578_22231">https://www.dropbox.com/s/o8v4m4b4uce4djj/ncdf4_1.12.zip?dl=0</a></div><div id="yui_3_16_0_1_1417913795578_22209"><br clear="none"></div><div id="yui_3_16_0_1_1417913795578_22208"><br clear="none"><br clear="none">Enviado do meu iPhone</div><div id="yui_3_16_0_1_1417913795578_22206"><br clear="none">Em 06/12/2014, às 21:50, Mauro Sznelwar <<a rel="nofollow" shape="rect" ymailto="mailto:sznelwar@uol.com.br" target="_blank" href="mailto:sznelwar@uol.com.br" id="yui_3_16_0_1_1417913795578_22239">sznelwar@uol.com.br</a>> escreveu:<br clear="none"><br clear="none"></div><div class="yiv1109500113yqt8489696549" id="yiv1109500113yqt14328"><blockquote type="cite"><div>
</div></blockquote></div></div><div class="yiv1109500113yqt8489696549" id="yiv1109500113yqt25472"><style>
#yiv1109500113 #yiv1109500113 --
_filtered #yiv1109500113 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
_filtered #yiv1109500113 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
_filtered #yiv1109500113 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv1109500113
#yiv1109500113 p.yiv1109500113MsoNormal, #yiv1109500113 li.yiv1109500113MsoNormal, #yiv1109500113 div.yiv1109500113MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv1109500113 a:link, #yiv1109500113 span.yiv1109500113MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv1109500113 a:visited, #yiv1109500113 span.yiv1109500113MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv1109500113 p.yiv1109500113msonormal, #yiv1109500113 li.yiv1109500113msonormal, #yiv1109500113 div.yiv1109500113msonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
#yiv1109500113 p.yiv1109500113msochpdefault, #yiv1109500113 li.yiv1109500113msochpdefault, #yiv1109500113 div.yiv1109500113msochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
#yiv1109500113 span.yiv1109500113msohyperlink
{}
#yiv1109500113 span.yiv1109500113msohyperlinkfollowed
{}
#yiv1109500113 span.yiv1109500113estilodeemail17
{}
#yiv1109500113 p.yiv1109500113msonormal1, #yiv1109500113 li.yiv1109500113msonormal1, #yiv1109500113 div.yiv1109500113msonormal1
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;}
#yiv1109500113 span.yiv1109500113msohyperlink1
{color:#0563C1;text-decoration:underline;}
#yiv1109500113 span.yiv1109500113msohyperlinkfollowed1
{color:#954F72;text-decoration:underline;}
#yiv1109500113 span.yiv1109500113estilodeemail171
{color:windowtext;}
#yiv1109500113 p.yiv1109500113msochpdefault1, #yiv1109500113 li.yiv1109500113msochpdefault1, #yiv1109500113 div.yiv1109500113msochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
#yiv1109500113 span.yiv1109500113EstiloDeEmail27
{color:#1F497D;}
#yiv1109500113 .yiv1109500113MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv1109500113 {margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#yiv1109500113 div.yiv1109500113Section1
{}
#yiv1109500113
</style></div><div id="yui_3_16_0_1_1417913795578_22198"><div class="yiv1109500113yqt8489696549" id="yiv1109500113yqt26841"><div class="yiv1109500113Section1" id="yui_3_16_0_1_1417913795578_22197">
<div class="yiv1109500113MsoNormal" id="yui_3_16_0_1_1417913795578_22234"><span style="" id="yui_3_16_0_1_1417913795578_23772">Como
eu baixo este pacote </span><span style="" id="yui_3_16_0_1_1417913795578_22233">ncdf4, quando eu tento baixá-lo diz que não está disponível na
versão R 3.1</span><span style=""></span></div>
<div id="yui_3_16_0_1_1417913795578_22196">
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59630">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23773"><span style="font-size:9.0pt;"> </span></div>
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23774"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23775"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23776"><span style="font-size:9.0pt;">Humberto,</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59630">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23018"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59630">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23777"><span style="font-size:9.0pt;" id="yui_3_16_0_1_1417913795578_23778">Obrigado pelo exemplo
completamente reprodutível.</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59631">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_23779"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59632">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_22195"><span style="font-size:9.0pt;" id="yui_3_16_0_1_1417913795578_22203">O pacote ncdf não é mais
atualizado pelo David Pierce e muito em breve o seu codigo pode nao mais
funcionar. Use o ncdf4, que é mantido e regularmente atualizado. Ao fazer isso
você terá de reformular o código, por exemplo 'open.ncdf' vira 'nc_open', mas
dessa forma você garante que o seu codigo continue funcionando pelos próximos
anos.</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59632">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">A solucao ideal para o seu
problema seria usar a funcao 'rotate' do pacote raster mas isso não é possível
porque a grade do seu arquivo não é regular. Dessa forma a minha sugestão para
reprojetar a longitude 'na marra' é:</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59632">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59632">
<div class="yiv1109500113MsoNormal" style="background:white;" id="yui_3_16_0_1_1417913795578_22205"><span style="font-size:9.0pt;" id="yui_3_16_0_1_1417913795578_22204">new_lon = ((lon + 180) %%
360) - 180</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60380">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">A diferença de 0.5 grau entre
o que eu recomendo e o que você espera se deve à implementação de cada
software: em alguns a coordenada é do canto da grade, enquanto em outros a
coordenada é do centro da grade. Ajuste o resultado conforme a sua necessidade
(i.e. new_lon <- new_lon + 0.5).</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">Por último, note também que o
seu vetor de datas está incorreto porque está sendo criado de uma origem
diferente da origem embebida no netcdf (ano 1900 ao invés de 1800). Uma solucao
que resgata os valores de data diretamente do arquivo é a seguinte (note que as
funções já são do ncdf4):</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"># get time dimension</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">t <-
ncvar_get(nc,"time")</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tunits <-
ncatt_get(nc,"time","units")</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"># show "real" times</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tustr <-
strsplit(tunits$value, " ") </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tdstr <-
strsplit(unlist(tustr)[3], "-")</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tmonth <-
as.integer(unlist(tdstr)[2])</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tday <- as.integer(unlist(tdstr)[3])</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">tyear <-
as.integer(unlist(tdstr)[1])</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_60379">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">ndate <- as.Date(chron(t,
out.format='year-month-day', origin=c(tmonth, tday, tyear)))</span></div>
</div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59896">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59896">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">O vetor ndate serve para
visualização das datas em um formato "humano", mas se você vai
recriar o arquivo, provavelmente você montará a dimensao de tempo usando o
vetor "t".</span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59896">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59898">
<div id="yiv1109500113yui_3_16_0_1_1417745344934_59897">
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:9.0pt;">Saudações,<br clear="none">
--<br clear="none">
Thiago V. dos Santos<br clear="none">
PhD student<br clear="none">
Land and Atmospheric Science<br clear="none">
University of Minnesota<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm">http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm</a><br clear="none">
Phone: (612) 323 9898</span></div>
</div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:9.0pt;"> </span></div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="font-size:10.0pt;">On Thursday, December 4, 2014
8:56 PM, Humberto <<a rel="nofollow" shape="rect" ymailto="mailto:hghazin@hotmail.com" target="_blank" href="mailto:hghazin@hotmail.com">hghazin@hotmail.com</a>> wrote:</span><span style=""></span></div>
</div>
<div class="yiv1109500113MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style=""> </span></div>
<div>
<div id="yiv1109500113">
<div>
<div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Boa noite pessoal,</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Estou extraindo de um arquivo ncdf os valores de latitude (lat)
longitude( lon) e temperatura da superfície da agua do mar( SST),
entretanto a longitude (lon) ela está na projeção 0 a 360 graus. Minha pergunta
é como faço para converter ela para -180 a 180 graus? Segue o script que estou
utilizando juntamente com o link dos dados.</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Desde já agradeço a ajuda </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Humberto </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<table class="yiv1109500113MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="450" style="width:337.5pt;border-collapse:collapse;"><tbody><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div>
<div class="yiv1109500113MsoNormal"><span style="color:black;">
lon</span></div>
</div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div>
<div class="yiv1109500113MsoNormal"><span style="color:black;">
lat</span></div>
</div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div>
<div class="yiv1109500113MsoNormal"><span style="color:black;"> data</span></div>
</div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div>
<div class="yiv1109500113MsoNormal"><span style="color:black;">
sst</span></div>
</div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;"></td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div>
<div class="yiv1109500113MsoNormal"><span style="font-size:10.0pt;">
Lon como deveria ser</span></div>
</div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">299.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.85</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-60.000</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">300.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.96</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-59.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">301.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">28.02</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-58.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">302.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">28.02</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-57.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">303.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.97</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-56.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">304.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.84</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-55.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">305.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.81</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-54.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">306.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.78</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-53.500</span></div>
</td></tr><tr style="height:15.0pt;"><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">307.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">10.5</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="77" style="width:58.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">11/30/1981</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">27.75</span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="64" style="width:48.0pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;"> </span></div>
</td><td colspan="1" nowrap="" rowspan="1" valign="bottom" width="117" style="width:87.5pt;padding:0cm 3.5pt 0cm 3.5pt;height:15.0pt;">
<div align="right" class="yiv1109500113MsoNormal" style="text-align:right;"><span style="color:black;">-52.500</span></div>
</td></tr></tbody></table>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Link para acesso dos dados <a rel="nofollow" shape="rect" target="_blank" href="https://www.dropbox.com/s/xnab2g365mduykx/SST_81_14.nc?dl=0">https://www.dropbox.com/s/xnab2g365mduykx/SST_81_14.nc?dl=0</a></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">Script:</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">require(ncdf) #'ncdf' versao 1.6.6</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">require(reshape)</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">require(chron)</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">###sst</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">nc <- open.ncdf("SST_81_14.nc")</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">nc</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">lat <- get.var.ncdf(nc,
"lat")</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">lon <- get.var.ncdf(nc,
"lon")</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">tunits <-
att.get.ncdf(nc,"time","units")</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""># print tunits</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">tunits$value</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""># criar tempo "real" Times</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">time<-
get.var.ncdf(nc,"time")</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">Time<-chron(time,origin=c(month=1,
day=1, year=1900))</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">## array da variavel sst</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">wm <- get.var.ncdf(nc, "sst")</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">str(wm)</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">## atribuindo dimnames conforme lon, lat e tempo</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">dimnames(wm)[[1]] <- as.character(lon)</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">dimnames(wm)[[2]] <- as.character(lat)</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span lang="EN-US" style="">dimnames(wm)[[3]] <-
as.character(Time)</span><span style=""></span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">str(wm)</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style=""> </span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">## melt para reestruturação dos dados</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">mwm <- melt(wm)</span></div>
</div>
<div>
<div class="yiv1109500113MsoNormal" style="background:white;"><span style="">head(mwm)</span></div>
</div>
</div>
</div>
</div>
<div class="yiv1109500113MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style=""><br clear="none">
<br clear="none">
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="none"><br clear="none">
<hr style="border:none;color:#909090;background-color:#B0B0B0;height:1px;width:99%;">
<table style="border-collapse:collapse;border:none;"><tbody><tr><td colspan="1" rowspan="1" style="border:none;padding:0px 15px 0px 8px;">
<a rel="nofollow" shape="rect" target="_blank" href="http://www.avast.com/">
<img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png" data-id="1f586726-a823-8705-bac6-d4ab35de366a">
</a>
</td><td colspan="1" rowspan="1">
<div style="color:#3d4d5a;">
Este email foi escaneado pelo Avast antivírus.
<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.avast.com/">www.avast.com</a>
</div>
</td></tr></tbody></table></div>
<br clear="none">
<blockquote type="cite"><div><span>_______________________________________________</span><br clear="none"><span>R-br mailing list</span><br clear="none"><span><a rel="nofollow" shape="rect" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a></span><br clear="none"><span><a rel="nofollow" shape="rect" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a></span><br clear="none"><span>Leia o guia de postagem (<a rel="nofollow" shape="rect" target="_blank" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.</span></div></blockquote></div></div><br><br></div> </div> </div> </div> </div></body></html>