一个研究声多普勒计程仪很好的工具箱

源代码在线查看: create_batch

软件大小: 2810 K
上传用户: my
关键词: 多普勒 计程仪 工具箱
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh				#This script is used to create an NOPP batch file				#get the date in the proper format for the file names				yy=`date +%y`				mm=`date +%m`				#day is yesterday				dt=`date +%d`				dd=`expr $dt - 1`								#need different date format for records				YY=`date +%Y`				Mon=`date +%h`				ddate=$dd-$Mon-$YY 				rdate=$dt-$Mon-$YY								#create the names for the files				thepath=`echo n$yy$mm$dd`				fname=`echo n$yy$mm$dd.bch`				rawdata=`echo n$yy$mm$dd.rdi`				rawcdf=`echo n$yy$mm$dd.cdf`				mask=`echo n$yy$mm$dd.msk`				newf=`echo n$yy$mm$dd'M'.cdf`				trimf=`echo n$yy$mm$dd'T'.cdf`								#create the directory for yesterday				mkdir /usr2/users/jcote/NOPP/$thepath				cd /usr2/users/jcote/NOPP/$thepath								#stuff it all in a batch file				echo $fname 				echo runadcp > $fname				echo "'$rawdata'" >> $fname				echo "'$rawcdf'" >> $fname 				echo "'$mask'" >> $fname 				echo "'$newf'" >> $fname 				echo "'$trimf'" >> $fname 								echo "'999'" >> $fname 				echo "'$ddate'" >> $fname				echo "'$rdate'" >> $fname				echo "999" >> $fname				echo "1.25" >> $fname 				echo "0" >> $fname				echo "-15" >> $fname				echo "'No'" >> $fname				echo "24" >> $fname				echo "4" >> $fname 												#create second batch file for adcp2ep				Gname=`echo n$yy$mm$dd'G'.bch`				adcpfile=`echo n$yy$mm$dd'T'.cdf`				epdatafile=`echo n$yy$mm$dd.nc`								echo adcp2ep > $Gname 				echo "'$adcpfile'" >> $Gname				echo "'$epdatafile'" >> $Gname				echo "'WH'" >> $Gname				echo "'NOPP'" >> $Gname				echo "'NOPP'" >> $Gname				echo "'Scituate ADCP'" >> $Gname				echo "70.6433" >> $Gname				echo "'degree_west'" >> $Gname				echo "42.1605" >> $Gname				echo "'degree_north'" >> $Gname				echo "'telemetry data'" >> $Gname								#go back to home directory				cd /usr2/users/jcote 							

相关资源