Issues with downloading the latest GOES file when it arrives at the 00 minute of the next hour #100
Unanswered
Samusuaran
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone
I'm currently using the goes-latest functiongoes2go library to
Specifically, I'm able to download the files for the 00, 10, 20, 30, and 40 minutes of an hour without any problems. However, the file for the 50 minute mark is not downloaded because it arrives at the 00 minute
2024-07-22 12:10:52 296145724 OR_ABI-L2-MCMIPF-M6_G16_s20242041200204_e20242041209524_c20242041210008.nc
2024-07-22 12:20:51 298870300 OR_ABI-L2-MCMIPF-M6_G16_s20242041210204_e20242041219523_c20242041220004.nc
2024-07-22 12:31:01 301744904 OR_ABI-L2-MCMIPF-M6_G16_s20242041220204_e20242041229524_c20242041230003.nc
2024-07-22 12:40:44 304603089 OR_ABI-L2-MCMIPF-M6_G16_s20242041230204_e20242041239524_c20242041240006.nc
2024-07-22 12:50:59 307448442 OR_ABI-L2-MCMIPF-M6_G16_s20242041240204_e20242041249524_c20242041250006.nc
obtained
2024-07-22 13:00:50 310288216 OR_ABI-L2-MCMIPF-M6_G16_s20242041250204_e20242041259524_c20242041300005.nc
Not obtained
my code from goes2go import goes_latest
import matplotlib.pyplot as plt
import cartopy.feature as cfeature
from datetime import datetime
Descargar y leer un dataset de GOES ABI MCMIPF
G = goes_latest(satellite='goes16', product="ABI-L2-MCMIP", domain='F', return_as='xarray')
Crear la figura en ejes de Cartopy
fig, ax = plt.subplots(subplot_kw={'projection': G.rgb.crs})
Ajustar la transparencia de la figura y los ejes
fig.patch.set_alpha(0)
ax.patch.set_alpha(0)
Mostrar la imagen RGB en el mapau
ax.imshow(G.rgb.TrueColor(), **G.rgb.imshow_kwargs)
Añadir las líneas de costa
ax.coastlines(color='white')
Añadir las fronteras de los países
ax.add_feature(cfeature.BORDERS, linestyle='-', color='white')
# Mostrar el gráfico
plt.show()
Obtener la fecha actual en formato año-mes-dia
fecha_actual = datetime.now()
anio = fecha_actual.year
mes = fecha_actual.month
dia = fecha_actual.day
hora = fecha_actual.hour
minutos = fecha_actual.minute
nombre_archivo = f"/home/djsq/Escritorio/RISCloud/public/assets/truecolor/{anio}-{mes}-{dia}-{hora}-{minutos}-truecolor.png"
Guardar el gráfico con fondo transparente y nombre con fecha
fig.savefig(nombre_archivo, transparent=True)
I don't speak English natively, in case there is an error in the post
Beta Was this translation helpful? Give feedback.
All reactions