text:
# This file contains the schemes derived from colorbrewer2.org.
# The contents of that file are covered under the Apache License 2.0, included
# in this distribution under data/.

@reg PuRd_3  [

RGB(0.906,0.882,0.937)
RGB(0.788,0.58,0.78)
RGB(0.867,0.11,0.467)
]
@reg PuRd_4  [
 RGB(0.945,0.933,0.965)
RGB(0.843,0.71,0.847)
RGB(0.875,0.396,0.69)
RGB(0.808,0.071,0.337)
]
@reg PuRd_5  [
 RGB(0.945,0.933,0.965)
RGB(0.843,0.71,0.847)
RGB(0.875,0.396,0.69)
RGB(0.867,0.11,0.467)
RGB(0.596,0.0,0.263)
]
@reg PuRd_6  [
 RGB(0.945,0.933,0.965)
RGB(0.831,0.725,0.855)
RGB(0.788,0.58,0.78)
RGB(0.875,0.396,0.69)
RGB(0.867,0.11,0.467)
RGB(0.596,0.0,0.263)
]
@reg PuRd_7  [
 RGB(0.945,0.933,0.965)
RGB(0.831,0.725,0.855)
RGB(0.788,0.58,0.78)
RGB(0.875,0.396,0.69)
RGB(0.906,0.161,0.541)
RGB(0.808,0.071,0.337)
RGB(0.569,0.0,0.247)
]
@reg PuRd_8  [
 RGB(0.969,0.957,0.976)
RGB(0.906,0.882,0.937)
RGB(0.831,0.725,0.855)
RGB(0.788,0.58,0.78)
RGB(0.875,0.396,0.69)
RGB(0.906,0.161,0.541)
RGB(0.808,0.071,0.337)
RGB(0.569,0.0,0.247)
]
@reg PuRd_9  [
 RGB(0.969,0.957,0.976)
RGB(0.906,0.882,0.937)
RGB(0.831,0.725,0.855)
RGB(0.788,0.58,0.78)
RGB(0.875,0.396,0.69)
RGB(0.906,0.161,0.541)
RGB(0.808,0.071,0.337)
RGB(0.596,0.0,0.263)
RGB(0.404,0.0,0.122)
]
@reg Purples_3  [
 RGB(0.937,0.929,0.961)
RGB(0.737,0.741,0.863)
RGB(0.459,0.42,0.694)
]
@reg Purples_4  [
 RGB(0.949,0.941,0.969)
RGB(0.796,0.788,0.886)
RGB(0.62,0.604,0.784)
RGB(0.416,0.318,0.639)
]
@reg Purples_5  [
 RGB(0.949,0.941,0.969)
RGB(0.796,0.788,0.886)
RGB(0.62,0.604,0.784)
RGB(0.459,0.42,0.694)
RGB(0.329,0.153,0.561)
]
@reg Purples_6  [
 RGB(0.949,0.941,0.969)
RGB(0.855,0.855,0.922)
RGB(0.737,0.741,0.863)
RGB(0.62,0.604,0.784)
RGB(0.459,0.42,0.694)
RGB(0.329,0.153,0.561)
]
@reg Purples_7  [
 RGB(0.949,0.941,0.969)
RGB(0.855,0.855,0.922)
RGB(0.737,0.741,0.863)
RGB(0.62,0.604,0.784)
RGB(0.502,0.49,0.729)
RGB(0.416,0.318,0.639)
RGB(0.29,0.078,0.525)
]
@reg Purples_8  [
 RGB(0.988,0.984,0.992)
RGB(0.937,0.929,0.961)
RGB(0.855,0.855,0.922)
RGB(0.737,0.741,0.863)
RGB(0.62,0.604,0.784)
RGB(0.502,0.49,0.729)
RGB(0.416,0.318,0.639)
RGB(0.29,0.078,0.525)
]
@reg Purples_9  [
 RGB(0.988,0.984,0.992)
RGB(0.937,0.929,0.961)
RGB(0.855,0.855,0.922)
RGB(0.737,0.741,0.863)
RGB(0.62,0.604,0.784)
RGB(0.502,0.49,0.729)
RGB(0.416,0.318,0.639)
RGB(0.329,0.153,0.561)
RGB(0.247,0.0,0.49)
]
@reg Set1_3  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
]
@reg Set1_4  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
]
@reg Set1_5  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
RGB(1.0,0.498,0.0)
]
@reg Set1_6  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
RGB(1.0,0.498,0.0)
RGB(1.0,1.0,0.2)
]
@reg Set1_7  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
RGB(1.0,0.498,0.0)
RGB(1.0,1.0,0.2)
RGB(0.651,0.337,0.157)
]
@reg Set1_8  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
RGB(1.0,0.498,0.0)
RGB(1.0,1.0,0.2)
RGB(0.651,0.337,0.157)
RGB(0.969,0.506,0.749)
]
@reg Set1_9  [
 RGB(0.894,0.102,0.11)
RGB(0.216,0.494,0.722)
RGB(0.302,0.686,0.29)
RGB(0.596,0.306,0.639)
RGB(1.0,0.498,0.0)
RGB(1.0,1.0,0.2)
RGB(0.651,0.337,0.157)
RGB(0.969,0.506,0.749)
RGB(0.6,0.6,0.6)
]
@reg Greens_3  [
 RGB(0.898,0.961,0.878)
RGB(0.631,0.851,0.608)
RGB(0.192,0.639,0.329)
]
@reg Greens_4  [
 RGB(0.929,0.973,0.914)
RGB(0.729,0.894,0.702)
RGB(0.455,0.769,0.463)
RGB(0.137,0.545,0.271)
]
@reg Greens_5  [
 RGB(0.929,0.973,0.914)
RGB(0.729,0.894,0.702)
RGB(0.455,0.769,0.463)
RGB(0.192,0.639,0.329)
RGB(0.0,0.427,0.173)
]
@reg Greens_6  [
 RGB(0.929,0.973,0.914)
RGB(0.78,0.914,0.753)
RGB(0.631,0.851,0.608)
RGB(0.455,0.769,0.463)
RGB(0.192,0.639,0.329)
RGB(0.0,0.427,0.173)
]
@reg Greens_7  [
 RGB(0.929,0.973,0.914)
RGB(0.78,0.914,0.753)
RGB(0.631,0.851,0.608)
RGB(0.455,0.769,0.463)
RGB(0.255,0.671,0.365)
RGB(0.137,0.545,0.271)
RGB(0.0,0.353,0.196)
]
@reg Greens_8  [
 RGB(0.969,0.988,0.961)
RGB(0.898,0.961,0.878)
RGB(0.78,0.914,0.753)
RGB(0.631,0.851,0.608)
RGB(0.455,0.769,0.463)
RGB(0.255,0.671,0.365)
RGB(0.137,0.545,0.271)
RGB(0.0,0.353,0.196)
]
@reg Greens_9  [
 RGB(0.969,0.988,0.961)
RGB(0.898,0.961,0.878)
RGB(0.78,0.914,0.753)
RGB(0.631,0.851,0.608)
RGB(0.455,0.769,0.463)
RGB(0.255,0.671,0.365)
RGB(0.137,0.545,0.271)
RGB(0.0,0.427,0.173)
RGB(0.0,0.267,0.106)
]
@reg YlOrRd_3  [
 RGB(1.0,0.929,0.627)
RGB(0.996,0.698,0.298)
RGB(0.941,0.231,0.125)
]
@reg YlOrRd_4  [
 RGB(1.0,1.0,0.698)
RGB(0.996,0.8,0.361)
RGB(0.992,0.553,0.235)
RGB(0.89,0.102,0.11)
]
@reg YlOrRd_5  [
 RGB(1.0,1.0,0.698)
RGB(0.996,0.8,0.361)
RGB(0.992,0.553,0.235)
RGB(0.941,0.231,0.125)
RGB(0.741,0.0,0.149)
]
@reg YlOrRd_6  [
 RGB(1.0,1.0,0.698)
RGB(0.996,0.851,0.463)
RGB(0.996,0.698,0.298)
RGB(0.992,0.553,0.235)
RGB(0.941,0.231,0.125)
RGB(0.741,0.0,0.149)
]
@reg YlOrRd_7  [
 RGB(1.0,1.0,0.698)
RGB(0.996,0.851,0.463)
RGB(0.996,0.698,0.298)
RGB(0.992,0.553,0.235)
RGB(0.988,0.306,0.165)
RGB(0.89,0.102,0.11)
RGB(0.694,0.0,0.149)
]
@reg YlOrRd_8  [
 RGB(1.0,1.0,0.8)
RGB(1.0,0.929,0.627)
RGB(0.996,0.851,0.463)
RGB(0.996,0.698,0.298)
RGB(0.992,0.553,0.235)
RGB(0.988,0.306,0.165)
RGB(0.89,0.102,0.11)
RGB(0.694,0.0,0.149)
]
@reg YlOrRd_9  [
 RGB(1.0,1.0,0.8)
RGB(1.0,0.929,0.627)
RGB(0.996,0.851,0.463)
RGB(0.996,0.698,0.298)
RGB(0.992,0.553,0.235)
RGB(0.988,0.306,0.165)
RGB(0.89,0.102,0.11)
RGB(0.741,0.0,0.149)
RGB(0.502,0.0,0.149)
]
@reg Pastel1_3  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
]
@reg Pastel1_4  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
]
@reg Pastel1_5  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
RGB(0.996,0.851,0.651)
]
@reg Pastel1_6  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
RGB(0.996,0.851,0.651)
RGB(1.0,1.0,0.8)
]
@reg Pastel1_7  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
RGB(0.996,0.851,0.651)
RGB(1.0,1.0,0.8)
RGB(0.898,0.847,0.741)
]
@reg Pastel1_8  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
RGB(0.996,0.851,0.651)
RGB(1.0,1.0,0.8)
RGB(0.898,0.847,0.741)
RGB(0.992,0.855,0.925)
]
@reg Pastel1_9  [
 RGB(0.984,0.706,0.682)
RGB(0.702,0.804,0.89)
RGB(0.8,0.922,0.773)
RGB(0.871,0.796,0.894)
RGB(0.996,0.851,0.651)
RGB(1.0,1.0,0.8)
RGB(0.898,0.847,0.741)
RGB(0.992,0.855,0.925)
RGB(0.949,0.949,0.949)
]
@reg RdYlBu_3  [
 RGB(0.988,0.553,0.349)
RGB(1.0,1.0,0.749)
RGB(0.569,0.749,0.859)
]
@reg RdYlBu_4  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(0.671,0.851,0.914)
RGB(0.173,0.482,0.714)
]
@reg RdYlBu_5  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(1.0,1.0,0.749)
RGB(0.671,0.851,0.914)
RGB(0.173,0.482,0.714)
]
@reg RdYlBu_6  [
 RGB(0.843,0.188,0.153)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.565)
RGB(0.878,0.953,0.973)
RGB(0.569,0.749,0.859)
RGB(0.271,0.459,0.706)
]
@reg RdYlBu_7  [
 RGB(0.843,0.188,0.153)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.565)
RGB(1.0,1.0,0.749)
RGB(0.878,0.953,0.973)
RGB(0.569,0.749,0.859)
RGB(0.271,0.459,0.706)
]
@reg RdYlBu_8  [
 RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.565)
RGB(0.878,0.953,0.973)
RGB(0.671,0.851,0.914)
RGB(0.455,0.678,0.82)
RGB(0.271,0.459,0.706)
]
@reg RdYlBu_9  [
 RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.565)
