Skip to content

Commit

Permalink
use script folder
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed May 17, 2018
1 parent d39ddea commit d5e2d08
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions data2/getdata
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
cd $HOME/public_html/met/data2
cd $HOME/public_html/scripts/data2
date -u
d=`date -u +%Y%m%d`
python getdatanomads2.py $d $1 || { echo gfs err;exit 1; }

cp -rp gfs.time gfs-* ..

. $HOME/public_html/gfs/generate_wind_data.sh
. $HOME/public_html/scripts/gfs/generate_wind_data.sh
date -u
# 10.5 + + 5
4 changes: 2 additions & 2 deletions data2/getolddata
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
# getolddata yyyymmdd hh
cd $HOME/public_html/met/data2
cd $HOME/public_html/scripts/data2
date -u
d=`date -u +%Y%m%d`
python getdatanomads2.py $1 $2 || { echo gfs err;exit 1; }

cp -rp gfs.time gfs-* mov-* ..

. $HOME/public_html/met/gfs/generate_wind_data.sh
. $HOME/public_html/scripts/gfs/generate_wind_data.sh
date -u
# 10.5 + + 5
2 changes: 1 addition & 1 deletion gfs/generate_wind_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd ~/public_html/met/gfs/
cd ~/public_html/scripts/gfs/
cd script
rm -rf data
mkdir data
Expand Down
2 changes: 1 addition & 1 deletion gfs/script/wind_data_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import json

basepath = "/home/ubuntu/public_html/met/";
basepath = "/home/ubuntu/public_html/scripts/";

def latLonToXYZ(lat,lon,radius=200):
theta=(lon+180)*(math.pi/180)
Expand Down
2 changes: 1 addition & 1 deletion gfs/script/wind_data_download_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import json

basepath = "/home/ubuntu/public_html/met/";
basepath = "/home/ubuntu/public_html/scripts/";

def latLonToXYZ(lat,lon,radius=200):
theta=(lon+180)*(math.pi/180)
Expand Down

0 comments on commit d5e2d08

Please sign in to comment.