Skip to content

Instantly share code, notes, and snippets.

View jamal919's full-sized avatar
🎯
Focusing

Jamal Uddin Khan jamal919

🎯
Focusing
View GitHub Profile
@jamal919
jamal919 / simple_basemap_example.py
Created September 19, 2018 03:59 — forked from blaylockbk/simple_basemap_example.py
A quick demonstration of creating a basemap and plotting or drawing objects
# Brian Blaylock
# January 5, 2017 It's snowing outside
"""
Simple Basemap examples
Example gallery: http://matplotlib.org/basemap/users/examples.html
Documentation: https://basemaptutorial.readthedocs.io/en/latest/
"""
@jamal919
jamal919 / Gabura.ipynb
Last active December 19, 2018 17:35
Bathymetric and Topographic Field Campaign - GPS Surveys in Gabura
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamal919
jamal919 / FFEWSRainDaily.ncl
Created December 27, 2018 16:44
FFEWS Daily Rainfall Plot using NCL
; wrf_gsmcsn_raindaily.ncl
; wrf_gsmcsn_raindaily plots rainfall map on a 24 hour time period.
; The script implicitly expect that the result is from 00Z, and the
; netxt 24 hour interval is also on 00Z.
; Author: Jamal Uddin Khan
; Email: [email protected]
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
@jamal919
jamal919 / Make.def.thor
Created January 3, 2019 10:51
SCHISM Makefile for Thor Cluster
################################################################################
# Parallel SCHISM Makefile
#
# User makes environment settings for particular OS / PLATFORM / COMPILER / MPI
# below as well as setting flags having to do with included algorithms (e.g. sediment)
# and the compiler configuration (debug, timing).
#
# The environment settings are based on the following options.
#
# Compiler name:
@jamal919
jamal919 / git_commands.md
Created February 5, 2019 17:47
Git Commands

Project

Command Description
git init Initialize a local Git repository
git clone ssh://[email protected]/[username]/[repository-name].git Create a local copy of a remote repository

Basic Commands

| Command | Description |

@jamal919
jamal919 / fc-custom-1.conf
Created February 9, 2019 18:32
telgram fontconfig font fix
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<dir>~/.local/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir prefix="xdg">fonts</dir>
<alias>
@jamal919
jamal919 / .fonts.conf
Created February 9, 2019 18:35
Ubuntu Bangla Font fix
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>cursive</family>
<prefer>
<family>ITC Zapf Chancery Std</family>
<family>Zapfino</family>
<family>Comic Sans MS</family>
</prefer>
@jamal919
jamal919 / HurricaneDistribution.ipynb
Created February 13, 2019 12:48
North Atlantic Hurricane Distribution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamal919
jamal919 / conda.org
Created May 14, 2019 21:29
Python Package Management with Conda
  • $ conda -V
  • $ conda update conda
  • $ conda search “^python$”
  • $ conda create -n <envname> python=x.x anaconda
  • $ conda activate <envname> (old version: source activate <envname>)
  • $ conda info -e
  • $ conda install -n envname [package]
  • $ conda deactivate (old version: source deactivate)
  • $ conda remove -n <envname> -all
@jamal919
jamal919 / install_wrf41.sh
Last active December 5, 2024 15:04
WRF 4.1.2 installation with netCDF4, HDF5 in ubuntu 18.04 LTS
#!/bin/bash
## WRF installation with parallel process.
# Download and install required library and data files for WRF.
# License: LGPL
# Jamal Khan <[email protected]>
# Tested in Ubuntu 18.04 LTS
# basic package managment
sudo apt update
sudo apt upgrade