# Rank histogram
Title: SST regional Rank histogram
Description: |
    SST rank histogram.
    Use HadISST as observation data.
Tags: sst, rankHisto
COMPONENT:  ocn
VARIABLE:  sst
PLOTRES: |
    ;; PLOTRES
ANOMALYANALYSIS: False
    # True: take anomaly before analysis; False: not take ano.
    # default is False
OBSPROXY: 0
    # 0: observation; >0: which member as obs proxy data
OBSDATASET: SST/HADISST
    # which obs data to use
OBSVN: sst
    # variable name of obs data
REMOVECACHE: False

Scripts:
# proc section

-  # lead season 1, init Jan, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead1_FMA
    LEADSEASON: 1
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead1_FMA  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 1, init Jan, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead1_FMA
    LEADSEASON: 1
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead1_FMA  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 1, init Jan, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead1_FMA
    LEADSEASON: 1
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead1_FMA  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 1, init Apr, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead1_MJJ
    LEADSEASON: 1
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead1_MJJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 1, init Apr, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead1_MJJ
    LEADSEASON: 1
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead1_MJJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 1, init Apr, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead1_MJJ
    LEADSEASON: 1
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead1_MJJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 1, init Jul, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead1_ASO
    LEADSEASON: 1
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead1_ASO  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 1, init Jul, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead1_ASO
    LEADSEASON: 1
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead1_ASO  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 1, init Jul, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead1_ASO
    LEADSEASON: 1
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead1_ASO  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 1, init Oct, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead1_NDJ
    LEADSEASON: 1
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead1_NDJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 1, init Oct, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead1_NDJ
    LEADSEASON: 1
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead1_NDJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 1, init Oct, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead1_NDJ
    LEADSEASON: 1
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead1_NDJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 2, init Jan, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead2_MJJ
    LEADSEASON: 2
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead2_MJJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 2, init Jan, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead2_MJJ
    LEADSEASON: 2
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead2_MJJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 2, init Jan, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead2_MJJ
    LEADSEASON: 2
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead2_MJJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 2, init Apr, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead2_ASO
    LEADSEASON: 2
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead2_ASO  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 2, init Apr, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead2_ASO
    LEADSEASON: 2
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead2_ASO  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 2, init Apr, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead2_ASO
    LEADSEASON: 2
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead2_ASO  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 2, init Jul, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead2_NDJ
    LEADSEASON: 2
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead2_NDJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 2, init Jul, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead2_NDJ
    LEADSEASON: 2
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead2_NDJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 2, init Jul, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead2_NDJ
    LEADSEASON: 2
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead2_NDJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 2, init Oct, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead2_FMA
    LEADSEASON: 2
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead2_FMA  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 2, init Oct, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead2_FMA
    LEADSEASON: 2
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead2_FMA  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 2, init Oct, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead2_FMA
    LEADSEASON: 2
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead2_FMA  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 3, init Jan, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead3_ASO
    LEADSEASON: 3
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead3_ASO  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 3, init Jan, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead3_ASO
    LEADSEASON: 3
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead3_ASO  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 3, init Jan, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead3_ASO
    LEADSEASON: 3
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead3_ASO  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 3, init Apr, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead3_NDJ
    LEADSEASON: 3
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead3_NDJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 3, init Apr, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead3_NDJ
    LEADSEASON: 3
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead3_NDJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 3, init Apr, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead3_NDJ
    LEADSEASON: 3
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead3_NDJ  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 3, init Jul, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead3_FMA
    LEADSEASON: 3
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead3_FMA  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 3, init Jul, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead3_FMA
    LEADSEASON: 3
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead3_FMA  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 3, init Jul, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead3_FMA
    LEADSEASON: 3
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead3_FMA  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 3, init Oct, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead3_MJJ
    LEADSEASON: 3
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead3_MJJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 3, init Oct, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead3_MJJ
    LEADSEASON: 3
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead3_MJJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 3, init Oct, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead3_MJJ
    LEADSEASON: 3
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead3_MJJ  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 4, init Jan, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead4_NDJ
    LEADSEASON: 4
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead4_NDJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 4, init Jan, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead4_NDJ
    LEADSEASON: 4
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead4_NDJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 4, init Jan, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead4_NDJ
    LEADSEASON: 4
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead4_NDJ  # cache is made global
    # for all forecast start from Jan
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???01??
-  # lead season 4, init Apr, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead4_FMA
    LEADSEASON: 4
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead4_FMA  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 4, init Apr, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead4_FMA
    LEADSEASON: 4
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead4_FMA  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 4, init Apr, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead4_FMA
    LEADSEASON: 4
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead4_FMA  # cache is made global
    # for all forecast start from Apr
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???04??
-  # lead season 4, init Jul, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead4_MJJ
    LEADSEASON: 4
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead4_MJJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 4, init Jul, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead4_MJJ
    LEADSEASON: 4
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead4_MJJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 4, init Jul, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead4_MJJ
    LEADSEASON: 4
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead4_MJJ  # cache is made global
    # for all forecast start from Jul
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???07??
-  # lead season 4, init Oct, global
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_global_rank_histogram_lead4_ASO
    LEADSEASON: 4
    REG: global
    LATB: -90.
    LATE:  90.
    LONB:   0.
    LONE: 360.
    CACHEFILENAME: sst_rank_freq_lead4_ASO  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 4, init Oct, NAtl
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_NAtl_rank_histogram_lead4_ASO
    LEADSEASON: 4
    REG: NAtl
    LATB:   20.
    LATE:   70.
    LONB: -110.
    LONE:   40.
    CACHEFILENAME: sst_rank_freq_lead4_ASO  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??
