QuickGuide to RClimDex and RHtests

Embed Size (px)

Citation preview

  • 8/10/2019 QuickGuide to RClimDex and RHtests

    1/1

    Quick Guide for the RClimDex and RHtests Users

    Prepared byXiaolan L. Wang

    Climate Research Division, STB, nvironment Canada

    !" #ay $%!%

    Steps to &se the RClimDe' and R(tests combined pac)age*

    +! nter source(RClimDex.r) at the R prompt to &se RClimDe' to per-orm /0C o- thedaily tma', tmin and prcp.

    +$ nter source(RClimDex_RHtest.r) at the R prompt to &se RClimDex2RHtest!,orenter source(RHtestsV3.r) and StartGUI()to &se the Transform Datab&tton in the 123mode, to prod&ce the inp&t -iles -or homogeneity testing and ad4&stment. 5ine o&tp&t

    -iles$are prod&ced* -or tma', tmin and prpc, monthly +#L6 and daily +DL6, pl&s a

    series o- monthly totals o- daily prcp 7 !mm +89prcp#L6!mm, and the log:trans-ormed

    series o- the t;o monthly total precipitation series, respectively +89Logprcp#L6 and

    89Logprcp#L6!mm. 5ote that i- the series to be log:trans-ormed incl&des a ?or temperat&re, &se one o- the R(tests@> -&nctions to detect the changepoints in the

    monthly data series and to determine those that need to be ad4&sted. 2se

    QMadj.GaussiaD!"3+;ith this list o- changepoints and the original daily temperat&reseries to obtain an #:ad4&stedAdaily temperat&re series. The thcol&mn in the o&tp&t

    -ile *_QMadjDLY_F.datis the #:ad4&sted daily series.+A ?or daily precipitation, enter source(RHtests_dl#$rc%.r) at the R prompt to &se

    &idU.dl#$rc%' &idUD.dl#$rc%'and Ste%Sie.dl#$rc%to detect and ad4&st shi-ts indaily precipitation series +&sing pthr%. mm. This is done beca&se daily prcp E pthr is

    tested in these -&nctions, ;hile RClimDe' &ses daily prcp 7 !.% mm to calc&late the

    indices. The proced&re -or &sing these -&nctions are the same as &sing the ?ind2 and

    StepSi. The #:ad4&sted daily precipitation data series is

    given in the

    th

    col&mn o- the o&tp&t -ile *_QMadjDLY_UC.dat or *_QMadjDLY_UDfinal.dat.+ nter source(RClimDex_RHtest.r) at the R prompt to &se RHtest2RClimDexFtoprod&ce the inp&t -ile o- ad4&sted daily tma', tmin and prcp -or RClimDe'.

    +F nter source(RClimDex.r) at the R prompt to &se RClimDe' ;ith the ad4&sted dailydata to calc&late climate indices.

    !The command line is li)e this*

    RClimDex2RHtest(n!"tFile#ame$ Missin%&tr').+$/ monthly val&e is assigned to missing i- there are more than > days o- missing val&es in the month.>The command line is li)e this*

    QMadj.,a"ssianDLY(n&eries'-D//....$ nCs'-D//...._mCs.txt$ o"t!"t'-D//....$Missin%0al"eCode').$ ,U'F1L&$ adj'34444$ M5'34$ #67a'4+

    AG#:ad4&stedH means Gad4&sted &sing the &antile #atching algorithmH.

    The command lines are li)e these*FindU.dl68r9!(n&eries'-D//....$ o"t!"t'-D//...$

    Missin%0al"eCode'-).$ ,U'F1L&$ !t:r'4.$ M5'34$ #67a'4$ !.le;'4.