RGB(1.0,1.0,0.749)
RGB(0.878,0.953,0.973)
RGB(0.671,0.851,0.914)
RGB(0.455,0.678,0.82)
RGB(0.271,0.459,0.706)
]
@reg RdYlBu_10  [
 RGB(0.647,0.0,0.149)
RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.565)
RGB(0.878,0.953,0.973)
RGB(0.671,0.851,0.914)
RGB(0.455,0.678,0.82)
RGB(0.271,0.459,0.706)
RGB(0.192,0.212,0.584)
]
@reg RdYlBu_11  [
 RGB(0.647,0.0,0.149)
RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.565)
RGB(1.0,1.0,0.749)
RGB(0.878,0.953,0.973)
RGB(0.671,0.851,0.914)
RGB(0.455,0.678,0.82)
RGB(0.271,0.459,0.706)
RGB(0.192,0.212,0.584)
]
@reg YlGnBu_3  [
 RGB(0.929,0.973,0.694)
RGB(0.498,0.804,0.733)
RGB(0.173,0.498,0.722)
]
@reg YlGnBu_4  [
 RGB(1.0,1.0,0.8)
RGB(0.631,0.855,0.706)
RGB(0.255,0.714,0.769)
RGB(0.133,0.369,0.659)
]
@reg YlGnBu_5  [
 RGB(1.0,1.0,0.8)
RGB(0.631,0.855,0.706)
RGB(0.255,0.714,0.769)
RGB(0.173,0.498,0.722)
RGB(0.145,0.204,0.58)
]
@reg YlGnBu_6  [
 RGB(1.0,1.0,0.8)
RGB(0.78,0.914,0.706)
RGB(0.498,0.804,0.733)
RGB(0.255,0.714,0.769)
RGB(0.173,0.498,0.722)
RGB(0.145,0.204,0.58)
]
@reg YlGnBu_7  [
 RGB(1.0,1.0,0.8)
RGB(0.78,0.914,0.706)
RGB(0.498,0.804,0.733)
RGB(0.255,0.714,0.769)
RGB(0.114,0.569,0.753)
RGB(0.133,0.369,0.659)
RGB(0.047,0.173,0.518)
]
@reg YlGnBu_8  [
 RGB(1.0,1.0,0.851)
RGB(0.929,0.973,0.694)
RGB(0.78,0.914,0.706)
RGB(0.498,0.804,0.733)
RGB(0.255,0.714,0.769)
RGB(0.114,0.569,0.753)
RGB(0.133,0.369,0.659)
RGB(0.047,0.173,0.518)
]
@reg YlGnBu_9  [
 RGB(1.0,1.0,0.851)
RGB(0.929,0.973,0.694)
RGB(0.78,0.914,0.706)
RGB(0.498,0.804,0.733)
RGB(0.255,0.714,0.769)
RGB(0.114,0.569,0.753)
RGB(0.133,0.369,0.659)
RGB(0.145,0.204,0.58)
RGB(0.031,0.114,0.345)
]
@reg Blues_3  [
 RGB(0.871,0.922,0.969)
RGB(0.62,0.792,0.882)
RGB(0.192,0.51,0.741)
]
@reg Blues_4  [
 RGB(0.937,0.953,1.0)
RGB(0.741,0.843,0.906)
RGB(0.42,0.682,0.839)
RGB(0.129,0.443,0.71)
]
@reg Blues_5  [
 RGB(0.937,0.953,1.0)
RGB(0.741,0.843,0.906)
RGB(0.42,0.682,0.839)
RGB(0.192,0.51,0.741)
RGB(0.031,0.318,0.612)
]
@reg Blues_6  [
 RGB(0.937,0.953,1.0)
RGB(0.776,0.859,0.937)
RGB(0.62,0.792,0.882)
RGB(0.42,0.682,0.839)
RGB(0.192,0.51,0.741)
RGB(0.031,0.318,0.612)
]
@reg Blues_7  [
 RGB(0.937,0.953,1.0)
RGB(0.776,0.859,0.937)
RGB(0.62,0.792,0.882)
RGB(0.42,0.682,0.839)
RGB(0.259,0.573,0.776)
RGB(0.129,0.443,0.71)
RGB(0.031,0.271,0.58)
]
@reg Blues_8  [
 RGB(0.969,0.984,1.0)
RGB(0.871,0.922,0.969)
RGB(0.776,0.859,0.937)
RGB(0.62,0.792,0.882)
RGB(0.42,0.682,0.839)
RGB(0.259,0.573,0.776)
RGB(0.129,0.443,0.71)
RGB(0.031,0.271,0.58)
]
@reg Blues_9  [
 RGB(0.969,0.984,1.0)
RGB(0.871,0.922,0.969)
RGB(0.776,0.859,0.937)
RGB(0.62,0.792,0.882)
RGB(0.42,0.682,0.839)
RGB(0.259,0.573,0.776)
RGB(0.129,0.443,0.71)
RGB(0.031,0.318,0.612)
RGB(0.031,0.188,0.42)
]
@reg Set3_3  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
]
@reg Set3_4  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
]
@reg Set3_5  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
]
@reg Set3_6  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
]
@reg Set3_7  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
]
@reg Set3_8  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
RGB(0.988,0.804,0.898)
]
@reg Set3_9  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
RGB(0.988,0.804,0.898)
RGB(0.851,0.851,0.851)
]
@reg Set3_10  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
RGB(0.988,0.804,0.898)
RGB(0.851,0.851,0.851)
RGB(0.737,0.502,0.741)
]
@reg Set3_11  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
RGB(0.988,0.804,0.898)
RGB(0.851,0.851,0.851)
RGB(0.737,0.502,0.741)
RGB(0.8,0.922,0.773)
]
@reg Set3_12  [
 RGB(0.553,0.827,0.78)
RGB(1.0,1.0,0.702)
RGB(0.745,0.729,0.855)
RGB(0.984,0.502,0.447)
RGB(0.502,0.694,0.827)
RGB(0.992,0.706,0.384)
RGB(0.702,0.871,0.412)
RGB(0.988,0.804,0.898)
RGB(0.851,0.851,0.851)
RGB(0.737,0.502,0.741)
RGB(0.8,0.922,0.773)
RGB(1.0,0.929,0.435)
]
@reg Reds_3  [
 RGB(0.996,0.878,0.824)
RGB(0.988,0.573,0.447)
RGB(0.871,0.176,0.149)
]
@reg Reds_4  [
 RGB(0.996,0.898,0.851)
RGB(0.988,0.682,0.569)
RGB(0.984,0.416,0.29)
RGB(0.796,0.094,0.114)
]
@reg Reds_5  [
 RGB(0.996,0.898,0.851)
RGB(0.988,0.682,0.569)
RGB(0.984,0.416,0.29)
RGB(0.871,0.176,0.149)
RGB(0.647,0.059,0.082)
]
@reg Reds_6  [
 RGB(0.996,0.898,0.851)
RGB(0.988,0.733,0.631)
RGB(0.988,0.573,0.447)
RGB(0.984,0.416,0.29)
RGB(0.871,0.176,0.149)
RGB(0.647,0.059,0.082)
]
@reg Reds_7  [
 RGB(0.996,0.898,0.851)
RGB(0.988,0.733,0.631)
RGB(0.988,0.573,0.447)
RGB(0.984,0.416,0.29)
RGB(0.937,0.231,0.173)
RGB(0.796,0.094,0.114)
RGB(0.6,0.0,0.051)
]
@reg Reds_8  [
 RGB(1.0,0.961,0.941)
RGB(0.996,0.878,0.824)
RGB(0.988,0.733,0.631)
RGB(0.988,0.573,0.447)
RGB(0.984,0.416,0.29)
RGB(0.937,0.231,0.173)
RGB(0.796,0.094,0.114)
RGB(0.6,0.0,0.051)
]
@reg Reds_9  [
 RGB(1.0,0.961,0.941)
RGB(0.996,0.878,0.824)
RGB(0.988,0.733,0.631)
RGB(0.988,0.573,0.447)
RGB(0.984,0.416,0.29)
RGB(0.937,0.231,0.173)
RGB(0.796,0.094,0.114)
RGB(0.647,0.059,0.082)
RGB(0.404,0.0,0.051)
]
@reg PuBu_3  [
 RGB(0.925,0.906,0.949)
RGB(0.651,0.741,0.859)
RGB(0.169,0.549,0.745)
]
@reg PuBu_4  [
 RGB(0.945,0.933,0.965)
RGB(0.741,0.788,0.882)
RGB(0.455,0.663,0.812)
RGB(0.02,0.439,0.69)
]
@reg PuBu_5  [
 RGB(0.945,0.933,0.965)
RGB(0.741,0.788,0.882)
RGB(0.455,0.663,0.812)
RGB(0.169,0.549,0.745)
RGB(0.016,0.353,0.553)
]
@reg PuBu_6  [
 RGB(0.945,0.933,0.965)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.455,0.663,0.812)
RGB(0.169,0.549,0.745)
RGB(0.016,0.353,0.553)
]
@reg PuBu_7  [
 RGB(0.945,0.933,0.965)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.455,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.02,0.439,0.69)
RGB(0.012,0.306,0.482)
]
@reg PuBu_8  [
 RGB(1.0,0.969,0.984)
RGB(0.925,0.906,0.949)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.455,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.02,0.439,0.69)
RGB(0.012,0.306,0.482)
]
@reg PuBu_9  [
 RGB(1.0,0.969,0.984)
RGB(0.925,0.906,0.949)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.455,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.02,0.439,0.69)
RGB(0.016,0.353,0.553)
RGB(0.008,0.22,0.345)
]
@reg BuPu_3  [
 RGB(0.878,0.925,0.957)
RGB(0.62,0.737,0.855)
RGB(0.533,0.337,0.655)
]
@reg BuPu_4  [
 RGB(0.929,0.973,0.984)
RGB(0.702,0.804,0.89)
RGB(0.549,0.588,0.776)
RGB(0.533,0.255,0.616)
]
@reg BuPu_5  [
 RGB(0.929,0.973,0.984)
RGB(0.702,0.804,0.89)
RGB(0.549,0.588,0.776)
RGB(0.533,0.337,0.655)
RGB(0.506,0.059,0.486)
]
@reg BuPu_6  [
 RGB(0.929,0.973,0.984)
RGB(0.749,0.827,0.902)
RGB(0.62,0.737,0.855)
RGB(0.549,0.588,0.776)
RGB(0.533,0.337,0.655)
RGB(0.506,0.059,0.486)
]
@reg BuPu_7  [
 RGB(0.929,0.973,0.984)
RGB(0.749,0.827,0.902)
RGB(0.62,0.737,0.855)
RGB(0.549,0.588,0.776)
RGB(0.549,0.42,0.694)
RGB(0.533,0.255,0.616)
RGB(0.431,0.004,0.42)
]
@reg BuPu_8  [
 RGB(0.969,0.988,0.992)
RGB(0.878,0.925,0.957)
RGB(0.749,0.827,0.902)
RGB(0.62,0.737,0.855)
RGB(0.549,0.588,0.776)
RGB(0.549,0.42,0.694)
RGB(0.533,0.255,0.616)
RGB(0.431,0.004,0.42)
]
@reg BuPu_9  [
 RGB(0.969,0.988,0.992)
RGB(0.878,0.925,0.957)
RGB(0.749,0.827,0.902)
RGB(0.62,0.737,0.855)
RGB(0.549,0.588,0.776)
RGB(0.549,0.42,0.694)
RGB(0.533,0.255,0.616)
RGB(0.506,0.059,0.486)
RGB(0.302,0.0,0.294)
]
@reg RdYlGn_3  [
 RGB(0.988,0.553,0.349)
RGB(1.0,1.0,0.749)
RGB(0.569,0.812,0.376)
]
@reg RdYlGn_4  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(0.651,0.851,0.416)
RGB(0.102,0.588,0.255)
]
@reg RdYlGn_5  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(1.0,1.0,0.749)
RGB(0.651,0.851,0.416)
RGB(0.102,0.588,0.255)
]
@reg RdYlGn_6  [
 RGB(0.843,0.188,0.153)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.545)
RGB(0.851,0.937,0.545)
RGB(0.569,0.812,0.376)
RGB(0.102,0.596,0.314)
]
@reg RdYlGn_7  [
 RGB(0.843,0.188,0.153)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.851,0.937,0.545)
RGB(0.569,0.812,0.376)
RGB(0.102,0.596,0.314)
]
@reg RdYlGn_8  [
 RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(0.851,0.937,0.545)
RGB(0.651,0.851,0.416)
RGB(0.4,0.741,0.388)
RGB(0.102,0.596,0.314)
]
@reg RdYlGn_9  [
 RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.851,0.937,0.545)
