Skip to content

Instantly share code, notes, and snippets.

@TakashiUNUMA
TakashiUNUMA / diff_gmt5_vs_gmt4.md
Last active March 6, 2018 04:33
GMT5 と GMT4 とのコマンド参照表

GMT5 と GMT4 とのコマンド参照表

last modified: March 6, 2018

基本方針

  • 各 (GMT4 の) コマンドの先頭に gmt を付加する.
    • ただし,gmtsetgmt set に変更する.
  • GMT4 での .gmtdefaults4 ファイルは,gmt.conf に置き換え.
@TakashiUNUMA
TakashiUNUMA / extract_grib2_pointdata.sh
Created July 22, 2017 12:49
A sample handling script in order to extract point data from a grib2 format data.
#!/bin/bash
#
# extract_grib2_pointdata.sh
#
# original script was coded by Takashi Unuma, Tsu local meteorological office, Japan Meteorological Agency
# last modified: 22nd July 2017
#
# requirements:
# wgrib2, sed, awk (gawk is also available)
#
@TakashiUNUMA
TakashiUNUMA / makereadme.sh
Created March 28, 2017 13:35
README のひな形を Markdown 形式で出力する bash script です.
#!/bin/bash
echo "# README #"
echo ""
echo "original document was written by USERNAME"
echo "last modified: `LANG=en_US ; date +"%d %B %Y"`"
echo ""
@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
@TakashiUNUMA
TakashiUNUMA / GoogleForm自動返信スクリプト.gs
Last active September 10, 2018 15:06
Google フォームを用いた自動返信スクリプト (参考 URL: http://creazy.net/2011/03/google_form_mailsend.html) Version 0.1.2
/*
自動返信 Google Apps Script
オリジナルスクリプト:http://swimath2.hatenablog.com/entry/2014/10/11/224320
this script was modified by Takashi Unuma
inspired by Ryohei Kato
last modified: 3rd Mar. 2017
*/
@TakashiUNUMA
TakashiUNUMA / SConstruct
Last active August 29, 2015 14:05
A sample SConstruct script for compiling your code(s) with NetCDF4 library.
# -*- coding: utf-8 -*-
#
# SConstruct for compiling Fortran90 code(s)
#
# coded by Takashi Unuma, Kyoto Univ.
# last modified: 2014/08/17
#
# load python modules
import os
@TakashiUNUMA
TakashiUNUMA / autobuild_netcdf4.sh
Last active August 29, 2015 14:03
An automated shell script for compiling and installing NetCDF ver. 4.1.3, ZLIB ver. 1.2.5 and HDF5 ver. 1.8.7. For more information of this script, please see the top level of this script.
#!/bin/sh
#
# autobuild_netcdf4.sh
#
# original script coded by Takashi Unuma, Kyoto Univ.
# Last modified: 2014/07/07
#
# -------------------------------------------------------
# required commands:
# wget, tar, make
@TakashiUNUMA
TakashiUNUMA / modify_boundingbox.sh
Created July 5, 2014 23:40
A shell script for modifying the bounding box of the input eps files using ghostscript.
#!/bin/sh
#
# modify_boundingbox.sh
#
# original script coded by Takashi Unuma, Kyoto Univ.
# last modified: 2014/07/06
#
# required commands: basename, gs, sed, and awk
#
@TakashiUNUMA
TakashiUNUMA / Makefile
Created June 6, 2014 07:36
Makefile for compiling with NetCDF library.
#SHELL = /bin/sh
#-----------------------------------------------------------------------------
# NETCDF SECTION
#-----------------------------------------------------------------------------
# - netcdf3
OUTPUTINC = -I/usr/local/netcdf-3.6.3-gnu/include
OUTPUTLIB = -L/usr/local/netcdf-3.6.3-gnu/lib
LINKOPTS = -lnetcdf
# - netcdf4
@TakashiUNUMA
TakashiUNUMA / htmlview.sh
Created May 31, 2014 10:02
あるディレクトリに保存されたすべて同じ大きさの画像を、HTML で閲覧するための shell script。
#!/bin/sh
width=400
height=309
echo '<HTML>'
echo '<HEAD>'
echo '<TITLE> HTML VIEWER </TITLE>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">'
echo '</HEAD>'