-  # lead season 4, init Oct, WNPac
    plotScript: plot_rank_histogram.ncl
    TITLE: SST REG rank histogram
    TITLELEFT: REG
    FIGFILENAME: sst_WNPac_rank_histogram_lead4_ASO
    LEADSEASON: 4
    REG: WNPac
    LATB:   20.
    LATE:   70.
    LONB:  110.
    LONE:  180.
    CACHEFILENAME: sst_rank_freq_lead4_ASO  # cache is made global
    # for all forecast start from Oct
    FORECASTDIRS: BASEDIR/RUNPRE{1,2}???10??

-  # side bins plot, lead1 FMA
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead1_FMA
    CACHEFILENAME: sst_rank_freq_lead1_FMA
    CACHEVARNAME: rank_freq
-  # side bins plot, lead1 MJJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead1_MJJ
    CACHEFILENAME: sst_rank_freq_lead1_MJJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead1 ASO
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead1_ASO
    CACHEFILENAME: sst_rank_freq_lead1_ASO
    CACHEVARNAME: rank_freq
-  # side bins plot, lead1 NDJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead1_NDJ
    CACHEFILENAME: sst_rank_freq_lead1_NDJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead2 FMA
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead2_FMA
    CACHEFILENAME: sst_rank_freq_lead2_FMA
    CACHEVARNAME: rank_freq
-  # side bins plot, lead2 MJJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead2_MJJ
    CACHEFILENAME: sst_rank_freq_lead2_MJJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead2 ASO
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead2_ASO
    CACHEFILENAME: sst_rank_freq_lead2_ASO
    CACHEVARNAME: rank_freq
-  # side bins plot, lead2 NDJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead2_NDJ
    CACHEFILENAME: sst_rank_freq_lead2_NDJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead3 FMA
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead3_FMA
    CACHEFILENAME: sst_rank_freq_lead3_FMA
    CACHEVARNAME: rank_freq
-  # side bins plot, lead3 MJJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead3_MJJ
    CACHEFILENAME: sst_rank_freq_lead3_MJJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead3 ASO
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead3_ASO
    CACHEFILENAME: sst_rank_freq_lead3_ASO
    CACHEVARNAME: rank_freq
-  # side bins plot, lead3 NDJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead3_NDJ
    CACHEFILENAME: sst_rank_freq_lead3_NDJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead4 FMA
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead4_FMA
    CACHEFILENAME: sst_rank_freq_lead4_FMA
    CACHEVARNAME: rank_freq
-  # side bins plot, lead4 MJJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead4_MJJ
    CACHEFILENAME: sst_rank_freq_lead4_MJJ
    CACHEVARNAME: rank_freq
-  # side bins plot, lead4 ASO
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead4_ASO
    CACHEFILENAME: sst_rank_freq_lead4_ASO
    CACHEVARNAME: rank_freq
-  # side bins plot, lead4 NDJ
    plotScript: plot_rank_histogram_side_bins.ncl
    FIGFILENAME: sst_rank_freq_bins_lead4_NDJ
    CACHEFILENAME: sst_rank_freq_lead4_NDJ
    CACHEVARNAME: rank_freq

