This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
operations:documentation:yg_manual_weather [2016/08/22 01:41] Jim Lovell [Detailed description] |
operations:documentation:yg_manual_weather [2016/11/19 02:26] Ross Turner [Using a script] |
||
---|---|---|---|
Line 42: | Line 42: | ||
get mets_2016_07_29.dat | get mets_2016_07_29.dat | ||
quit | quit | ||
- | metadat_format.sh mets_2016_07_28.dat mets_2016_07_29.dat > wx_tmp.log | + | metdat_format.sh mets_2016_07_28.dat mets_2016_07_29.dat > wx_tmp.log |
metdat_startstop.sh wx_tmp.log 210.18:30 211.18:30 > /usr2/log/wx_r4750yg.log | metdat_startstop.sh wx_tmp.log 210.18:30 211.18:30 > /usr2/log/wx_r4750yg.log | ||
cd /usr2/log | cd /usr2/log | ||
Line 54: | Line 54: | ||
- You can now go back to ops2 and [[operations:documentation.ivs.logs|process the log file and submit a end email as usual]]. Please add a note to the email to say that weather data were merged into the log after the experiment. | - You can now go back to ops2 and [[operations:documentation.ivs.logs|process the log file and submit a end email as usual]]. Please add a note to the email to say that weather data were merged into the log after the experiment. | ||
+ | ===== Using a script ===== | ||
+ | On ops2 in ''/home/observer/ask/yglogs'' lives a script called ''yg_wx_logs.py'' which can be used to merge the logs with the weather data. To run the script type in | ||
+ | <code> python yg_wx_logs.py </code> | ||
+ | |||
+ | The script will prompt the user for | ||
+ | * Experiment name, | ||
+ | * Date of the experiment, | ||
+ | * Start time, | ||
+ | * End time. | ||
+ | |||
+ | With the given information, the script will | ||
+ | |||
+ | * Download the required mets files containing the weather data using sftp, | ||
+ | * Download the log file from pcfyg, | ||
+ | * Merge the log from pcfs with the downloaded weather data, | ||
+ | * Backup the original log on pcfsyg with a ''_original2.log'', | ||
+ | * Copy the modified log back to the pcfsyg. | ||
+ | |||
+ | Once all that is done you can run the flogit script to transfer that log to the IVS servers. As usual please eyeball the log to make sure the script has done the right thing. |