This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
operations:documentation:yg_manual_weather [2016/08/11 00:25] Jim Lovell [Detailed description] |
operations:documentation:yg_manual_weather [2016/11/18 16:39] Arwin Kahlon [Using a script] |
||
---|---|---|---|
Line 18: | Line 18: | ||
quit | quit | ||
</code> | </code> | ||
- | - The weather data files now need to be converted to the correct format for a PCFS log. There's a script to do that called ''metadat_format.sh''. By default it writes the output log to the screen, so send it to a temporary file. e.g. <code>metadat_format.sh mets_2016_07_28.dat mets_2016_07_29.dat > wx_tmp.log</code>Specify the input data files in chronological order. | + | - The weather data files now need to be converted to the correct format for a PCFS log. There's a script to do that called ''metdat_format.sh''. By default it writes the output log to the screen, so send it to a temporary file. e.g. <code>metdat_format.sh mets_2016_07_28.dat mets_2016_07_29.dat > wx_tmp.log</code>Specify the input data files in chronological order. |
- Now you need to edit the new log file and delete any weather measurements before or after the experiment. There's a script for that too called ''metdat_startstop.sh''. Usage is <code>metdat_startstop.sh <input_file_name> <start_time> <end_time> | - Now you need to edit the new log file and delete any weather measurements before or after the experiment. There's a script for that too called ''metdat_startstop.sh''. Usage is <code>metdat_startstop.sh <input_file_name> <start_time> <end_time> | ||
Where the time format is ddd.hh:mm. The output from this should be ready to be merged into the original log file, so give it a sensible output name and put it in the log directory (''/usr2/log''). </code> For example for R4750: <code>metdat_startstop.sh wx_tmp.log 210.18:30 211.18:30 > /usr2/log/wx_r4750yg.log</code> | Where the time format is ddd.hh:mm. The output from this should be ready to be merged into the original log file, so give it a sensible output name and put it in the log directory (''/usr2/log''). </code> For example for R4750: <code>metdat_startstop.sh wx_tmp.log 210.18:30 211.18:30 > /usr2/log/wx_r4750yg.log</code> | ||
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_wz_logs.py'' which can be used to merge the logs with the weather data. To run the script type in | ||
+ | <code> python yg_wz_logs.py </code> |