-  # mk html pages with figure filename
    plotScript: mk_html_page.sh
    FIGFILES:  |
        sst_global_rank_histogram_lead1_FMA
        sst_global_rank_histogram_lead2_MJJ
        sst_global_rank_histogram_lead3_ASO
        sst_global_rank_histogram_lead4_NDJ
        sst_global_rank_histogram_lead1_MJJ
        sst_global_rank_histogram_lead2_ASO
        sst_global_rank_histogram_lead3_NDJ
        sst_global_rank_histogram_lead4_FMA
        sst_global_rank_histogram_lead1_ASO
        sst_global_rank_histogram_lead2_NDJ
        sst_global_rank_histogram_lead3_FMA
        sst_global_rank_histogram_lead4_MJJ
        sst_global_rank_histogram_lead1_NDJ
        sst_global_rank_histogram_lead2_FMA
        sst_global_rank_histogram_lead3_MJJ
        sst_global_rank_histogram_lead4_ASO

        sst_rank_freq_bins_lead1_FMA
        sst_rank_freq_bins_lead2_MJJ
        sst_rank_freq_bins_lead3_ASO
        sst_rank_freq_bins_lead4_NDJ
        sst_rank_freq_bins_lead1_MJJ
        sst_rank_freq_bins_lead2_ASO
        sst_rank_freq_bins_lead3_NDJ
        sst_rank_freq_bins_lead4_FMA
        sst_rank_freq_bins_lead1_ASO
        sst_rank_freq_bins_lead2_NDJ
        sst_rank_freq_bins_lead3_FMA
        sst_rank_freq_bins_lead4_MJJ
        sst_rank_freq_bins_lead1_NDJ
        sst_rank_freq_bins_lead2_FMA
        sst_rank_freq_bins_lead3_MJJ
        sst_rank_freq_bins_lead4_ASO

        sst_NAtl_rank_histogram_lead1_FMA
        sst_NAtl_rank_histogram_lead2_MJJ
        sst_NAtl_rank_histogram_lead3_ASO
        sst_NAtl_rank_histogram_lead4_NDJ
        sst_NAtl_rank_histogram_lead1_MJJ
        sst_NAtl_rank_histogram_lead2_ASO
        sst_NAtl_rank_histogram_lead3_NDJ
        sst_NAtl_rank_histogram_lead4_FMA
        sst_NAtl_rank_histogram_lead1_ASO
        sst_NAtl_rank_histogram_lead2_NDJ
        sst_NAtl_rank_histogram_lead3_FMA
        sst_NAtl_rank_histogram_lead4_MJJ
        sst_NAtl_rank_histogram_lead1_NDJ
        sst_NAtl_rank_histogram_lead2_FMA
        sst_NAtl_rank_histogram_lead3_MJJ
        sst_NAtl_rank_histogram_lead4_ASO

        sst_WNPac_rank_histogram_lead1_FMA
        sst_WNPac_rank_histogram_lead2_MJJ
        sst_WNPac_rank_histogram_lead3_ASO
        sst_WNPac_rank_histogram_lead4_NDJ
        sst_WNPac_rank_histogram_lead1_MJJ
        sst_WNPac_rank_histogram_lead2_ASO
        sst_WNPac_rank_histogram_lead3_NDJ
        sst_WNPac_rank_histogram_lead4_FMA
        sst_WNPac_rank_histogram_lead1_ASO
        sst_WNPac_rank_histogram_lead2_NDJ
        sst_WNPac_rank_histogram_lead3_FMA
        sst_WNPac_rank_histogram_lead4_MJJ
        sst_WNPac_rank_histogram_lead1_NDJ
        sst_WNPac_rank_histogram_lead2_FMA
        sst_WNPac_rank_histogram_lead3_MJJ
        sst_WNPac_rank_histogram_lead4_ASO
    COLUMN: season leadSeason=1 leadSeason=2 leadSeason=3 leadSeason=4 '</tr><tr>' global '</tr><tr>' 'fromJan' 4 'fromApr' 4 'fromJul' 4 'fromOct' 4 Sidebins '</tr><tr>' 'fromJan' 4 'fromApr' 4 'fromJul' 4 'fromOct' 4 NAtl '</tr><tr>' 'fromJan' 4 'fromApr' 4 'fromJul' 4 'fromOct' 4 WNPac '</tr><tr>' 'fromJan' 4 'fromApr' 4 'fromJul' 4 'fromOct' 4
    COMMENT: |
        SST Rank histogram at global, NAtl(20-70N, 110W-40E) and WNPac(20-70N, 110E-180)
        HadISST as observation data.
        Rank histogram is ranking frequency of observation data with ensemble members. ie. 
        Histogram all flat -> good ensemble
        Large at most right bin -> model members are overestimate.
        Large at most left bin  -> model members are underestimate.
        Bell shape -> model simulation is too diverse.
        Inverted bell shape -> model simulation is too concentrated.

