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 para extrair os dados de topobatimetria ETOPO via thredds utilizando python | |
# | |
# Criado por Caio Erick Costa | |
# Última atualização em 23/07/2024 às 11h18 (https://gist.github.com/caioerick/140495a383d52a2b69194a83f5ff7733) | |
# Contato: [email protected] ou [email protected] | |
# | |
import xarray as xr | |
import matplotlib.pyplot as plt | |
import utm |
This file has been truncated, but you can view the full file.
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
377343.281250 7777153.250000 0.013140 | |
377430.515625 7777152.375000 0.040775 | |
377525.734375 7777143.625000 -0.011941 | |
377626.593750 7777130.000000 0.005004 | |
377730.890625 7777113.750000 -0.000628 | |
377837.109375 7777096.625000 0.000197 | |
377944.250000 7777079.125000 0.000246 | |
378051.679688 7777061.375000 0.000140 | |
378159.031250 7777043.375000 0.000102 | |
378266.117188 7777025.125000 0.000086 |
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
pip install --force-reinstall typing-extensions==4.5 | |
pip install --force-reinstall openai==1.8 |
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
''' | |
NAME | |
NetCDF Python tools for Deltares Delft3d-FM files | |
PURPOSE | |
To to read and process Deltares Delft3d-FM netCDF files: his.nc and map.nc | |
Plotting using Matplotlib and Basemap. | |
Using pyugrid to read grids from the map.nc files. | |
PROGRAMMER(S) | |
Bogdan Hlevca | |
REVISION HISTORY |
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
╔═══════════════════════════════════════════════════════════════════════╗ | |
║███████████████████████████████████████████████████████████████████████║ | |
║█████████████████████ D e l f t 3 D - P A R T █████████████████████║ | |
║███████████████████████████████████████████████████████████████████████║ | |
║██ D-Particle Tracking Water quality simulation in 2D/3D models ██║ | |
║███████████████████████████████████████████████████████████████████████║ | |
║ Deltares, PART Version 3.80.00.62909M, Jan 12 2019, 22:53:17 ║ | |
║ Deltares, P.O. Box 177, 2600 MH Delft, The Netherlands ║ | |
║ Sales : [email protected] tel: +31 (0)88 335 8188 ║ | |
║ Support options: [email protected] tel: +31 (0)88 335 8100 ║ |
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: | |
# [email protected] | |
# | |
# | |
# 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'] |
NewerOlder