Difference between revisions of "SPOTL"

From 307 Lab Note
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
'''This page list the operation procedure of tide forecast from the SPOTL program '''
 
'''This page list the operation procedure of tide forecast from the SPOTL program '''
  
  <span style="color:#ff0000">Caution: the data should be running in the ./working directory.<br>
+
  <span style="color:#ff0000">Caution: the data should be running in the ./working directory.</span>
This procedure program will only give you the informaiton about predicted water tide loading. This does not include the sea-level change from the climate signal. To include the influence of the climate signal, other steps have to be included later.
+
 
</span>
+
<span style="color:#ff0000">This procedure program will only give you the information about predicted water tide loading. This does not include the sea-level change from the climate signal. To include the influence of the climate signal, other steps have to be included later.</span>
  
 
To use SPOTL for tide forecast, please follow the procedure below:
 
To use SPOTL for tide forecast, please follow the procedure below:

Revision as of 08:32, 4 February 2020

This page list the operation procedure of tide forecast from the SPOTL program

Caution: the data should be running in the ./working directory.

This procedure program will only give you the information about predicted water tide loading. This does not include the sea-level change from the climate signal. To include the influence of the climate signal, other steps have to be included later.

To use SPOTL for tide forecast, please follow the procedure below:

1. Define the location in Longitude and Latitude, and Time
2. Create a file called something like doit.oclook.osu.indo and modify the following line based on selected tide model:
#!/bin/sh
#
# this file extracts tidal constants for lat $1 long $2
# and writes the result in a hartid-compatiable file $3
#   e.g.  doit.oclook.osu.indo 11.68 92.77 hc.pblair.osubengal
../bin/oclook o1.osu.indonesia $1 $2 o > tmp
../bin/oclook k1.osu.indonesia $1 $2 o >> tmp
../bin/oclook k2.osu.indonesia $1 $2 o >> tmp
../bin/oclook m2.osu.indonesia $1 $2 o >> tmp
../bin/oclook p1.osu.indonesia $1 $2 o >> tmp
../bin/oclook q1.osu.indonesia $1 $2 o >> tmp
../bin/oclook n2.osu.indonesia $1 $2 o >> tmp
../bin/oclook s2.osu.indonesia $1 $2 o >> tmp
cat tmp | ../bin/harprp o > $3
rm tmp
This file is to define the tide model used for your forecast model. The location will be taken from the other file that we defined later.


3. Create a file called something like doit.oclook.cgp1 and modify the following line based on your location:
#sh doit.oclook.osu.indo  $1    $2      $3
 sh doit.oclook.osu.indo  5.375 095.240 hc08.CGP.ACEH
 sh doit.oclook.osu.indo -1.157 100.374 hc08.CGP.PADG
 sh doit.oclook.osu.indo -5.193 122.938 hc08.CGP.SUL1
 sh doit.oclook.osu.indo -5.512 123.714 hc08.CGP.SUL2
 sh doit.oclook.osu.indo -5.484 123.747 hc08.CGP.SUL3


4. Now you need the third file doit.hartid.cgp1. Modify the following lines based on your desired time and frequency:
#echo Jan to Dec 2004 > tides.2004.CGP.ACEH //This line is to remind your time span and output file
#cat hc08.CGP.ACEH | ../bin/hartid [Year] [Day] 00 00 00 [Steps] [Interval in sec]>> [output tide table]
 echo Jan to Dec 2004 > tides.2004.CGP.ACEH
 cat hc08.CGP.ACEH | ../bin/hartid 2004 001 00 00 00 17568 1800 >> tides.2004.CGP.ACEH
 echo Jan to Dec 2005 > tides.2005.CGP.ACEH
 cat hc08.CGP.ACEH | ../bin/hartid 2005 001 00 00 00 17520 1800 >> tides.2005.CGP.ACEH
 echo Jan to Dec 2006 > tides.2006.CGP.ACEH
 cat hc08.CGP.ACEH | ../bin/hartid 2006 001 00 00 00 17520 1800 >> tides.2006.CGP.ACEH


After running the doit.oclook.cgp1 and doit.hartid.cgp1, you should be able to obtain the tide table of your desired area.