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 / outlier_modified_tau.py
Created November 15, 2021 11:46
Outlier detection based on modified tau
# -*- coding: utf-8 -*-
"""
Outlier detection based on modified tau
author: khan
"""
import numpy as np
from scipy.stats import t
@jamal919
jamal919 / Dockerfile
Created September 26, 2021 16:42
Comodo-Tools Docker
FROM ubuntu:18.04
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
RUN apt-get update\
&& apt-get install -y mercurial wget make automake cmake g++ gfortran pkg-config python hwloc\
&& apt-get install -y liblapack-dev libsuitesparse-dev libopenmpi-dev\
&& apt-get install -y libscotch-dev petsc-dev libmetis-dev libarpack2-dev libparpack2-dev\
&& apt-get install -y libnetcdf-dev libshp-dev flex bison libproj-dev libgsl-dev
@jamal919
jamal919 / ExtractData.m
Created July 14, 2020 09:12
NetCDF Extraction script
% DATA_EXTRACTOR is a piece of program to extract data from netCDF file
% with CF convention.
% DATA_EXTRACTOR takes the location of the netCDF file graphically and then
% ask the user for bounding box of the data extraction. It also shows basic
% information from first file in the directory to input the to be extracted
% variable name.
% When giving input Numbers are input as it is. However variable name must
% be enclosed in a 'singleQuote'.
% Author: Jamal Uddin Khan
% IWFM, BUET - 2015.
@jamal919
jamal919 / matlab.desktop
Created January 14, 2020 15:08
MATLAB Desktop Definitions
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=MATLAB2017a
Comment=Language of Scientific Computing
Exec=/home/durand/.local/MATLAB/R2017a/bin/matlab -desktop
Icon=matlab
Terminal=false
StartupWMClass=MATLAB
Type=Application
@jamal919
jamal919 / jupyter.desktop
Created January 14, 2020 15:06
Jupyter Notebook Desktop Description
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Jupyter
Comment=IPython Notebook Interface
Exec=env PROJ_LIB=/home/durand/.anaconda3/share/proj /home/durand/.anaconda3/bin/jupyter-notebook
Icon=jupyter
Terminal=true
Type=Application
Categories=Programming;
@jamal919
jamal919 / install_wrf41.sh
Last active June 4, 2024 06:52
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 <jamal.khan@legos.obs-mip.fr>
# Tested in Ubuntu 18.04 LTS
# basic package managment
sudo apt update
sudo apt upgrade
@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 / HurricaneDistribution.ipynb
Created February 13, 2019 12:48
North Atlantic Hurricane Distribution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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>