Skip to content

Instantly share code, notes, and snippets.

View ricardobarroslourenco's full-sized avatar
🇧🇷
2025 Climate Informatics in Brazil!

Ricardo Barros Lourenço ricardobarroslourenco

🇧🇷
2025 Climate Informatics in Brazil!
View GitHub Profile
@ricardobarroslourenco
ricardobarroslourenco / Sea_ice_forecasting_icenet.ipynb
Created August 20, 2024 12:50
Sea_ice_forecasting_icenet.ipynb - MyBinder run (Aug 20, 2024)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardobarroslourenco
ricardobarroslourenco / 99-Xarray_Cartopy_Reproducible_.ipynb
Last active July 14, 2024 16:23
Xarray-Cartopy RGB channels plot reproducible example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(environment_tsrs_v_0_13-cpu) [lourenco@gra796 conda-packs]$ conda list
# packages in environment at /home/lourenco/scratch/conda-packs/environment_tsrs_v_0_13-cpu:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_kmp_llvm conda-forge
_py-xgboost-mutex 2.0 cpu_0 conda-forge
absl-py 1.4.0 pypi_0 pypi
adagio 0.2.4 pyhd8ed1ab_0 conda-forge
affine 2.4.0 pyhd8ed1ab_0 conda-forge
@ricardobarroslourenco
ricardobarroslourenco / XBboost_Xarray_Dask_error.ipynb
Created July 14, 2023 15:49
Error when running XGBoost + Xarray + Dask
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardobarroslourenco
ricardobarroslourenco / office_hours.ipynb
Created March 17, 2023 13:24
Jupyter notebook taken to Xarray Office hours - Mar 17, 2023
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardobarroslourenco
ricardobarroslourenco / slow_notebook.ipynb
Created March 15, 2023 18:06
Very slow notebook, especially when writing down the netcdf file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),