RGB(0.651,0.851,0.416)
RGB(0.4,0.741,0.388)
RGB(0.102,0.596,0.314)
]
@reg RdYlGn_10  [
 RGB(0.647,0.0,0.149)
RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(0.851,0.937,0.545)
RGB(0.651,0.851,0.416)
RGB(0.4,0.741,0.388)
RGB(0.102,0.596,0.314)
RGB(0.0,0.408,0.216)
]
@reg RdYlGn_11  [
 RGB(0.647,0.0,0.149)
RGB(0.843,0.188,0.153)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.851,0.937,0.545)
RGB(0.651,0.851,0.416)
RGB(0.4,0.741,0.388)
RGB(0.102,0.596,0.314)
RGB(0.0,0.408,0.216)
]
@reg Pastel2_3  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
]
@reg Pastel2_4  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
RGB(0.957,0.792,0.894)
]
@reg Pastel2_5  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
RGB(0.957,0.792,0.894)
RGB(0.902,0.961,0.788)
]
@reg Pastel2_6  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
RGB(0.957,0.792,0.894)
RGB(0.902,0.961,0.788)
RGB(1.0,0.949,0.682)
]
@reg Pastel2_7  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
RGB(0.957,0.792,0.894)
RGB(0.902,0.961,0.788)
RGB(1.0,0.949,0.682)
RGB(0.945,0.886,0.8)
]
@reg Pastel2_8  [
 RGB(0.702,0.886,0.804)
RGB(0.992,0.804,0.675)
RGB(0.796,0.835,0.91)
RGB(0.957,0.792,0.894)
RGB(0.902,0.961,0.788)
RGB(1.0,0.949,0.682)
RGB(0.945,0.886,0.8)
RGB(0.8,0.8,0.8)
]
@reg BuGn_3  [
 RGB(0.898,0.961,0.976)
RGB(0.6,0.847,0.788)
RGB(0.173,0.635,0.373)
]
@reg BuGn_4  [
 RGB(0.929,0.973,0.984)
RGB(0.698,0.886,0.886)
RGB(0.4,0.761,0.643)
RGB(0.137,0.545,0.271)
]
@reg BuGn_5  [
 RGB(0.929,0.973,0.984)
RGB(0.698,0.886,0.886)
RGB(0.4,0.761,0.643)
RGB(0.173,0.635,0.373)
RGB(0.0,0.427,0.173)
]
@reg BuGn_6  [
 RGB(0.929,0.973,0.984)
RGB(0.8,0.925,0.902)
RGB(0.6,0.847,0.788)
RGB(0.4,0.761,0.643)
RGB(0.173,0.635,0.373)
RGB(0.0,0.427,0.173)
]
@reg BuGn_7  [
 RGB(0.929,0.973,0.984)
RGB(0.8,0.925,0.902)
RGB(0.6,0.847,0.788)
RGB(0.4,0.761,0.643)
RGB(0.255,0.682,0.463)
RGB(0.137,0.545,0.271)
RGB(0.0,0.345,0.141)
]
@reg BuGn_8  [
 RGB(0.969,0.988,0.992)
RGB(0.898,0.961,0.976)
RGB(0.8,0.925,0.902)
RGB(0.6,0.847,0.788)
RGB(0.4,0.761,0.643)
RGB(0.255,0.682,0.463)
RGB(0.137,0.545,0.271)
RGB(0.0,0.345,0.141)
]
@reg BuGn_9  [
 RGB(0.969,0.988,0.992)
RGB(0.898,0.961,0.976)
RGB(0.8,0.925,0.902)
RGB(0.6,0.847,0.788)
RGB(0.4,0.761,0.643)
RGB(0.255,0.682,0.463)
RGB(0.137,0.545,0.271)
RGB(0.0,0.427,0.173)
RGB(0.0,0.267,0.106)
]
@reg YlOrBr_3  [
 RGB(1.0,0.969,0.737)
RGB(0.996,0.769,0.31)
RGB(0.851,0.373,0.055)
]
@reg YlOrBr_4  [
 RGB(1.0,1.0,0.831)
RGB(0.996,0.851,0.557)
RGB(0.996,0.6,0.161)
RGB(0.8,0.298,0.008)
]
@reg YlOrBr_5  [
 RGB(1.0,1.0,0.831)
RGB(0.996,0.851,0.557)
RGB(0.996,0.6,0.161)
RGB(0.851,0.373,0.055)
RGB(0.6,0.204,0.016)
]
@reg YlOrBr_6  [
 RGB(1.0,1.0,0.831)
RGB(0.996,0.89,0.569)
RGB(0.996,0.769,0.31)
RGB(0.996,0.6,0.161)
RGB(0.851,0.373,0.055)
RGB(0.6,0.204,0.016)
]
@reg YlOrBr_7  [
 RGB(1.0,1.0,0.831)
RGB(0.996,0.89,0.569)
RGB(0.996,0.769,0.31)
RGB(0.996,0.6,0.161)
RGB(0.925,0.439,0.078)
RGB(0.8,0.298,0.008)
RGB(0.549,0.176,0.016)
]
@reg YlOrBr_8  [
 RGB(1.0,1.0,0.898)
RGB(1.0,0.969,0.737)
RGB(0.996,0.89,0.569)
RGB(0.996,0.769,0.31)
RGB(0.996,0.6,0.161)
RGB(0.925,0.439,0.078)
RGB(0.8,0.298,0.008)
RGB(0.549,0.176,0.016)
]
@reg YlOrBr_9  [
 RGB(1.0,1.0,0.898)
RGB(1.0,0.969,0.737)
RGB(0.996,0.89,0.569)
RGB(0.996,0.769,0.31)
RGB(0.996,0.6,0.161)
RGB(0.925,0.439,0.078)
RGB(0.8,0.298,0.008)
RGB(0.6,0.204,0.016)
RGB(0.4,0.145,0.024)
]
@reg PuBuGn_3  [
 RGB(0.925,0.886,0.941)
RGB(0.651,0.741,0.859)
RGB(0.11,0.565,0.6)
]
@reg PuBuGn_4  [
 RGB(0.965,0.937,0.969)
RGB(0.741,0.788,0.882)
RGB(0.404,0.663,0.812)
RGB(0.008,0.506,0.541)
]
@reg PuBuGn_5  [
 RGB(0.965,0.937,0.969)
RGB(0.741,0.788,0.882)
RGB(0.404,0.663,0.812)
RGB(0.11,0.565,0.6)
RGB(0.004,0.424,0.349)
]
@reg PuBuGn_6  [
 RGB(0.965,0.937,0.969)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.404,0.663,0.812)
RGB(0.11,0.565,0.6)
RGB(0.004,0.424,0.349)
]
@reg PuBuGn_7  [
 RGB(0.965,0.937,0.969)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.404,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.008,0.506,0.541)
RGB(0.004,0.392,0.314)
]
@reg PuBuGn_8  [
 RGB(1.0,0.969,0.984)
RGB(0.925,0.886,0.941)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.404,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.008,0.506,0.541)
RGB(0.004,0.392,0.314)
]
@reg PuBuGn_9  [
 RGB(1.0,0.969,0.984)
RGB(0.925,0.886,0.941)
RGB(0.816,0.82,0.902)
RGB(0.651,0.741,0.859)
RGB(0.404,0.663,0.812)
RGB(0.212,0.565,0.753)
RGB(0.008,0.506,0.541)
RGB(0.004,0.424,0.349)
RGB(0.004,0.275,0.212)
]
@reg Spectral_3  [
 RGB(0.988,0.553,0.349)
RGB(1.0,1.0,0.749)
RGB(0.6,0.835,0.58)
]
@reg Spectral_4  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(0.671,0.867,0.643)
RGB(0.169,0.514,0.729)
]
@reg Spectral_5  [
 RGB(0.843,0.098,0.11)
RGB(0.992,0.682,0.38)
RGB(1.0,1.0,0.749)
RGB(0.671,0.867,0.643)
RGB(0.169,0.514,0.729)
]
@reg Spectral_6  [
 RGB(0.835,0.243,0.31)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.545)
RGB(0.902,0.961,0.596)
RGB(0.6,0.835,0.58)
RGB(0.196,0.533,0.741)
]
@reg Spectral_7  [
 RGB(0.835,0.243,0.31)
RGB(0.988,0.553,0.349)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.902,0.961,0.596)
RGB(0.6,0.835,0.58)
RGB(0.196,0.533,0.741)
]
@reg Spectral_8  [
 RGB(0.835,0.243,0.31)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(0.902,0.961,0.596)
RGB(0.671,0.867,0.643)
RGB(0.4,0.761,0.647)
RGB(0.196,0.533,0.741)
]
@reg Spectral_9  [
 RGB(0.835,0.243,0.31)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.902,0.961,0.596)
RGB(0.671,0.867,0.643)
RGB(0.4,0.761,0.647)
RGB(0.196,0.533,0.741)
]
@reg Spectral_10  [
 RGB(0.62,0.004,0.259)
RGB(0.835,0.243,0.31)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(0.902,0.961,0.596)
RGB(0.671,0.867,0.643)
RGB(0.4,0.761,0.647)
RGB(0.196,0.533,0.741)
RGB(0.369,0.31,0.635)
]
@reg Spectral_11  [
 RGB(0.62,0.004,0.259)
RGB(0.835,0.243,0.31)
RGB(0.957,0.427,0.263)
RGB(0.992,0.682,0.38)
RGB(0.996,0.878,0.545)
RGB(1.0,1.0,0.749)
RGB(0.902,0.961,0.596)
RGB(0.671,0.867,0.643)
RGB(0.4,0.761,0.647)
RGB(0.196,0.533,0.741)
RGB(0.369,0.31,0.635)
]
@reg YlGn_3  [
 RGB(0.969,0.988,0.725)
RGB(0.678,0.867,0.557)
RGB(0.192,0.639,0.329)
]
@reg YlGn_4  [
 RGB(1.0,1.0,0.8)
RGB(0.761,0.902,0.6)
RGB(0.471,0.776,0.475)
RGB(0.137,0.518,0.263)
]
@reg YlGn_5  [
 RGB(1.0,1.0,0.8)
RGB(0.761,0.902,0.6)
RGB(0.471,0.776,0.475)
RGB(0.192,0.639,0.329)
RGB(0.0,0.408,0.216)
]
@reg YlGn_6  [
 RGB(1.0,1.0,0.8)
RGB(0.851,0.941,0.639)
RGB(0.678,0.867,0.557)
RGB(0.471,0.776,0.475)
RGB(0.192,0.639,0.329)
RGB(0.0,0.408,0.216)
]
@reg YlGn_7  [
 RGB(1.0,1.0,0.8)
RGB(0.851,0.941,0.639)
RGB(0.678,0.867,0.557)
RGB(0.471,0.776,0.475)
RGB(0.255,0.671,0.365)
RGB(0.137,0.518,0.263)
RGB(0.0,0.353,0.196)
]
@reg YlGn_8  [
 RGB(1.0,1.0,0.898)
RGB(0.969,0.988,0.725)
RGB(0.851,0.941,0.639)
RGB(0.678,0.867,0.557)
RGB(0.471,0.776,0.475)
RGB(0.255,0.671,0.365)
RGB(0.137,0.518,0.263)
RGB(0.0,0.353,0.196)
]
@reg YlGn_9  [
 RGB(1.0,1.0,0.898)
RGB(0.969,0.988,0.725)
RGB(0.851,0.941,0.639)
RGB(0.678,0.867,0.557)
RGB(0.471,0.776,0.475)
RGB(0.255,0.671,0.365)
RGB(0.137,0.518,0.263)
RGB(0.0,0.408,0.216)
RGB(0.0,0.271,0.161)
]
@reg RdGy_3  [
 RGB(0.937,0.541,0.384)
RGB(1.0,1.0,1.0)
RGB(0.6,0.6,0.6)
]
@reg RdGy_4  [
 RGB(0.792,0.0,0.125)
RGB(0.957,0.647,0.51)
RGB(0.729,0.729,0.729)
RGB(0.251,0.251,0.251)
]
@reg RdGy_5  [
 RGB(0.792,0.0,0.125)
RGB(0.957,0.647,0.51)
RGB(1.0,1.0,1.0)
RGB(0.729,0.729,0.729)
RGB(0.251,0.251,0.251)
]
@reg RdGy_6  [
 RGB(0.698,0.094,0.169)
RGB(0.937,0.541,0.384)
RGB(0.992,0.859,0.78)
RGB(0.878,0.878,0.878)
RGB(0.6,0.6,0.6)
RGB(0.302,0.302,0.302)
]
@reg RdGy_7  [
 RGB(0.698,0.094,0.169)
RGB(0.937,0.541,0.384)
RGB(0.992,0.859,0.78)
RGB(1.0,1.0,1.0)
RGB(0.878,0.878,0.878)
RGB(0.6,0.6,0.6)
RGB(0.302,0.302,0.302)
]
@reg RdGy_8  [
 RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.878,0.878,0.878)
