Last active
July 23, 2024 14:20
-
-
Save caioerick/140495a383d52a2b69194a83f5ff7733 to your computer and use it in GitHub Desktop.
Rotina para extrair os dados de topobatimetria ETOPO via thredds utilizando python
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 | |
# Dados com resolução de 30seg | |
etopo30 = xr.open_dataset('https://www.ngdc.noaa.gov/thredds/dodsC/global/ETOPO2022/30s/30s_bed_elev_netcdf/ETOPO_2022_v1_30s_N90W180_bed.nc') | |
etopo30 = etopo30.sel(lon=slice(-40.2,-39.6), lat=slice(-20.2, -19.4)) | |
# Dados com resolução de 60seg | |
etopo60 = xr.open_dataset('https://www.ngdc.noaa.gov/thredds/dodsC/global/ETOPO2022/60s/60s_bed_elev_netcdf/ETOPO_2022_v1_60s_N90W180_bed.nc') | |
etopo60 = etopo60.sel(lon=slice(-40.2,-39.6), lat=slice(-20.2, -19.4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment