This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datetime_local | mare | |
---|---|---|
2023-10-31 21:00:00 | 0.27 | |
2023-10-31 21:05:00 | 0.259 | |
2023-10-31 21:10:00 | 0.249 | |
2023-10-31 21:15:00 | 0.24 | |
2023-10-31 21:20:00 | 0.231 | |
2023-10-31 21:25:00 | 0.224 | |
2023-10-31 21:30:00 | 0.217 | |
2023-10-31 21:35:00 | 0.211 | |
2023-10-31 21:40:00 | 0.206 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S | |
1 "OFFSHORE" | |
20 19,10" S" | |
40 15,00" W" | |
3 | |
14 2007.55 | |
"Q1" 1 8 1 2.26 115.17 | |
"O1" 1 10 1 8.56 134.83 | |
"K1" 1 17 1 5.66 203.30 | |
"P1" 1 15 1 1.87 198.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coleta = pd.read_excel('../dados/econservation/vale-maranhao/coletas-tmpm-jun23.xlsx') | |
coleta.loc[coleta['Maré ↓'] == 'Baixamar', 'Identificação da Amostra'] += '-BM' | |
coleta.loc[coleta['Maré ↓'] == 'Preamar', 'Identificação da Amostra'] += '-PM' | |
coleta.index = coleta['Data'].astype(str) + ' ' + coleta['Hora'].astype(str) | |
coleta.index = pd.to_datetime(coleta.index) | |
mare = pd.read_csv('11-ponta_da_madeira_tabua_2023_0_2023-01-01_-_2023-12-31_1min.csv', index_col='DateTime', parse_dates=['DateTime']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rotina de conversão de arquivos KML para LDB | |
# Criado por Caio Erick em 23 mai 2023 | |
# Última edição em 23 mai 2023 às 11:59 | |
# | |
# Contato: | |
# contato@caioerick.me | |
# | |
# | |
# função para conversão de graus decimais para UTM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dado = pd.read_csv('...') | |
dado['onda_dp_u'] = np.sin(np.deg2rad(dado_boia['onda_dp']))*-1#*dado_boia['onda_hs'] | |
dado['onda_dp_v'] = np.cos(np.deg2rad(dado_boia['onda_dp']))*-1#*dado_boia['onda_hs'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VENTO U / V | |
# criando um 'vento_dirrad' com a direcao do vento em radiano | |
dado['vento_dirrad'] = dado['vento_dir'] + 180 | |
dado['vento_dirrad'] = np.deg2rad(dado['vento_dirrad']) | |
# decompondo a vento_velocidade em u e v | |
#-------------------------------------------------------------- | |
f = dado.vento_dirrad == 0 | |
dado.loc[f,'vento_dir_u'] = np.cos(dado.vento_dirrad[f]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# criando a matriz e preenchendo ela com NaN | |
mat = np.zeros((50,100)) | |
mat.fill(np.NaN) | |
# vamos preencher a matriz com alguns valores | |
for i in range(mat.shape[0]): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bibliotecas | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# a batimetria precisa ser extraída do site do etopo | |
# https://maps.ngdc.noaa.gov/viewers/wcs-client/ | |
etopo = Dataset('dados/etopo1_bedrock.nc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
from netCDF4 import Dataset | |
import cmocean as cm | |
import numpy as np | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request | |
for i in range(1,2): | |
url_base = 'https://www.site.com/' | |
file = 'arquivo_{0:02d}.nc'.format(i) | |
url = url_base+file | |
print('Baixando {}...'.format(file)) |
NewerOlder