RGB(0.729,0.729,0.729)
RGB(0.529,0.529,0.529)
RGB(0.302,0.302,0.302)
]
@reg RdGy_9  [
 RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(1.0,1.0,1.0)
RGB(0.878,0.878,0.878)
RGB(0.729,0.729,0.729)
RGB(0.529,0.529,0.529)
RGB(0.302,0.302,0.302)
]
@reg RdGy_10  [
 RGB(0.404,0.0,0.122)
RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.878,0.878,0.878)
RGB(0.729,0.729,0.729)
RGB(0.529,0.529,0.529)
RGB(0.302,0.302,0.302)
RGB(0.102,0.102,0.102)
]
@reg RdGy_11  [
 RGB(0.404,0.0,0.122)
RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(1.0,1.0,1.0)
RGB(0.878,0.878,0.878)
RGB(0.729,0.729,0.729)
RGB(0.529,0.529,0.529)
RGB(0.302,0.302,0.302)
RGB(0.102,0.102,0.102)
]
@reg Greys_3  [
 RGB(0.941,0.941,0.941)
RGB(0.741,0.741,0.741)
RGB(0.388,0.388,0.388)
]
@reg Greys_4  [
 RGB(0.969,0.969,0.969)
RGB(0.8,0.8,0.8)
RGB(0.588,0.588,0.588)
RGB(0.322,0.322,0.322)
]
@reg Greys_5  [
 RGB(0.969,0.969,0.969)
RGB(0.8,0.8,0.8)
RGB(0.588,0.588,0.588)
RGB(0.388,0.388,0.388)
RGB(0.145,0.145,0.145)
]
@reg Greys_6  [
 RGB(0.969,0.969,0.969)
RGB(0.851,0.851,0.851)
RGB(0.741,0.741,0.741)
RGB(0.588,0.588,0.588)
RGB(0.388,0.388,0.388)
RGB(0.145,0.145,0.145)
]
@reg Greys_7  [
 RGB(0.969,0.969,0.969)
RGB(0.851,0.851,0.851)
RGB(0.741,0.741,0.741)
RGB(0.588,0.588,0.588)
RGB(0.451,0.451,0.451)
RGB(0.322,0.322,0.322)
RGB(0.145,0.145,0.145)
]
@reg Greys_8  [
 RGB(1.0,1.0,1.0)
RGB(0.941,0.941,0.941)
RGB(0.851,0.851,0.851)
RGB(0.741,0.741,0.741)
RGB(0.588,0.588,0.588)
RGB(0.451,0.451,0.451)
RGB(0.322,0.322,0.322)
RGB(0.145,0.145,0.145)
]
@reg Greys_9  [
 RGB(1.0,1.0,1.0)
RGB(0.941,0.941,0.941)
RGB(0.851,0.851,0.851)
RGB(0.741,0.741,0.741)
RGB(0.588,0.588,0.588)
RGB(0.451,0.451,0.451)
RGB(0.322,0.322,0.322)
RGB(0.145,0.145,0.145)
RGB(0.0,0.0,0.0)
]
@reg BrBG_3  [
 RGB(0.847,0.702,0.396)
RGB(0.961,0.961,0.961)
RGB(0.353,0.706,0.675)
]
@reg BrBG_4  [
 RGB(0.651,0.38,0.102)
RGB(0.875,0.761,0.49)
RGB(0.502,0.804,0.757)
RGB(0.004,0.522,0.443)
]
@reg BrBG_5  [
 RGB(0.651,0.38,0.102)
RGB(0.875,0.761,0.49)
RGB(0.961,0.961,0.961)
RGB(0.502,0.804,0.757)
RGB(0.004,0.522,0.443)
]
@reg BrBG_6  [
 RGB(0.549,0.318,0.039)
RGB(0.847,0.702,0.396)
RGB(0.965,0.91,0.765)
RGB(0.78,0.918,0.898)
RGB(0.353,0.706,0.675)
RGB(0.004,0.4,0.369)
]
@reg BrBG_7  [
 RGB(0.549,0.318,0.039)
RGB(0.847,0.702,0.396)
RGB(0.965,0.91,0.765)
RGB(0.961,0.961,0.961)
RGB(0.78,0.918,0.898)
RGB(0.353,0.706,0.675)
RGB(0.004,0.4,0.369)
]
@reg BrBG_8  [
 RGB(0.549,0.318,0.039)
RGB(0.749,0.506,0.176)
RGB(0.875,0.761,0.49)
RGB(0.965,0.91,0.765)
RGB(0.78,0.918,0.898)
RGB(0.502,0.804,0.757)
RGB(0.208,0.592,0.561)
RGB(0.004,0.4,0.369)
]
@reg BrBG_9  [
 RGB(0.549,0.318,0.039)
RGB(0.749,0.506,0.176)
RGB(0.875,0.761,0.49)
RGB(0.965,0.91,0.765)
RGB(0.961,0.961,0.961)
RGB(0.78,0.918,0.898)
RGB(0.502,0.804,0.757)
RGB(0.208,0.592,0.561)
RGB(0.004,0.4,0.369)
]
@reg BrBG_10  [
 RGB(0.329,0.188,0.02)
RGB(0.549,0.318,0.039)
RGB(0.749,0.506,0.176)
RGB(0.875,0.761,0.49)
RGB(0.965,0.91,0.765)
RGB(0.78,0.918,0.898)
RGB(0.502,0.804,0.757)
RGB(0.208,0.592,0.561)
RGB(0.004,0.4,0.369)
RGB(0.0,0.235,0.188)
]
@reg BrBG_11  [
 RGB(0.329,0.188,0.02)
RGB(0.549,0.318,0.039)
RGB(0.749,0.506,0.176)
RGB(0.875,0.761,0.49)
RGB(0.965,0.91,0.765)
RGB(0.961,0.961,0.961)
RGB(0.78,0.918,0.898)
RGB(0.502,0.804,0.757)
RGB(0.208,0.592,0.561)
RGB(0.004,0.4,0.369)
RGB(0.0,0.235,0.188)
]
@reg RdPu_3  [
 RGB(0.992,0.878,0.867)
RGB(0.98,0.624,0.71)
RGB(0.773,0.106,0.541)
]
@reg RdPu_4  [
 RGB(0.996,0.922,0.886)
RGB(0.984,0.706,0.725)
RGB(0.969,0.408,0.631)
RGB(0.682,0.004,0.494)
]
@reg RdPu_5  [
 RGB(0.996,0.922,0.886)
RGB(0.984,0.706,0.725)
RGB(0.969,0.408,0.631)
RGB(0.773,0.106,0.541)
RGB(0.478,0.004,0.467)
]
@reg RdPu_6  [
 RGB(0.996,0.922,0.886)
RGB(0.988,0.773,0.753)
RGB(0.98,0.624,0.71)
RGB(0.969,0.408,0.631)
RGB(0.773,0.106,0.541)
RGB(0.478,0.004,0.467)
]
@reg RdPu_7  [
 RGB(0.996,0.922,0.886)
RGB(0.988,0.773,0.753)
RGB(0.98,0.624,0.71)
RGB(0.969,0.408,0.631)
RGB(0.867,0.204,0.592)
RGB(0.682,0.004,0.494)
RGB(0.478,0.004,0.467)
]
@reg RdPu_8  [
 RGB(1.0,0.969,0.953)
RGB(0.992,0.878,0.867)
RGB(0.988,0.773,0.753)
RGB(0.98,0.624,0.71)
RGB(0.969,0.408,0.631)
RGB(0.867,0.204,0.592)
RGB(0.682,0.004,0.494)
RGB(0.478,0.004,0.467)
]
@reg RdPu_9  [
 RGB(1.0,0.969,0.953)
RGB(0.992,0.878,0.867)
RGB(0.988,0.773,0.753)
RGB(0.98,0.624,0.71)
RGB(0.969,0.408,0.631)
RGB(0.867,0.204,0.592)
RGB(0.682,0.004,0.494)
RGB(0.478,0.004,0.467)
RGB(0.286,0.0,0.416)
]
@reg PRGn_3  [
 RGB(0.686,0.553,0.765)
RGB(0.969,0.969,0.969)
RGB(0.498,0.749,0.482)
]
@reg PRGn_4  [
 RGB(0.482,0.196,0.58)
RGB(0.761,0.647,0.812)
RGB(0.651,0.859,0.627)
RGB(0.0,0.533,0.216)
]
@reg PRGn_5  [
 RGB(0.482,0.196,0.58)
RGB(0.761,0.647,0.812)
RGB(0.969,0.969,0.969)
RGB(0.651,0.859,0.627)
RGB(0.0,0.533,0.216)
]
@reg PRGn_6  [
 RGB(0.463,0.165,0.514)
RGB(0.686,0.553,0.765)
RGB(0.906,0.831,0.91)
RGB(0.851,0.941,0.827)
RGB(0.498,0.749,0.482)
RGB(0.106,0.471,0.216)
]
@reg PRGn_7  [
 RGB(0.463,0.165,0.514)
RGB(0.686,0.553,0.765)
RGB(0.906,0.831,0.91)
RGB(0.969,0.969,0.969)
RGB(0.851,0.941,0.827)
RGB(0.498,0.749,0.482)
RGB(0.106,0.471,0.216)
]
@reg PRGn_8  [
 RGB(0.463,0.165,0.514)
RGB(0.6,0.439,0.671)
RGB(0.761,0.647,0.812)
RGB(0.906,0.831,0.91)
RGB(0.851,0.941,0.827)
RGB(0.651,0.859,0.627)
RGB(0.353,0.682,0.38)
RGB(0.106,0.471,0.216)
]
@reg PRGn_9  [
 RGB(0.463,0.165,0.514)
RGB(0.6,0.439,0.671)
RGB(0.761,0.647,0.812)
RGB(0.906,0.831,0.91)
RGB(0.969,0.969,0.969)
RGB(0.851,0.941,0.827)
RGB(0.651,0.859,0.627)
RGB(0.353,0.682,0.38)
RGB(0.106,0.471,0.216)
]
@reg PRGn_10  [
 RGB(0.251,0.0,0.294)
RGB(0.463,0.165,0.514)
RGB(0.6,0.439,0.671)
RGB(0.761,0.647,0.812)
RGB(0.906,0.831,0.91)
RGB(0.851,0.941,0.827)
RGB(0.651,0.859,0.627)
RGB(0.353,0.682,0.38)
RGB(0.106,0.471,0.216)
RGB(0.0,0.267,0.106)
]
@reg PRGn_11  [
 RGB(0.251,0.0,0.294)
RGB(0.463,0.165,0.514)
RGB(0.6,0.439,0.671)
RGB(0.761,0.647,0.812)
RGB(0.906,0.831,0.91)
RGB(0.969,0.969,0.969)
RGB(0.851,0.941,0.827)
RGB(0.651,0.859,0.627)
RGB(0.353,0.682,0.38)
RGB(0.106,0.471,0.216)
RGB(0.0,0.267,0.106)
]
@reg Dark2_3  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
]
@reg Dark2_4  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
RGB(0.906,0.161,0.541)
]
@reg Dark2_5  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
RGB(0.906,0.161,0.541)
RGB(0.4,0.651,0.118)
]
@reg Dark2_6  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
RGB(0.906,0.161,0.541)
RGB(0.4,0.651,0.118)
RGB(0.902,0.671,0.008)
]
@reg Dark2_7  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
RGB(0.906,0.161,0.541)
RGB(0.4,0.651,0.118)
RGB(0.902,0.671,0.008)
RGB(0.651,0.463,0.114)
]
@reg Dark2_8  [
 RGB(0.106,0.62,0.467)
RGB(0.851,0.373,0.008)
RGB(0.459,0.439,0.702)
RGB(0.906,0.161,0.541)
RGB(0.4,0.651,0.118)
RGB(0.902,0.671,0.008)
RGB(0.651,0.463,0.114)
RGB(0.4,0.4,0.4)
]
@reg RdBu_3  [
 RGB(0.937,0.541,0.384)
RGB(0.969,0.969,0.969)
RGB(0.404,0.663,0.812)
]
@reg RdBu_4  [
 RGB(0.792,0.0,0.125)
RGB(0.957,0.647,0.51)
RGB(0.573,0.773,0.871)
RGB(0.02,0.443,0.69)
]
@reg RdBu_5  [
 RGB(0.792,0.0,0.125)
RGB(0.957,0.647,0.51)
RGB(0.969,0.969,0.969)
RGB(0.573,0.773,0.871)
RGB(0.02,0.443,0.69)
]
@reg RdBu_6  [
 RGB(0.698,0.094,0.169)
RGB(0.937,0.541,0.384)
RGB(0.992,0.859,0.78)
RGB(0.82,0.898,0.941)
RGB(0.404,0.663,0.812)
RGB(0.129,0.4,0.675)
]
@reg RdBu_7  [
 RGB(0.698,0.094,0.169)
RGB(0.937,0.541,0.384)
RGB(0.992,0.859,0.78)
RGB(0.969,0.969,0.969)
RGB(0.82,0.898,0.941)
RGB(0.404,0.663,0.812)
RGB(0.129,0.4,0.675)
]
@reg RdBu_8  [
 RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.82,0.898,0.941)
RGB(0.573,0.773,0.871)
RGB(0.263,0.576,0.765)
RGB(0.129,0.4,0.675)
]
@reg RdBu_9  [
 RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.969,0.969,0.969)