-  # mk figures json for inter-version comparison
    plotScript: mk_index_json.sh
    JSONFILE: 21_rank_histogram_obs.json
    SHAPE: 4 4 4
    SELECTS: '"Region/type" "Initial Time" "Forecast Months"'
    OPTIONS: '"Global" "SideBins" "NAtl" "WNPac" "from Jan" "from Apr" "from Jul" "from Oct" "1-3" "4-6" "7-9" "10-12"'
    FIGURES: 
        sst_global_rank_histogram_lead1_FMA
        sst_global_rank_histogram_lead2_MJJ
        sst_global_rank_histogram_lead3_ASO
        sst_global_rank_histogram_lead4_NDJ
        sst_global_rank_histogram_lead1_MJJ
        sst_global_rank_histogram_lead2_ASO
        sst_global_rank_histogram_lead3_NDJ
        sst_global_rank_histogram_lead4_FMA
        sst_global_rank_histogram_lead1_ASO
        sst_global_rank_histogram_lead2_NDJ
        sst_global_rank_histogram_lead3_FMA
        sst_global_rank_histogram_lead4_MJJ
        sst_global_rank_histogram_lead1_NDJ
        sst_global_rank_histogram_lead2_FMA
        sst_global_rank_histogram_lead3_MJJ
        sst_global_rank_histogram_lead4_ASO

        sst_rank_freq_bins_lead1_FMA
        sst_rank_freq_bins_lead2_MJJ
        sst_rank_freq_bins_lead3_ASO
        sst_rank_freq_bins_lead4_NDJ
        sst_rank_freq_bins_lead1_MJJ
        sst_rank_freq_bins_lead2_ASO
        sst_rank_freq_bins_lead3_NDJ
        sst_rank_freq_bins_lead4_FMA
        sst_rank_freq_bins_lead1_ASO
        sst_rank_freq_bins_lead2_NDJ
        sst_rank_freq_bins_lead3_FMA
        sst_rank_freq_bins_lead4_MJJ
        sst_rank_freq_bins_lead1_NDJ
        sst_rank_freq_bins_lead2_FMA
        sst_rank_freq_bins_lead3_MJJ
        sst_rank_freq_bins_lead4_ASO

        sst_NAtl_rank_histogram_lead1_FMA
        sst_NAtl_rank_histogram_lead2_MJJ
        sst_NAtl_rank_histogram_lead3_ASO
        sst_NAtl_rank_histogram_lead4_NDJ
        sst_NAtl_rank_histogram_lead1_MJJ
        sst_NAtl_rank_histogram_lead2_ASO
        sst_NAtl_rank_histogram_lead3_NDJ
        sst_NAtl_rank_histogram_lead4_FMA
        sst_NAtl_rank_histogram_lead1_ASO
        sst_NAtl_rank_histogram_lead2_NDJ
        sst_NAtl_rank_histogram_lead3_FMA
        sst_NAtl_rank_histogram_lead4_MJJ
        sst_NAtl_rank_histogram_lead1_NDJ
        sst_NAtl_rank_histogram_lead2_FMA
        sst_NAtl_rank_histogram_lead3_MJJ
        sst_NAtl_rank_histogram_lead4_ASO

        sst_WNPac_rank_histogram_lead1_FMA
        sst_WNPac_rank_histogram_lead2_MJJ
        sst_WNPac_rank_histogram_lead3_ASO
        sst_WNPac_rank_histogram_lead4_NDJ
        sst_WNPac_rank_histogram_lead1_MJJ
        sst_WNPac_rank_histogram_lead2_ASO
        sst_WNPac_rank_histogram_lead3_NDJ
        sst_WNPac_rank_histogram_lead4_FMA
        sst_WNPac_rank_histogram_lead1_ASO
        sst_WNPac_rank_histogram_lead2_NDJ
        sst_WNPac_rank_histogram_lead3_FMA
        sst_WNPac_rank_histogram_lead4_MJJ
        sst_WNPac_rank_histogram_lead1_NDJ
        sst_WNPac_rank_histogram_lead2_FMA
        sst_WNPac_rank_histogram_lead3_MJJ
        sst_WNPac_rank_histogram_lead4_ASO
