Skip to content

Instantly share code, notes, and snippets.

@TakashiUNUMA
TakashiUNUMA / r2z.sh
Created May 22, 2013 09:12
Calculate reflected intensity [dBZ] by the use of Z-R relationship.
#!/bin/sh
#
# Calculate reflected intensity [dBZ] by the use of Z-R relationship.
# original script coded by Takashi Unuma, Kyoto Univ.
#
# -----
# Z = A * R^b
# where, A = 200, b=1.6
#
@TakashiUNUMA
TakashiUNUMA / 10min_2_3hour.sh
Created May 22, 2013 10:05
Change from 10 minute interval time to 3 hour interval time.
#!/bin/sh
#
# program of converting from 10-min. time to 3-hour time
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/05/22
#
if test ${#1} -lt 12 ; then
echo "please type following format of date:"
@TakashiUNUMA
TakashiUNUMA / gmtplot.sh
Created June 4, 2013 06:42
Template for GMT plotting.
#!/bin/sh
#
# GMTPLOT
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013:06/04
#
infile=Z__C_RJTD_composit_RDR_JMAGPV.out
# setting
@TakashiUNUMA
TakashiUNUMA / change_time.sh
Last active December 18, 2015 17:49
Change Time by the use of date and awk command.
#!/bin/sh
#
# change_time.sh
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/06/21
#
if test $# -lt 3 ; then
echo "USAGE: $(basename $0) [YYYYMMDDHHNN] [INT] [+/-]"
echo " *** Note: All values must be 'integer'. *** "
@TakashiUNUMA
TakashiUNUMA / get_data_from_uwyo.edu.sh
Created July 13, 2013 08:38
A wget wrapper script for the sounding data of http://weather.uwyo.edu/ . This script requires ”change_time” shell script (https://gist.github.com/TakashiUNUMA/5821630). USAGE: get_data_from_uwyo.edu.sh [JSTTIME] [STATION NUMVER] [TYPE]
#!/bin/sh
#
# wget wrapper script
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/07/13
#
debug_level=100
if test $# -lt 3 ; then
@TakashiUNUMA
TakashiUNUMA / Makefile
Last active December 25, 2015 15:59
Makefile for compiling a LaTeX file by the use of XeLaTeX.
SHELL = /bin/sh
FILE0 = main
TEX = $(FILE0).tex
XDV = $(FILE0).xdv
PDF = $(FILE0).pdf
PDFOUT = $(FILE0)_final.pdf
FILE1 = handout
HTEX = $(FILE1).tex
HXDV = $(FILE1).xdv
#!/bin/sh
if test $# -lt 2 ; then
echo "USAGE: $(basename $0) [input pdf] [output eps]"
exit 2
fi
input=$1
output=$2
@TakashiUNUMA
TakashiUNUMA / get_data_from_JMA.sh
Last active December 31, 2015 00:19
A wrapper script for the sounding data of http://www.data.jma.go.jp/obd/stats/etrn/upper/index.php. The commands of awk and w3m are required to use this script. USAGE: get_data_from_JMA.sh [JSTTIME] [STATION NUMVER] [TYPE] Note: An undef value "///" is replaced with "-999." in this script.
#!/bin/sh
#
# wget wrapper script
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2013/12/11
#
debug_level=100
if test $# -lt 2 ; then
@TakashiUNUMA
TakashiUNUMA / insert_fig_to_tex.sh
Created January 4, 2014 03:18
This script prints a LaTeX format that includes bounding box informations.
#!/bin/sh
if test $# -lt 1 ; then
echo "USAGE: sh $(basename $0) [figure(s)]"
exit 1
fi
infiles=$*
WIDTH="140mm"
DIR="pictures/"
@TakashiUNUMA
TakashiUNUMA / .emacs
Created May 7, 2016 08:43
My .emacs setting file
;;
;; .emacs
;;
;; Last modified: 7th May 2016
;;
;; Load PATH
(add-to-list 'load-path "~/.emacs.d/scripts/")
;; package