tianzhounote.wordpress.com
Avoid password input when scp using “expect” | Tian's Hydro Life
https://tianzhounote.wordpress.com/2015/01/13/avoid-password-input-when-scp
Tian's Hydro Life. Avoid password input when scp using “expect”. Sometimes I need to scp files from remote server, but I hate to input the (fixed) password over and over again. Here is a solution using “expect”. Usr/bin/expect set name [linde $argv 0] # read name from argument spawn scp id@server1:/data/location /data/destination # scp expect *password:* {send your password} interact. January 13, 2015. Leave a Reply Cancel reply. Enter your comment here. Address never made public). Some commands in Unix.
tianzhounote.wordpress.com
Damn BASH | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/05/02/damn-bash
Tian's Hydro Life. Spent hours debugging a piece of simple script in which I pass more than 9 arguments from outside. Everything’s fine for arguments 1-9 but bash couldn’t recognize argument 10. Turns out you need to add these damn curly braces on the numbers. Otherwise it will just treat it as $1. Bin/bash PWD=$1 BI=$2 DS=$3 WS=$4 EXP=$5 D2=$6 D3=$7 DSMAX=$8 Inimois2=$9 Inimois3=${10}. May 2, 2014. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:.
tianzhounote.wordpress.com
Useful Hyak Commends | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/03/19/useful-hyak-commends
Tian's Hydro Life. Https:/ sig.washington.edu/itsigs/WIKI for Hyak users. Show jobs in queues:. Showq #show all jobs showq -w qos=hpc #show jobs based on group (hpc) showq -w class=bf #show jobs on backfill list. Mjobctl -c job id #cancel a job showbf -q hpc #show what resources are available for a given group (hpc) checkjob job id #check the job status. If running single thread job like VIC, it is required to use GNU parallel to bundle the job together and then submit to the node. Then in the script add.
tianzhounote.wordpress.com
More NetCDF commands | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/06/09/more-netcdf-commands
Tian's Hydro Life. 1 NetCDF file compression. Ncks -L 2 in.nc out.nc # 2 is the compression ratio, could be 2-9. 2 Split file by dimension (e.g. time, lat, lon). Ncks -d time,0,30 in.nc out.nc ncks -F -d time,1,31 in.nc out.nc (equivalent). 3 Merge time using NCO. Ncks - mk rec dmn time in.nc out.nc ncrcat *.nc out.nc. June 9, 2014. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). Notify me of new comments via email.
tianzhounote.wordpress.com
Tian | Tian's Hydro Life
https://tianzhounote.wordpress.com/author/zhoutian1983-2
Tian's Hydro Life. Interpolate values along a long from a surface in ArcGIS. This is kinda stupid and I’m sure there are much more elegant ways to do this. But for a quick and dirty job it’s good enough to me. Anyways, what I want to do is to draw a line on a surface (could be anything, DEM, velocity field from CFD, or precipitation map) and extract the values along this line then output as a table. It can be easily done using ArcGIS 3D Analyst toolbar then you get something like this:. July 22, 2016.
tianzhounote.wordpress.com
Simple way to estimate a grid cell area based on latitude | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/12/01/simple-way-to-estimate-a-grid-cell-area-based-on-latitude
Tian's Hydro Life. Simple way to estimate a grid cell area based on latitude. Sometimes I need to convert some flux terms from length unit to volume. For example, 10 mm precipitation over a 0.25 degree grid cell is? Anyway, the area is. Is the side length when the gird cell is at equator. Is the latitude (degree). December 1, 2014. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). Notify me of new comments via email.
tianzhounote.wordpress.com
Share interactive plots with others through plot.ly | Tian's Hydro Life
https://tianzhounote.wordpress.com/2015/05/28/share-interactive-plots-with-others-through-plot-ly
Tian's Hydro Life. Share interactive plots with others through plot.ly. For example, in Matlab (of course you need to install the API for Matlab beforehand), the command is. P = fig2plotly(fig);. And the plot can be viewed at here. You can zoom in and out and check the data on the plot. May 28, 2015. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. Equato...
tianzhounote.wordpress.com
May | 2015 | Tian's Hydro Life
https://tianzhounote.wordpress.com/2015/05
Tian's Hydro Life. Share interactive plots with others through plot.ly. For example, in Matlab (of course you need to install the API for Matlab beforehand), the command is. P = fig2plotly(fig);. And the plot can be viewed at here. You can zoom in and out and check the data on the plot. May 28, 2015. Some commands in Unix. Interpolate values along a long from a surface in ArcGIS. July 22, 2016. June 22, 2016. ArcGIS shape file plot in Matlab. June 20, 2016. My research page in UW. Energy balance of Earth.
tianzhounote.wordpress.com
Python Bootcamp | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/07/31/python
Tian's Hydro Life. 1 clear all the variables in Sypder. Import sys sys.modules[ name ]. dict .clear(). 2 Some tips (python notebook). Shift enter to run lines #triple quotes for multi-line string #underscore denotes result from last operation! Ls #see what's in dir range? 3 Keep in mind that in. Python2: 5/2=2; 5/2.0=2.5; Python3: 5/2=2.5;. 4 Getting input from user. Http:/ nbviewer.ipython.org/gist/anonymous/96fa78e3280c5ada1269. 6 The data structures. July 31, 2014. Leave a Reply Cancel reply. Address ...
tianzhounote.wordpress.com
Amazing data visualization tools | Tian's Hydro Life
https://tianzhounote.wordpress.com/2014/03/17/amazing-data-visualization-tools
Tian's Hydro Life. Amazing data visualization tools. Http:/ earth.nullschool.net. Http:/ bokeh.pydata.org. Http:/ web.stanford.edu/ mwaskom/software/seaborn/. Http:/ ggplot.yhathq.com. Http:/ mpld3.github.io/index.html. Http:/ www.jasondavies.com/maps/transition/. March 17, 2014. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. Some commands in Unix.