RGB(0.82,0.898,0.941)
RGB(0.573,0.773,0.871)
RGB(0.263,0.576,0.765)
RGB(0.129,0.4,0.675)
]
@reg RdBu_10  [
 RGB(0.404,0.0,0.122)
RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.82,0.898,0.941)
RGB(0.573,0.773,0.871)
RGB(0.263,0.576,0.765)
RGB(0.129,0.4,0.675)
RGB(0.02,0.188,0.38)
]
@reg RdBu_11  [
 RGB(0.404,0.0,0.122)
RGB(0.698,0.094,0.169)
RGB(0.839,0.376,0.302)
RGB(0.957,0.647,0.51)
RGB(0.992,0.859,0.78)
RGB(0.969,0.969,0.969)
RGB(0.82,0.898,0.941)
RGB(0.573,0.773,0.871)
RGB(0.263,0.576,0.765)
RGB(0.129,0.4,0.675)
RGB(0.02,0.188,0.38)
]
@reg PuOr_3  [
 RGB(0.945,0.639,0.251)
RGB(0.969,0.969,0.969)
RGB(0.6,0.557,0.765)
]
@reg PuOr_4  [
 RGB(0.902,0.38,0.004)
RGB(0.992,0.722,0.388)
RGB(0.698,0.671,0.824)
RGB(0.369,0.235,0.6)
]
@reg PuOr_5  [
 RGB(0.902,0.38,0.004)
RGB(0.992,0.722,0.388)
RGB(0.969,0.969,0.969)
RGB(0.698,0.671,0.824)
RGB(0.369,0.235,0.6)
]
@reg PuOr_6  [
 RGB(0.702,0.345,0.024)
RGB(0.945,0.639,0.251)
RGB(0.996,0.878,0.714)
RGB(0.847,0.855,0.922)
RGB(0.6,0.557,0.765)
RGB(0.329,0.153,0.533)
]
@reg PuOr_7  [
 RGB(0.702,0.345,0.024)
RGB(0.945,0.639,0.251)
RGB(0.996,0.878,0.714)
RGB(0.969,0.969,0.969)
RGB(0.847,0.855,0.922)
RGB(0.6,0.557,0.765)
RGB(0.329,0.153,0.533)
]
@reg PuOr_8  [
 RGB(0.702,0.345,0.024)
RGB(0.878,0.51,0.078)
RGB(0.992,0.722,0.388)
RGB(0.996,0.878,0.714)
RGB(0.847,0.855,0.922)
RGB(0.698,0.671,0.824)
RGB(0.502,0.451,0.675)
RGB(0.329,0.153,0.533)
]
@reg PuOr_9  [
 RGB(0.702,0.345,0.024)
RGB(0.878,0.51,0.078)
RGB(0.992,0.722,0.388)
RGB(0.996,0.878,0.714)
RGB(0.969,0.969,0.969)
RGB(0.847,0.855,0.922)
RGB(0.698,0.671,0.824)
RGB(0.502,0.451,0.675)
RGB(0.329,0.153,0.533)
]
@reg PuOr_10  [
 RGB(0.498,0.231,0.031)
RGB(0.702,0.345,0.024)
RGB(0.878,0.51,0.078)
RGB(0.992,0.722,0.388)
RGB(0.996,0.878,0.714)
RGB(0.847,0.855,0.922)
RGB(0.698,0.671,0.824)
RGB(0.502,0.451,0.675)
RGB(0.329,0.153,0.533)
RGB(0.176,0.0,0.294)
]
@reg PuOr_11  [
 RGB(0.498,0.231,0.031)
RGB(0.702,0.345,0.024)
RGB(0.878,0.51,0.078)
RGB(0.992,0.722,0.388)
RGB(0.996,0.878,0.714)
RGB(0.969,0.969,0.969)
RGB(0.847,0.855,0.922)
RGB(0.698,0.671,0.824)
RGB(0.502,0.451,0.675)
RGB(0.329,0.153,0.533)
RGB(0.176,0.0,0.294)
]
@reg Paired_3  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
]
@reg Paired_4  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
]
@reg Paired_5  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
]
@reg Paired_6  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
]
@reg Paired_7  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
]
@reg Paired_8  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
RGB(1.0,0.498,0.0)
]
@reg Paired_9  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
RGB(1.0,0.498,0.0)
RGB(0.792,0.698,0.839)
]
@reg Paired_10  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
RGB(1.0,0.498,0.0)
RGB(0.792,0.698,0.839)
RGB(0.416,0.239,0.604)
]
@reg Paired_11  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
RGB(1.0,0.498,0.0)
RGB(0.792,0.698,0.839)
RGB(0.416,0.239,0.604)
RGB(1.0,1.0,0.6)
]
@reg Paired_12  [
 RGB(0.651,0.808,0.89)
RGB(0.122,0.471,0.706)
RGB(0.698,0.875,0.541)
RGB(0.2,0.627,0.173)
RGB(0.984,0.604,0.6)
RGB(0.89,0.102,0.11)
RGB(0.992,0.749,0.435)
RGB(1.0,0.498,0.0)
RGB(0.792,0.698,0.839)
RGB(0.416,0.239,0.604)
RGB(1.0,1.0,0.6)
RGB(0.694,0.349,0.157)
]
@reg Set2_3  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
]
@reg Set2_4  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
RGB(0.906,0.541,0.765)
]
@reg Set2_5  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
RGB(0.906,0.541,0.765)
RGB(0.651,0.847,0.329)
]
@reg Set2_6  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
RGB(0.906,0.541,0.765)
RGB(0.651,0.847,0.329)
RGB(1.0,0.851,0.184)
]
@reg Set2_7  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
RGB(0.906,0.541,0.765)
RGB(0.651,0.847,0.329)
RGB(1.0,0.851,0.184)
RGB(0.898,0.769,0.58)
]
@reg Set2_8  [
 RGB(0.4,0.761,0.647)
RGB(0.988,0.553,0.384)
RGB(0.553,0.627,0.796)
RGB(0.906,0.541,0.765)
RGB(0.651,0.847,0.329)
RGB(1.0,0.851,0.184)
RGB(0.898,0.769,0.58)
RGB(0.702,0.702,0.702)
]
@reg Oranges_3  [
 RGB(0.996,0.902,0.808)
RGB(0.992,0.682,0.42)
RGB(0.902,0.333,0.051)
]
@reg Oranges_4  [
 RGB(0.996,0.929,0.871)
RGB(0.992,0.745,0.522)
RGB(0.992,0.553,0.235)
RGB(0.851,0.278,0.004)
]
@reg Oranges_5  [
 RGB(0.996,0.929,0.871)
RGB(0.992,0.745,0.522)
RGB(0.992,0.553,0.235)
RGB(0.902,0.333,0.051)
RGB(0.651,0.212,0.012)
]
@reg Oranges_6  [
 RGB(0.996,0.929,0.871)
RGB(0.992,0.816,0.635)
RGB(0.992,0.682,0.42)
RGB(0.992,0.553,0.235)
RGB(0.902,0.333,0.051)
RGB(0.651,0.212,0.012)
]
@reg Oranges_7  [
 RGB(0.996,0.929,0.871)
RGB(0.992,0.816,0.635)
RGB(0.992,0.682,0.42)
RGB(0.992,0.553,0.235)
RGB(0.945,0.412,0.075)
RGB(0.851,0.282,0.004)
RGB(0.549,0.176,0.016)
]
@reg Oranges_8  [
 RGB(1.0,0.961,0.922)
RGB(0.996,0.902,0.808)
RGB(0.992,0.816,0.635)
RGB(0.992,0.682,0.42)
RGB(0.992,0.553,0.235)
RGB(0.945,0.412,0.075)
RGB(0.851,0.282,0.004)
RGB(0.549,0.176,0.016)
]
@reg Oranges_9  [
 RGB(1.0,0.961,0.922)
RGB(0.996,0.902,0.808)
RGB(0.992,0.816,0.635)
RGB(0.992,0.682,0.42)
RGB(0.992,0.553,0.235)
RGB(0.945,0.412,0.075)
RGB(0.851,0.282,0.004)
RGB(0.651,0.212,0.012)
RGB(0.498,0.153,0.016)
]
@reg OrRd_3  [
 RGB(0.996,0.91,0.784)
RGB(0.992,0.733,0.518)
RGB(0.89,0.29,0.2)
]
@reg OrRd_4  [
 RGB(0.996,0.941,0.851)
RGB(0.992,0.8,0.541)
RGB(0.988,0.553,0.349)
RGB(0.843,0.188,0.122)
]
@reg OrRd_5  [
 RGB(0.996,0.941,0.851)
RGB(0.992,0.8,0.541)
RGB(0.988,0.553,0.349)
RGB(0.89,0.29,0.2)
RGB(0.702,0.0,0.0)
]
@reg OrRd_6  [
 RGB(0.996,0.941,0.851)
RGB(0.992,0.831,0.62)
RGB(0.992,0.733,0.518)
RGB(0.988,0.553,0.349)
RGB(0.89,0.29,0.2)
RGB(0.702,0.0,0.0)
]
@reg OrRd_7  [
 RGB(0.996,0.941,0.851)
RGB(0.992,0.831,0.62)
RGB(0.992,0.733,0.518)
RGB(0.988,0.553,0.349)
RGB(0.937,0.396,0.282)
RGB(0.843,0.188,0.122)
RGB(0.6,0.0,0.0)
]
@reg OrRd_8  [
 RGB(1.0,0.969,0.925)
RGB(0.996,0.91,0.784)
RGB(0.992,0.831,0.62)
RGB(0.992,0.733,0.518)
RGB(0.988,0.553,0.349)
RGB(0.937,0.396,0.282)
RGB(0.843,0.188,0.122)
RGB(0.6,0.0,0.0)
]
@reg OrRd_9  [
 RGB(1.0,0.969,0.925)
RGB(0.996,0.91,0.784)
RGB(0.992,0.831,0.62)
RGB(0.992,0.733,0.518)
RGB(0.988,0.553,0.349)
RGB(0.937,0.396,0.282)
RGB(0.843,0.188,0.122)
RGB(0.702,0.0,0.0)
RGB(0.498,0.0,0.0)
]
@reg Accent_3  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
]
@reg Accent_4  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
RGB(1.0,1.0,0.6)
]
@reg Accent_5  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
RGB(1.0,1.0,0.6)
RGB(0.22,0.424,0.69)
]
@reg Accent_6  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
RGB(1.0,1.0,0.6)
RGB(0.22,0.424,0.69)
RGB(0.941,0.008,0.498)
]
@reg Accent_7  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
RGB(1.0,1.0,0.6)
RGB(0.22,0.424,0.69)
RGB(0.941,0.008,0.498)
RGB(0.749,0.357,0.09)
]
@reg Accent_8  [
 RGB(0.498,0.788,0.498)
RGB(0.745,0.682,0.831)
RGB(0.992,0.753,0.525)
RGB(1.0,1.0,0.6)
RGB(0.22,0.424,0.69)
RGB(0.941,0.008,0.498)
RGB(0.749,0.357,0.09)
RGB(0.4,0.4,0.4)
]
@reg GnBu_3  [
 RGB(0.878,0.953,0.859)
RGB(0.659,0.867,0.71)
RGB(0.263,0.635,0.792)
]
@reg GnBu_4  [
 RGB(0.941,0.976,0.91)
RGB(0.729,0.894,0.737)
RGB(0.482,0.8,0.769)
RGB(0.169,0.549,0.745)
]
@reg GnBu_5  [
 RGB(0.941,0.976,0.91)
RGB(0.729,0.894,0.737)
RGB(0.482,0.8,0.769)
RGB(0.263,0.635,0.792)
RGB(0.031,0.408,0.675)
]
@reg GnBu_6  [
 RGB(0.941,0.976,0.91)
RGB(0.8,0.922,0.773)
RGB(0.659,0.867,0.71)
RGB(0.482,0.8,0.769)
RGB(0.263,0.635,0.792)
RGB(0.031,0.408,0.675)
]
@reg GnBu_7  [
 RGB(0.941,0.976,0.91)
RGB(0.8,0.922,0.773)
RGB(0.659,0.867,0.71)
RGB(0.482,0.8,0.769)
RGB(0.306,0.702,0.827)
RGB(0.169,0.549,0.745)
RGB(0.031,0.345,0.62)
]
@reg GnBu_8  [
 RGB(0.969,0.988,0.941)
RGB(0.878,0.953,0.859)
RGB(0.8,0.922,0.773)
RGB(0.659,0.867,0.71)
RGB(0.482,0.8,0.769)
RGB(0.306,0.702,0.827)
RGB(0.169,0.549,0.745)
RGB(0.031,0.345,0.62)
]
@reg GnBu_9  [
 RGB(0.969,0.988,0.941)
RGB(0.878,0.953,0.859)
RGB(0.8,0.922,0.773)
RGB(0.659,0.867,0.71)
RGB(0.482,0.8,0.769)
RGB(0.306,0.702,0.827)
RGB(0.169,0.549,0.745)
RGB(0.031,0.408,0.675)
RGB(0.031,0.251,0.506)
]
@reg PiYG_3  [
 RGB(0.914,0.639,0.788)
RGB(0.969,0.969,0.969)
RGB(0.631,0.843,0.416)
]
@reg PiYG_4  [
 RGB(0.816,0.11,0.545)
RGB(0.945,0.714,0.855)
RGB(0.722,0.882,0.525)
RGB(0.302,0.675,0.149)
]
@reg PiYG_5  [
 RGB(0.816,0.11,0.545)
RGB(0.945,0.714,0.855)
RGB(0.969,0.969,0.969)
RGB(0.722,0.882,0.525)
RGB(0.302,0.675,0.149)
]
@reg PiYG_6  [
 RGB(0.773,0.106,0.49)
RGB(0.914,0.639,0.788)
RGB(0.992,0.878,0.937)
RGB(0.902,0.961,0.816)
RGB(0.631,0.843,0.416)
RGB(0.302,0.573,0.129)
]
@reg PiYG_7  [
 RGB(0.773,0.106,0.49)
RGB(0.914,0.639,0.788)
RGB(0.992,0.878,0.937)
RGB(0.969,0.969,0.969)
RGB(0.902,0.961,0.816)
RGB(0.631,0.843,0.416)
RGB(0.302,0.573,0.129)
]
@reg PiYG_8  [
 RGB(0.773,0.106,0.49)
RGB(0.871,0.467,0.682)
RGB(0.945,0.714,0.855)
RGB(0.992,0.878,0.937)
RGB(0.902,0.961,0.816)
RGB(0.722,0.882,0.525)
RGB(0.498,0.737,0.255)
RGB(0.302,0.573,0.129)
]
@reg PiYG_9  [
 RGB(0.773,0.106,0.49)
RGB(0.871,0.467,0.682)
RGB(0.945,0.714,0.855)
RGB(0.992,0.878,0.937)
RGB(0.969,0.969,0.969)
RGB(0.902,0.961,0.816)
RGB(0.722,0.882,0.525)
RGB(0.498,0.737,0.255)
RGB(0.302,0.573,0.129)
]
@reg PiYG_10  [
 RGB(0.557,0.004,0.322)
RGB(0.773,0.106,0.49)
RGB(0.871,0.467,0.682)
RGB(0.945,0.714,0.855)
RGB(0.992,0.878,0.937)
RGB(0.902,0.961,0.816)
RGB(0.722,0.882,0.525)
RGB(0.498,0.737,0.255)
RGB(0.302,0.573,0.129)
RGB(0.153,0.392,0.098)
]
@reg PiYG_11  [
 RGB(0.557,0.004,0.322)
RGB(0.773,0.106,0.49)
RGB(0.871,0.467,0.682)
RGB(0.945,0.714,0.855)
RGB(0.992,0.878,0.937)
RGB(0.969,0.969,0.969)
RGB(0.902,0.961,0.816)
RGB(0.722,0.882,0.525)
RGB(0.498,0.737,0.255)
RGB(0.302,0.573,0.129)
RGB(0.153,0.392,0.098)
]


text:
using UnbalancedOptimalTransport
using Documenter

previous_GKSwstype = get(ENV, "GKSwstype", "")
ENV["GKSwstype"] = "100"

makedocs(;
    modules = [UnbalancedOptimalTransport],
    authors = "Eric P. Hanson",
    repo = "https://github.com/ericphanson/UnbalancedOptimalTransport.jl/blob/{commit}{path}#L{line}",
    sitename = "UnbalancedOptimalTransport.jl",
    format = Documenter.HTML(;
        prettyurls = get(ENV, "CI", "false") == "true",
        canonical = "https://ericphanson.github.io/UnbalancedOptimalTransport.jl",
        assets = String[],
    ),
    pages = [
        "Home" => "index.md",
        "Optimal transport" => "optimal_transport.md",
        "Public API" => "public_api.md",
    ],
)

deploydocs(; repo = "github.com/ericphanson/UnbalancedOptimalTransport.jl")

ENV["GKSwstype"] = previous_GKSwstype;

ext: jl


text:
__precompile__(true)
module DagScheduler

using Dagger
using MemPool
using RemoteMonitor

import Dagger: istask, inputs, Chunk, cleanup
import Base: delete!, filter!, +, /, isless, show

export rundag, RunEnv, NodeEnv, cleanup, reset

const META_IMPL = Dict(
    # configurable metadata implementations to use. choose from:
    # - DagScheduler.ShmemMeta.ShmemExecutorMeta (suitable at node level only)
    # - DagScheduler.SimpleMeta.SimpleExecutorMeta (suitable at cluster level only)
    # - DagScheduler.FdbMeta.FdbExecutorMeta (suitable for both node and cluster level)
    :node => "DagScheduler.ShmemMeta.ShmemExecutorMeta",
    :cluster => "DagScheduler.SimpleMeta.SimpleExecutorMeta",

    # configuration of shmem metadata parameters
    :map_num_entries => 1024*5,         # max number of results to store in shared dict
    :map_entry_sz => 256,               # max size of each result stored in shared dict
    :done_tasks_sz => 1024*100,         # size of shm, limits the max number of nodes in dag (roughly > (total_dag_nodes / nphyiscal nodes))
    :shared_tasks_sz => 1024*100,       # size of shm, limits the max number of nodes in dag (roughly > (total_dag_nodes / nphyiscal nodes))
    :_ => "_"
)

include("common.jl")
include("bcast_channel.jl")
include("meta_stores/refcounter.jl")
include("meta_stores/meta_store.jl")
include("scheduling/scheduler.jl")
include("execution/queue.jl")
include("execution/engine.jl")
include("plugin.jl")

end # module


text:
#==============================================================================#
# AWSS3.jl
#
# S3 API. See http://docs.aws.amazon.com/AmazonS3/latest/API/APIRest.html
#
# Copyright Sam O'Connor 2014 - All rights reserved
#==============================================================================#

__precompile__()

module AWSS3

export s3_arn, s3_put, s3_get, s3_get_file, s3_exists, s3_delete, s3_copy,
       s3_create_bucket,
       s3_put_cors,
       s3_enable_versioning, s3_delete_bucket, s3_list_buckets,
       s3_list_objects, s3_list_versions, s3_get_meta, s3_purge_versions,
       s3_sign_url

import HttpCommon: Response
import Requests: mimetype

using AWSCore
using SymDict
using Retry
using XMLDict
using LightXML
using Compat
import Compat: String

import Requests: format_query_str

typealias SSDict Dict{String,String}

s3_arn(resource) = "arn:aws:s3:::$resource"
s3_arn(bucket, path) = s3_arn("$bucket/$path")

# S3 REST API request.

function s3(aws::AWSConfig,
            verb,
            bucket="";
            headers=SSDict(),
            path="",
            query=SSDict(),
            version="",
            content="",
            return_stream=false)

    # Build query string...
    if version != ""
        query["versionId"] = version
    end
    query_str = format_query_str(query)

    # Build URL...
    resource = "/$path$(query_str == "" ? "" : "?$query_str")"
    url = aws_endpoint("s3", "", bucket) * resource

    # Build Request...
    request = @SymDict(service = "s3",
                       verb,
                       url,
                       resource,
                       headers,
                       content,
                       return_stream,
                       aws...)

    @repeat 2 try

        # Check bucket region cache...
        try request[:region] = aws[:bucket_region][bucket] end
        return do_request(request)

    catch e

        # Update bucket region cache if needed...
        @retry if typeof(e) == AWSCore.AuthorizationHeaderMalformed &&
                  haskey(e.info, "Region")

            if AWSCore.debug_level > 0
                println("S3 region redirect $bucket -> $(e.info["Region"])")
            end
            if !haskey(aws, :bucket_region)
                aws[:bucket_region] = SSDict()
            end
            aws[:bucket_region][bucket] = e.info["Region"]
        end
    end

    assert(false) # Unreachable.
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html

function s3_get(aws::AWSConfig, bucket, path; version="", retry=true)

    @repeat 4 try

        return s3(aws, "GET", bucket; path = path, version = version)

    catch e
        @delay_retry if retry && e.code in ["NoSuchBucket", "NoSuchKey"] end
    end
end

function s3_get_file(aws::AWSConfig, bucket, path, filename; version="")

    stream = s3(aws, "GET", bucket; path = path,
                                    version = version,
                                    return_stream = true)

    try
        open(filename, "w") do file
            while !eof(stream)
                write(file, readavailable(stream))
            end
        end
    finally
        close(stream)
    end
end

function s3_get_file(aws::AWSConfig, buckets::Vector, path, filename; version="")

    i = start(buckets)

    @repeat length(buckets) try

        bucket, i = next(buckets, i)
        s3_get_file(aws, bucket, path, filename; version=version);

    catch e
        @retry if e.code in ["NoSuchKey", "AccessDenied"] end
    end
end

function s3_get_meta(aws::AWSConfig, bucket, path; version="")

    res = s3(aws, "HEAD", bucket; path = path, version = version)
    return res.headers
end

function s3_exists(aws::AWSConfig, bucket, path; version="")

    @repeat 2 try

        s3(aws, "GET", bucket; path = path,
                               headers = SSDict("Range" => "bytes=0-0"),
                               version = version)
        return true

    catch e
        @delay_retry if e.code in ["NoSuchBucket", "NoSuchKey", "AccessDenied"]
        end
        @ignore if e.code in ["NoSuchKey", "AccessDenied"]
            return false
        end
    end
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html

function s3_delete(aws::AWSConfig, bucket, path; version="")

    s3(aws, "DELETE", bucket; path = path, version = version)
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html

function s3_copy(aws::AWSConfig, bucket, path; to_bucket=bucket, to_path=path)

    s3(aws, "PUT", to_bucket;
                   path = to_path,
                   headers = SSDict("x-amz-copy-source" => "/$bucket/$path"))
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUT.html

function s3_create_bucket(aws::AWSConfig, bucket)

    println("""Creating Bucket "$bucket"...""")

    @protected try

        if aws[:region] == "us-east-1"

            s3(aws, "PUT", bucket)

        else

            s3(aws, "PUT", bucket;
                headers = SSDict("Content-Type" => "text/plain"),
                content = """
                <CreateBucketConfiguration
                             xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
                    <LocationConstraint>$(aws[:region])</LocationConstraint>
                </CreateBucketConfiguration>""")
        end

    catch e
        @ignore if e.code == "BucketAlreadyOwnedByYou" end
    end
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTcors.html

function s3_put_cors(aws::AWSConfig, bucket, cors_config)
    s3(aws, "PUT", bucket, path = "?cors", content = cors_config)
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html

function s3_enable_versioning(aws::AWSConfig, bucket)

    s3(aws, "PUT", bucket;
       query = SSDict("versioning" => ""),
       content = """
       <VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
           <Status>Enabled</Status>
       </VersioningConfiguration>""")
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETE.html

s3_delete_bucket(aws::AWSConfig, bucket) = s3(aws, "DELETE", bucket)

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html

function s3_list_buckets(aws::AWSConfig)

    r = s3(aws,"GET", headers=SSDict("Content-Type" => "application/json"))
    [b["Name"] for b in r["Buckets"]["Bucket"]]
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html

function s3_list_objects(aws::AWSConfig, bucket, path="")

    more = true
    objects = []
    marker = ""

    while more

        q = SSDict()
        if path != ""
            q["delimiter"] = "/"
            q["prefix"] = path
        end
        if marker != ""
            q["marker"] = marker
        end

        @repeat 4 try

            r = s3(aws, "GET", bucket; query = q)

            more = r["IsTruncated"] == "true"

            if haskey(r, "Contents")
                l = isa(r["Contents"], Vector) ? r["Contents"] : [r["Contents"]]
                for object in l
                    push!(objects, xml_dict(object))
                    marker = object["Key"]
                end
            end

        catch e
            @delay_retry if e.code in ["NoSuchBucket"] end
        end
    end

    return objects
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETVersion.html

function s3_list_versions(aws::AWSConfig, bucket, path="")

    more = true
    versions = []
    marker = ""

    while more

        query = SSDict("versions" => "", "prefix" => path)
        if marker != ""
            query["key-marker"] = marker
        end

        r = s3(aws, "GET", bucket; query = query)
        more = r["IsTruncated"][1] == "true"
        for e in child_elements(root(r.x))
            if name(e) in ["Version", "DeleteMarker"]
                version = xml_dict(e)
                version["state"] = name(e)
                push!(versions, version)
                marker = version["Key"]
            end
        end
    end
    return versions
end

import Base.ismatch
ismatch(pattern::AbstractString, s::AbstractString) = ismatch(Regex(pattern), s)

function s3_purge_versions(aws::AWSConfig, bucket, path="", pattern="")

    for v in s3_list_versions(aws, bucket, path)
        if pattern == "" || ismatch(pattern, v["Key"])
            if v["IsLatest"] != "true"
                s3_delete(aws, bucket, v["Key"]; version = v["VersionId"])
            end
        end
    end
end

# See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html

function s3_put(aws::AWSConfig, bucket, path, data::Union{String,Vector{UInt8}},
                                              data_type="")

    if data_type == ""
        data_type = "application/octet-stream"
        for (e, t) in [
            (".pdf",  "application/pdf"),
            (".csv",  "text/csv"),
            (".txt",  "text/plain"),
            (".log",  "text/plain"),
            (".dat",  "application/octet-stream"),
            (".gz",   "application/octet-stream"),
            (".bz2",  "application/octet-stream"),
        ]
            if ismatch(e * "\$", path)
                data_type = t
                break
            end
        end
    end

    s3(aws, "PUT", bucket;
       path=path,
       headers=SSDict("Content-Type" => data_type),
       content=data)
end

import Nettle: digest

function s3_sign_url(aws::AWSConfig, bucket, path, seconds = 3600)

    query = SSDict("AWSAccessKeyId" =>  aws[:creds].access_key_id,
                 "x-amz-security-token" => get(aws, "token", ""),
                 "Expires" => string(round(Int, Dates.datetime2unix(now(Dates.UTC)) + seconds)),
                 "response-content-disposition" => "attachment")

    to_sign = "GET\n\n\n$(query["Expires"])\n" *
              "x-amz-security-token:$(query["x-amz-security-token"])\n" *
              "/$bucket/$path?response-content-disposition=attachment"

    key = aws[:creds].secret_key
    query["Signature"] = digest("sha1", key, to_sign) |> base64encode |> strip

    endpoint=aws_endpoint("s3", aws[:region], bucket)
    return "$endpoint/$path?$(format_query_str(query))"
end

end #module AWSS3

#==============================================================================#
# End of file.
#==============================================================================#


text:
module Decapods

include("TontiDiagrams.jl")

end


text:
export SCSMatrix, SCSData, SCSSettings, SCSSolution, SCSInfo, SCSCone, SCSVecOrMatOrSparse

SCSVecOrMatOrSparse = Union{VecOrMat, SparseMatrixCSC{Float64,Int}}

immutable SCSMatrix
    values::Ptr{Cdouble}
    rowval::Ptr{Int}
    colptr::Ptr{Int}
    m::Int
    n::Int
end

immutable SCSSettings
    normalize::Int # boolean, heuristic data rescaling: 1
    scale::Cdouble # if normalized, rescales by this factor: 5
    rho_x::Cdouble # x equality constraint scaling: 1e-3
    max_iters::Int # maximum iterations to take: 2500
    eps::Cdouble # convergence tolerance: 1e-3
    alpha::Cdouble # relaxation parameter: 1.8
    cg_rate::Cdouble # for indirect, tolerance goes down like (1/iter)^cg_rate: 2
    verbose::Int # boolean, write out progress: 1
    warm_start::Int # boolean, warm start (put initial guess in Sol struct): 0
end

immutable SCSData
    # A has m rows, n cols
    m::Int
    n::Int
    A::Ptr{SCSMatrix}
    # b is of size m, c is of size n
    b::Ptr{Cdouble}
    c::Ptr{Cdouble}
    stgs::Ptr{SCSSettings}
end

immutable SCSSolution
    x::Ptr{Void}
    y::Ptr{Void}
    s::Ptr{Void}
end

immutable SCSInfo
    iter::Int
    # We need to allocate 32 bytes for a character string, so we allocate 256 bits
    # of integer instead
    # TODO: Find a better way to do this
    status1::Int128
    status2::Int128

    statusVal::Int
    pobj::Cdouble
    dobj::Cdouble
    resPri::Cdouble
    resDual::Cdouble
    resInfeas::Cdouble
    resUnbdd::Cdouble
    relGap::Cdouble
    setupTime::Cdouble
    solveTime::Cdouble
end

immutable SCSCone
    f::Int # number of linear equality constraints
    l::Int # length of LP cone
    q::Ptr{Int} # array of second-order cone constraints
    qsize::Int # length of SOC array
    s::Ptr{Int} # array of semi-definite constraints
    ssize::Int # length of SD array
    ep::Int # number of primal exponential cone triples
    ed::Int # number of dual exponential cone triples
    p::Ptr{Cdouble} # array of power cone params
    psize::Int # length of power cone array
end

# TODO needs to be updated for newest constants
const status_map = Dict{Int, Symbol}(
    1 => :Optimal,
    -2 => :Infeasible,
    -1 => :Unbounded,
    -3 => :Indeterminate,
    -4 => :Error
)

type Solution
    x::Array{Float64, 1}
    y::Array{Float64, 1}
    s::Array{Float64, 1}
    status::Symbol
    ret_val::Int

    function Solution(x::Array{Float64, 1}, y::Array{Float64, 1}, s::Array{Float64, 1}, ret_val::Int)
        if haskey(status_map, ret_val)
            return new(x, y, s, status_map[ret_val], ret_val)
        else
            return new(x, y, s, :UnknownError, ret_val)
        end
    end
end
immutable Direct end
immutable Indirect end


text:
using Cubature
using Statistics

# Hard coded for a Bickley jet but want to generalize to other profiles including
# -> Bump and Guassian jets
# -> Vortices of different profiles
# -> In Cartesian and Spherical profiles

# Velocity is specified to be a Bickley jet
# Free-Surface is computed using numerical integration

function profile(y, params);

    Δη = params.Uj * params.Lj * params.f₀ / params.g

    U_function(x)  =  params.Uj * sech.(x / params.Lj).^2

    U =  U_function(y)
    E = zeros((params.Ny+1))
    for i in 1:params.Ny
        result = pquadrature(U_function, y[end], y[i])
        E[i] = - params.f₀ / params.g * result[1]
    end
    E = E .- mean(E)

    return U,E
end


text:
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder

# Collection of sources required to build libpng
sources = [
    "http://www.imagemagick.org/download/delegates/libpng-1.6.31.tar.gz" =>
    "042e8701abc737a72f1393d0d8fca8ca86146460fe94c6c396261868f489c2de",

]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd $WORKSPACE/srcdir
cd libpng-1.6.31/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=/opt/$target/$target.toolchain ..
make -j${ncore}
make install
exit

"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms()

# The products that we will ensure are always built
products(prefix) = [
    LibraryProduct(prefix, "libpng16", :libpng)
]

# Dependencies that must be installed before this package can be built
dependencies = [
    "https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.2/build_Zlib.v1.2.11.jl"
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, "libpng", v"1.6.31", sources, script, platforms, products, dependencies)


text:
#=
"""
```math
    \\begin{bmatrix} A * B * A' & X \\\\ X' & 0 \\end{bmatrix}
```
"""
function mulαβαt3(A, B, X)
    q  = size(B, 1)
    p  = size(A, 1)
    c  = zeros(eltype(B), q)
    mx = zeros(eltype(B), p + size(X, 2), p + size(X, 2))
    for i = 1:p
        fill!(c, zero(eltype(c)))
        @simd for n = 1:q
            @simd for m = 1:q
                @inbounds c[n] +=  A[i, m] * B[n, m]
            end
        end
        @simd for n = 1:p
            @simd for m = 1:q
                 @inbounds mx[i, n] += A[n, m] * c[m]
            end
        end
    end
    mx[1:p, p+1:end] = X
    mx[p+1:end, 1:p] = X'
    mx
end
=#
"""
    2 log Restricted Maximum Likelihood gradient vector
"""
#=
function reml_grad(yv, Zv, p, Xv, θvec, β)
    n     = length(yv)
    G     = gmat(θvec[3:5])
    θ1    = zeros(length(θvec))
    θ2    = zeros(length(θvec))
    θ3    = zeros(length(θvec))
    iV    = Vector{AbstractMatrix}(undef, n)
    θ2m   = zeros(p,p)
    H     = zeros(p, p)
    for i = 1:n
        iV[i] = inv(vmat(G, rmat(θvec[1:2], Zv[i]), Zv[i]))
        mulαtβαinc!(H, Xv[i], iV[i])
        #H .+= Xv[i]'*inv(vmat(G, rmat(θvec[1:2], Zv[i]), Zv[i]))*Xv[i]
    end
    iH = inv(H)
    #fx = x -> vmat(gmat(x[3:5]), rmat(x[1:2], Zv[1]), Zv[1])
    #cfg   = ForwardDiff.JacobianConfig(fx, θvec)
    for i = 1:n
        #V   = vmat(G, rmat(θvec[1:2], Zv[i]), Zv[i])
        #iV  = inv(V)
        r   = yv[i] .- Xv[i]*β
        jV  = covmat_grad(vmat, Zv[i], θvec)
        Aj  = zeros(length(yv[i]), length(yv[i]))
        for j = 1:length(θvec)

            mulαβαc!(Aj, iV[i], view(jV, :, :, j))
            #Aj      = iV[i] * view(jV, :, :, j) * iV[i]

            θ1[j]  += trmulαβ(iV[i], view(jV, :, :, j))
            #θ1[j]  += tr(iV[i] * view(jV, :, :, j))

            θ2[j]  -= tr(iH * Xv[i]' *Aj * Xv[i])

            θ3[j]  -= r' * Aj * r
        end
    end
    return - (θ1 .+ θ2 .+ θ3)
end
=#
"""
    2 log Restricted Maximum Likelihood hessian matrix
"""
#=
function reml_hessian(yv, Zv, p, Xv, θvec, β)
    n     = length(yv)
    G     = gmat(θvec[3:5])
    θ1    = zeros(length(θvec))
    θ2    = zeros(length(θvec))
    θ3    = zeros(length(θvec))
    iV    = nothing
    θ2m   = zeros(p,p)
    H     = zeros(p, p)
    for i = 1:n
        H += Xv[i]'*inv(vmat(rmat(θvec[1:2], Zv[i]), G, Zv[i]))*Xv[i]
    end
    iH = inv(H)
    for i = 1:n
        vmatdvec = x -> vmat(rmat(x[1:2], Zv[i]), gmat(x[3:end]), Zv[i])[:]
        V   = vmat(rmat(θvec[1:2], Zv[i]), G, Zv[i])
        iV  = inv(V)
        r   = yv[i] .- Xv[i]*β
        ∇V  = covmat_grad(covmat, θ, cfg)
        ∇²V = covmat_hessian(covmat, θ)
        #Aij        = iV*∇V[j]*iV
        #Aijk       = -iV * (∇V[k] * iV * ∇V[j] - ∇²V[k,j] + ∇V[j] * iV * ∇V[k]) * iV

        #θ1[j]  += tr(iV * ∇V[j])
        #θ2[j]  -= tr(iH * Xv[i]' * Aij * Xv[i])
        #θ3[j]  -= r' * Aij * r

        #θ1[j,k]  += tr( - Aik' * ∇V[j] + iV * ∇²V[j,k])
        #θ2[j,k]  = - tr( iH * sum(X' * Aik * X) * iH * sum(X' * Aij * X)) - tr(iH * sum(X' * Aijk * X))
        #θ3[j,k]  -= r' * Aijk * r

        #A[j,k] =

        for j = 1:length(θvec)
            for k = 1:length(θvec)

            #θ1[j,k]  +=

            #θ2[j,k]  -=

            #θ3[j,k]  -=
            end
        end

    end
    return - (θ1 .+ θ2 .+ θ3)
end
=#
################################################################################
#=
function reml_grad2(yv, Zv, p, Xv, θvec, β)
    n     = length(yv)
    for i = 1:n
        jV  = covmat_grad(vmat, Zv[i], θvec)
    end
end
function reml_grad3(yv, Zv, p, Xv, θvec, β)
    n     = length(yv)
    covmat_grad2(vmatvec, Zv, θvec)
end
=#


text:
using TMLEEpistasis
using ArgParse

function parse_commandline()
    s = ArgParseSettings(description="Generate phenotypes batches to be passed to the TMLE step.")

    @add_arg_table s begin
        "phenotypes-file"
            arg_type = String
            help = "Path to a GeneAtlas phenotypes file"
        "--batch-size"
            arg_type = String
            help = "Number of phenotypes that will be contained in each batch passed for TMLE."*
                   "If 'max', a single batch is generated."
            default = "1"
    end

    return parse_args(s)
end

parsed_args = parse_commandline()

tmle_phenotypes_batches(parsed_args)


text:
# Weave readme
using Pkg
cd("c:/git/JLBoost")
Pkg.activate("c:/git/JLBoost/jlboost-test")

if false
    Pkg.add("Weave")
    Pkg.add("RDatasets")
    Pkg.add("DataFrames")
    Pkg.add("JDF") # needed for table check
    Pkg.add("LossFunctions")
    Pkg.update()
    #Pkg.add("MLJ")  needed for table check
    #Pkg.add("JLBoostMLJ") # needed for table check
end

using Weave

weave("c:/git/JLBoost/README.jmd", out_path=:pwd, doctype="github")

# Pkg.rm("Weave")
# Pkg.rm("RDatasets")
# Pkg.rm("JDF") # needed for table check
#Pkg.rm("MLJ")
#Pkg.rm("JLBoostMLJ")

# output to README.jl for easy testing
if false
    tangle("c:/git/JLBoost/README.jmd")
end


text:
using LoggingFacilities
using Test

@testset "LoggingFacilities.jl" begin
    # Write your tests here.
    ts_fmt = TimestampLoggingFormat("Y-m-d", LoggingFacilities.InjectByAddingToKwargs())
    js_fmt = JSONLoggingFormat(nothing)

    js_fmt = JSONLoggingFormat(2)
    with_logger(logger(logger(SimplestLogger(), ts_fmt), js_fmt)) do
           x = 1
           y = "abc"
           z = 35.55
           @info "hey" x y z
           @warn "blah"
           @error "cool"
    end

end


text:
module AdmittanceModels
    include("linear_algebra.jl")
    include("admittance_model.jl")
    include("circuit.jl")
    include("pso_model.jl")
    include("blackbox.jl")
    include("circuit_components.jl")
end


text:
"""
    t_matrix(Particle{T,3,Acoustic{T,3},Sphere{T,3}}, Acoustic{T,3}, ω, order)

The T-matrix for a 3D spherical acoustic particle in a 3D acoustic medium.
"""
function t_matrix(p::Particle{T,3,Acoustic{T,3},Sphere{T,3}}, outer_medium::Acoustic{T,3}, ω::T, basis_order::Integer)::Diagonal{Complex{T}} where T <: AbstractFloat

    # Check for material properties that don't make sense or haven't been implemented
    check_material(p, outer_medium)

    "Returns a ratio used in multiple scattering which reflects the material properties of the particles"
    function Zn(m::Integer)::Complex{T}
        m = T(abs(m))
        ak = outer_radius(p)*ω/outer_medium.c

        # set the scattering strength and type
        if isinf(p.medium.c) || isinf(p.medium.ρ) || iszero(outer_medium.ρ)
            numer = diffsbesselj(m, ak)
            denom = diffshankelh1(m, ak)
        elseif iszero(p.medium.ρ) || iszero(p.medium.c)
            numer = sbesselj(m, ak)
            denom = shankelh1(m, ak)
        else
            q = impedance(p.medium)/impedance(outer_medium) # Impedance ratio
            γ = outer_medium.c/p.medium.c #speed ratio
            numer = q * diffsbesselj(m, ak) * sbesselj(m, γ * ak) - sbesselj(m, ak) * diffsbesselj(m, γ * ak)
            denom = q * diffshankelh1(m, ak) * sbesselj(m, γ * ak) - shankelh1(m, ak) * diffsbesselj(m, γ * ak)
        end

        return numer / denom
    end
    Zns = Zn.(0:basis_order)

    len(order::Int) = basisorder_to_basislength(Acoustic{T,3},order)
    T_vec = - vcat(Zns[1],[repeat(Zns[l+1:l+1],len(l)-len(l-1)) for l = 1:basis_order]...)

    return Diagonal(T_vec)
end


text:
# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.

struct ContainerServiceApi <: SwaggerApi
    client::Swagger.Client
end

"""
Deletes the specified container service.
Deletes the specified container service in the specified subscription and resource group. The operation does not delete other resources created as part of creating a container service, including storage accounts, VMs, and availability sets. All the other resources created with the container service are part of the same resource group and can be deleted individually.
Param: resourceGroupName::String (required)
Param: containerServiceName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: Nothing
"""
function containerServicesDelete(_api::ContainerServiceApi, resourceGroupName::String, containerServiceName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "DELETE", Nothing, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "containerServiceName", containerServiceName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    Swagger.exec(_ctx)
end

"""
Gets the properties of the specified container service.
Gets the properties of the specified container service in the specified subscription and resource group. The operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
Param: resourceGroupName::String (required)
Param: containerServiceName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: ContainerService
"""
function containerServicesGet(_api::ContainerServiceApi, resourceGroupName::String, containerServiceName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "GET", ContainerService, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "containerServiceName", containerServiceName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    Swagger.exec(_ctx)
end

"""
Gets a list of container services in the specified resource group.
Gets a list of container services in the specified subscription and resource group. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
Param: resourceGroupName::String (required)
Param: api_version::String (required)
Param: subscriptionId::String (required)
Return: ContainerServiceListResult
"""
function containerServicesListByResourceGroup(_api::ContainerServiceApi, resourceGroupName::String, api_version::String, subscriptionId::String; _mediaType=nothing)
    _ctx = Swagger.Ctx(_api.client, "GET", ContainerServiceListResult, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", ["azure_auth"])
    Swagger.set_param(_ctx.path, "resourceGroupName", resourceGroupName)  # type String
    Swagger.set_param(_ctx.path, "subscriptionId", subscriptionId)  # type String
    Swagger.set_param(_ctx.query, "api-version", api_version)  # type String
    Swagger.set_header_accept(_ctx, ["application/json"])
    Swagger.set_header_content_type(_ctx, (_mediaType === nothing) ? ["application/json"] : [_mediaType])
    Swagger.exec(_ctx)
end

export containerServicesDelete, containerServicesGet, containerServicesListByResourceGroup


text:
cd(@__DIR__); include("setups/grid7x3.jl");

## DAG
D = natural_eigdist(𝚽, 𝛌, Q; distance = :DAG)
E = transform(fit(MDS, D, maxoutdim=2, distances=true))
plt = grid7x3_mds_heatmaps(E, 𝚽; backend = :pyplot)
savefig(plt, "../figs/Grid7x3_MDS_DAG.png")
display(plt)


text:
module VectorValuedFEOperatorsTests

using Test
using Gridap
import Gridap: ∇
using LinearAlgebra

# Define manufactured functions
ufun(x) = VectorValue(x[1] + x[2],x[1])
ufun_grad(x) = TensorValue(1.0,1.0,1.0,0.0)
∇(::typeof(ufun)) = ufun_grad
bfun(x) = VectorValue(0.0,0.0)
gfun(x) = VectorValue(1.0,1.0)

# Construct the discrete model
model = CartesianDiscreteModel(domain=(0.0,1.0,0.0,1.0), partition=(4,4))

# Construct the FEspace
order = 2
diritags = [1,2,3,4,5,6,7]
T = VectorValue{2,Float64}
fespace = H1ConformingFESpace(T,model,order,diritags)

# Define test and trial
V = TestFESpace(fespace)
U = TrialFESpace(fespace,ufun)

# Setup integration on the volume
trian = Triangulation(model)
quad = CellQuadrature(trian,degree=2)

# Setup integration on Neumann boundary
neumanntags = [8,]
btrian = BoundaryTriangulation(model,neumanntags)
bquad = CellQuadrature(btrian,degree=2)

# Terms in the volume
bfield = CellField(trian,bfun)
a(v,u) = inner(∇(v), ∇(u))
b(v) = inner(v,bfield)
t_Ω = AffineFETerm(a,b,trian,quad)

# Terms on the Neumann Boundary
gfield = CellField(btrian,gfun)
g(v) = inner(v,gfield)
t_ΓN = FESource(g,btrian,bquad)

# Define Assembler
assem = SparseMatrixAssembler(V,U)

# Define the FEOperator
op = LinearFEOperator(V,U,assem,t_Ω,t_ΓN)

# Define the FESolver
ls = LUSolver()
solver = LinearFESolver(ls)

# Solve!
uh = solve(solver,op)

# Define exact solution and error
u = CellField(trian,ufun)
e = u - uh

# Define norms to measure the error
l2(u) = inner(u,u)
h1(u) = a(u,u) + l2(u)

# Compute errors
el2 = sqrt(sum( integrate(l2(e),trian,quad) ))
eh1 = sqrt(sum( integrate(h1(e),trian,quad) ))

@test el2 < 1.e-8
@test eh1 < 1.e-8

# Idem for linear elasticity

# Material parameters
const E = 10
const ν = 0.25
const λ = (E*ν)/((1+ν)*(1-2*ν))
const μ = E/(2*(1+ν))

# Constitutive law
@law σ(x,ε,id) = λ*tr(ε)*one(ε) + 2*μ*ε

# Define manufactured functions
ufun(x) = VectorValue(x[1] + x[2],x[1])
ufun_grad(x) = TensorValue(1.0,1.0,1.0,0.0)
∇(::typeof(ufun)) = ufun_grad
bfun(x) = VectorValue(0.0,0.0)

# Construct the discrete model
model = CartesianDiscreteModel(domain=(0.0,1.0,0.0,1.0), partition=(4,4))

# Construct the FEspace
order = 2
diritag = "boundary"
T = VectorValue{2,Float64}
fespace = H1ConformingFESpace(T,model,order,diritag)

# Define test and trial
V = TestFESpace(fespace)
U = TrialFESpace(fespace,ufun)

# Setup integration on the volume
trian = Triangulation(model)
quad = CellQuadrature(trian,degree=2)

# Terms in the volume
bfield = CellField(trian,bfun)
ids = ones(Int,ncells(trian))
a_elast(v,u) = inner( ε(v), σ(ε(u),ids) )
b(v) = inner(v,bfield)
t_Ω = AffineFETerm(a_elast,b,trian,quad)

# Define the FEOperator
op = LinearFEOperator(V,U,t_Ω)

# Solve!
uh = solve(op)

# Define exact solution and error
u = CellField(trian,ufun)
e = u - uh

# Compute errors
el2 = sqrt(sum( integrate(l2(e),trian,quad) ))
eh1 = sqrt(sum( integrate(h1(e),trian,quad) ))
eener = sqrt(sum( integrate(a_elast(e,e),trian,quad) ))

@test el2 < 1.e-8
@test eh1 < 1.e-8
@test eener < 1.e-8

uener = sqrt(sum( integrate(a_elast(u,u),trian,quad) ))

end # module


text:
using ModelTES, ARMA
using Test

biased_tess = [ModelTES.pholmes(), ModelTES.lowEpix(), ModelTES.highEpix(), ModelTES.LCLSII()]

for bt in biased_tess
  Vs_in = bt.V*collect(0:0.1:10)
  Is, Ts, Rs, Vs_out = ModelTES.iv_curve(bt.p, Vs_in)
  derivs = zeros(Float64, length(Vs_in), 2)
  for i in eachindex(Vs_in)
      derivs[i,:] = ModelTES.dT_and_dI_iv_point(bt.p, Is[i], Ts[i], Rs[i], Vs_in[i])
  end
  @test maximum(abs.(derivs))<1e-10

  #compare rk8 and DifferentialEquations intergrators
  out = rk8(12000,1e-7, bt, 1000, 2000);
  out_pulse = pulse(12000,1e-7, bt, 1000, 2000);
  function worst_relative_error(a,b)
      @assert(all(times(a).==times(b)))
      eI=maximum(abs.(2*(a.I-b.I)./(a.I.+b.I)))
      eT=maximum(abs.(2*(a.T-b.T)./(a.T.+b.T)))
      eR=maximum(abs.(2*(a.R-b.R)./(a.R.+b.R)))
      max(eI,eT,eR)
  end
  @test worst_relative_error(out,out_pulse)<1e-5
  out_temp = deepcopy(out)
  out_temp.I[1]*=1.11
  @test worst_relative_error(out_temp,out_pulse)>1e-1
  out_temp = deepcopy(out)
  out_temp.T[1]*=1.11
  @test worst_relative_error(out_temp,out_pulse)>1e-1
  out_temp = deepcopy(out)
  out_temp.T[1]*=1.11
  @test worst_relative_error(out_temp,out_pulse)>1e-1

  # compare to a pulse output with bigger timesteps, adapative solving should make this work
  out_for_resample = rk8(12000,1e-7, bt, 1000,0);
  out_pulse_ts = pulse(1200,1e-6, bt, 1000,0);
  out_ts = ModelTES.TESRecord(out_for_resample.T[1:10:end], out_for_resample.I[1:10:end], out_for_resample.R[1:10:end], 1e-6)
  @test worst_relative_error(out_ts,out_pulse_ts)<1e-5
  out_pulse_ts2 = pulse(120,1e-5, bt, 1000,0);
  out_ts2 = ModelTES.TESRecord(out_for_resample.T[1:100:end], out_for_resample.I[1:100:end], out_for_resample.R[1:100:end], 1e-5)
  @test worst_relative_error(out_ts2,out_pulse_ts2)<1e-5

  # Integrate a pulse with 12000 samples, 1e-7 second spacing, 1000 eV energy, 2000 presamples from the higher biased version of the same tes
  out2 = pulse(12000,1e-7, bt, 1000, 2000);

  # many pulses in one trace
  outmany = ModelTES.pulses(12000,1e-7, bt, [1000,1000,2000,3000,1000,500,2000], collect(1:7)*2e-4);
  @test length(times(outmany))==length(outmany.I)
  #make the pulses arrive halfway between time points
  outmany2 = ModelTES.pulses(12000,1e-7, bt, [1000,1000,2000,3000,1000,500,2000], 0.5e-7 .+ collect(1:7)*2e-4);
  @test times(outmany)==times(outmany2)
  @test length(outmany)==length(outmany2)==12000

  # compare the difference between when the pulses arrive half way between time points, and 1 time point apart
  # the integrated difference should be about a factor of two apart
  a=sum(abs.(outmany.I[2:end-1]-outmany2.I[2:end-1])) # pulses off by half a sample
  b=sum(abs.(outmany.I[2:end]-outmany.I[1:end-1])) # pulses off by one sample
  @test isapprox(a,b/2,rtol=1e-2,atol=1e-5)

  # Compute the noise spectrum etc.
  nmodel = NoiseModel(bt, 1e-6)
  freq = range(0, stop=5e5, length=50)
  psd = model_psd(nmodel, freq)
  covar = model_covariance(nmodel, 20)

end

include("ihtes.jl")


text:
# This file is a part of KCenters.jl
# License is Apache 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt

using Random

export AbstractCenterSelection,
    CentroidSelection,
    RandomCenterSelection,
    MedoidSelection,
    KnnCentroidSelection,
    center

"""
    abstract type AbstractCenterSelection end

Abstract type for all center selection strategies
"""
abstract type AbstractCenterSelection end

"""
    CentroidSelection()
    center(sel::CentroidSelection, lst::AbstractVector)

Computes a center as the centroid of the `lst` set of points
"""
struct CentroidSelection <: AbstractCenterSelection end

"""
    RandomCenterSelection()
    center(sel::RandomCenterSelection, lst::AbstractVector)

Selects a random element from `lst` as representing center
"""

struct RandomCenterSelection <: AbstractCenterSelection end

"""
    MedoidSelection(dist::PreMetric, ratio::Float32)
    MedoidSelection(; dist=SqL2Distance(), ratio=0.5) = MedoidSelection(dist, convert(Float32, ratio))
    center(sel::MedoidSelection, lst::AbstractVector)

Computes the medoid of lst; if ``0 < ratio < 1`` then a sampling of `lst` (``ratio * |lst|`` elements) is used instead of the complete set
"""

struct MedoidSelection{M_<:PreMetric} <: AbstractCenterSelection
    dist::M_
    ratio::Float32
end

"""
    KnnCentroidSelection(sel1::AbstractCenterSelection, sel2::AbstractCenterSelection, dist::PreMetric, k::Int32)
    KnnCentroidSelection(; sel1=CentroidSelection(), sel2=CentroidSelection(), dist=SqL2Distance(), k=0) = KnnCentroidSelection(sel, dist, convert(Int32, k))
    center(sel::KnnCentroidSelection, lst::AbstractVector)

Computes a center using the `sel1` selection strategy, and computes the final center over the set of `k` nearest neighbors
of the initial center (from `lst`) using the `dist` distance function.
"""
struct KnnCentroidSelection{S1_<:AbstractCenterSelection, S2_<:AbstractCenterSelection, M_<:PreMetric} <: AbstractCenterSelection
    sel1::S1_
    sel2::S2_
    dist::M_
    k::Int32
end

MedoidSelection(; dist=SqL2Distance(), ratio=0.5) = MedoidSelection(dist, convert(Float32, ratio))
KnnCentroidSelection(; sel1=CentroidSelection(), sel2=CentroidSelection(), dist=SqL2Distance(), k=0) = KnnCentroidSelection(sel1, sel2, dist, convert(Int32, k))

center(::CentroidSelection, lst::AbstractVector{ObjectType}) where {ObjectType<:AbstractVector{N}} where {N<:Real} =
    mean(lst)

center(::RandomCenterSelection, lst::AbstractVector) = rand(lst)

function center(sel::MedoidSelection, lst::AbstractVector)
    if sel.ratio < 1.0
        ss = randsubseq(1:length(lst), sel.ratio)
        if length(ss) > 0
            lst = lst[ss]
        end
    end

    L = zeros(Float32, length(lst))
    n = length(lst)
    for i in 1:n
        for j in i+1:length(n)
            d = evaluate(sel.dist, lst[i], lst[j])
            L[i] += d
            L[j] += d
        end
    end

    lst[argmin(L)]
end

function center(sel::KnnCentroidSelection, lst::AbstractVector)
    c = center(sel.sel1, lst)
    seq = ExhaustiveSearch(sel.dist, lst)
    k = sel.k == 0 ? ceil(Int32, log2(length(lst))) : sel.k
    k = max(1, k)
    center(sel.sel2, lst[[id for (id, dist) in search(seq, c, k)]])
end