Advertisement
dziban303

model run command

Sep 1st, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.02 KB | None | 0 0
  1. /models {
  2.   if ( $daylight > 0 ) { %tz% = 4CDT | %etz% = 4EDT }
  3.   elseif ( $daylight = 0 ) { %tz% = 4CST | %etz% = 4EST }
  4.   %et% = $calc($asctime(HH) + 1)
  5.   %etoffset% = $calc($asctime(z) + 1)
  6.   msg $chan The time is12 $asctime($gmt,HH:nn:ss) 4UTC /12 $asctime(HH:nn:ss) %tz% (4UTC06 $+ $asctime(z) $+ ) /$&
  7.     12 $+ %et% $+ : $+ $asctime(nn:ss) %etz% (4UTC06 $+ %etoffset% $+ ).    
  8.   if ( $asctime($gmt,HH) < 6) {
  9.     %hours% = 5 - $asctime($gmt,HH)
  10.     %hoursstring% = 12 $+ %hours% hours and
  11.     if %hours% == 0 { %hoursstring% = }
  12.     %mins% = $calc(60 - $asctime($gmt,nn))
  13.     %minsstring% = 12 $+ $calc(60 - $asctime($gmt,nn)) minutes
  14.     if %mins% == 60 { %hours% = %hours% + 1 | %minsstring% = }
  15.     ;    msg $chan 12 $+ %hours% $+ : $+ $calc(60 - $asctime($gmt,nn)) until the 4GFS model run will initialize at 04060005Z.
  16.     msg $chan %hoursstring% %minsstring% until the 4GFS model run will initialize at 04060005Z.
  17.   }
  18.  
  19.   elseif ( $asctime($gmt,HH) < 12) {
  20.     %hours% = 11 - $asctime($gmt,HH)
  21.     %hoursstring% = 12 $+ %hours% hours and
  22.     if %hours% == 0 { %hoursstring% = }
  23.     %mins% = $calc(60 - $asctime($gmt,nn))
  24.     %minsstring% = 12 $+ $calc(60 - $asctime($gmt,nn)) minutes
  25.     if %mins% == 60 { %hours% = %hours% + 1 | %minsstring% = }
  26.     if( %mins% < 10) {
  27.       %mins% = 0 $+ $calc(60 - $asctime($gmt,nn))
  28.     }
  29.     msg $chan %hoursstring% %minsstring% until the 4GFS and 4Euro model runs will initialize at 04120005Z.
  30.   }
  31.  
  32.   elseif ( $asctime($gmt,HH) < 18) {
  33.     %hours% = 19 - $asctime($gmt,HH)
  34.     %hoursstring% = 12 $+ %hours% hours and
  35.     if %hours% == 0 { %hoursstring% = }
  36.     %mins% = $calc(47 - $asctime($gmt,nn))
  37.     %minsstring% = 12 $+ %mins% minutes
  38.     if %mins% == 60 { %hours% = %hours% + 1 | %minsstring% = }
  39.     msg $chan %hoursstring% %minsstring% until the 04180012Z 4GFS model run will 12begin at 12~04204712Z.
  40.     %donehours% = 21 - $asctime($gmt,HH)
  41.     %donehoursstring% = 12 $+ %donehours% hours and
  42.     if %donehours% == 0 { %donehoursstring% = }    
  43.     %donemins% = 65 - $asctime($gmt,nn)
  44.     %doneminsstring% = 12 $+ %donemins% minutes
  45.     if %donemins% == 60 { %donehours% = %donehours% + 1 | %doneminsstring% = }    
  46.     msg $chan The run should be complete in %donehoursstring% %doneminsstring% by 12~04220512Z.
  47.   }
  48.  
  49.   else ( $asctime($gmt,HH) < 24) {
  50.     %hours% = 23 - $asctime($gmt,HH)
  51.     %hoursstring% = 12 $+ %hours% hours and
  52.     if %hours% == 0 { %hoursstring% = }
  53.     %mins% = $calc(60 - $asctime($gmt,nn))
  54.     %minsstring% = 12 $+ $calc(60 - $asctime($gmt,nn)) minutes
  55.     if %mins% == 60 { %hours% = %hours% + 1 | %minsstring% = }
  56.     ;    msg $chan 12 $+ %hours% $+ : $+ $calc(60 - $asctime($gmt,nn)) until the 4GFS and 4Euro models run will initialize at 04000006Z.
  57.     msg $chan %hoursstring% %minsstring% until the 4GFS and 4Euro model runs will initialize at 04000005Z.
  58.   }
  59.   msg $chan Model run status page from 4NCEP: 12https://goo.gl/fn6Td9
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement