Skip to content

Instantly share code, notes, and snippets.

@wxguy
wxguy / taylorDiagram.py
Created Sep 19, 2021 — forked from ycopin/taylorDiagram.py
Taylor diagram for python/matplotlib.
View taylorDiagram.py
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""
@wxguy
wxguy / metutils.py
Created Jun 4, 2020 — forked from VincentLoy/metutils.py
some weather utilities functions
View metutils.py
#!/usr/bin/env python
"""
Tropical Cyclone Risk Model (TCRM) - Version 1.0 (beta release)
Copyright (C) 2011 Geoscience Australia
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@wxguy
wxguy / wgrib2_auto_compile_script.sh
Last active Mar 24, 2021
A small bash script to compile wgrib2 from source on Ubuntu OS...
View wgrib2_auto_compile_script.sh
#!/bin/bash
# License for this script is GNU 2
# A small bash script to download, compile and install latest wgrib2 from source.
# I have written this script so that I can automate the proceedure whenever I change Linux OS
# Make it executable before running the script using'chmod +x ./wgrib2_auto_compile_script.sh'
# Ensure to run the script with sudo (sudo ./wgrib2_auto_compile_script.sh) or under root environment
@wxguy
wxguy / centos-pygrib
Created Aug 5, 2017
Installing pygrib on Cent OS 7/ Redhat 7
View centos-pygrib
Cent OS does not ship with pygrib module by default. The only way to install is to run from source or using distributions such as
conda. I succeed installing pygrib using pip and here is the documentation for future reference.
# Install all required libraries.
sudo yum install grib_api-* *jasper* libpng *zlib* *gfortran* libpng-* python-pip pyproj jpeg python-grib_api
# Install pygrin using pip
sudo pip install pygrib
Please remember that if you get some xxxxxx.h is missing error, then you have install xxxxxx-devel package.
@wxguy
wxguy / perfect-desktop-debian-9.txt
Last active May 25, 2019
My perfect desktop - Debian 9 (Streach)
View perfect-desktop-debian-9.txt
My perfect desktop - Debian 9 (Streach)
#######################################
Installation image:
-------------------
Download non-free version of debian ISO file from below link. Don't download version 9.0.0 as it contain bug which won't allow you to install on a disk. I choose to download LXDE desktop as it consumens less memory, responsive and perfectly OK for me.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/
Enable sudo and root user account and password:
-----------------------------------------------