Skip to content

Commit

Permalink
Updated TAS coverage with directPositions.
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTorgerson committed Sep 27, 2023
1 parent 2497f4c commit 4da6f5f
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 8 deletions.
21 changes: 13 additions & 8 deletions iem/tas_projected_2km/ingest.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,26 +179,31 @@
],
"axes": {
"model": {
"min": "0",
"max": "5",
"statements": "import imp, os; luts = imp.load_source('luts', os.getenv('LUTS_PATH'));",
"min": "luts.models['GFDL-CM3']",
"max": "luts.models['NCAR-CCSM4']",
"directPositions": "[luts.models[x] for x in ${netcdf:variable:model}]",
"irregular": true,
"gridOrder": 0
},
"scenario": {
"min": "0",
"max": "2",
"min": "luts.scenarios['rcp45']",
"max": "luts.scenarios['rcp85']",
"directPositions": "[luts.scenarios[x] for x in ${netcdf:variable:scenario}]",
"irregular": true,
"gridOrder": 1
},
"month": {
"min": "0",
"max": "11",
"min": "luts.months['01']",
"max": "luts.months['12']",
"directPositions": "[luts.months[x] for x in ${netcdf:variable:month}]",
"irregular": true,
"gridOrder": 2
},
"year": {
"min": "0",
"max": "94",
"min": "luts.years['2006']",
"max": "luts.years['2100']",
"directPositions": "[luts.years[x] for x in ${netcdf:variable:year}]",
"irregular": true,
"gridOrder": 3
},
Expand Down
100 changes: 100 additions & 0 deletions iem/tas_projected_2km/luts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,103 @@
"11": 10,
"12": 11,
}

scenarios = {"rcp45": 0, "rcp60": 1, "rcp85": 2}

years = {
"2006": 0,
"2007": 1,
"2008": 2,
"2009": 3,
"2010": 4,
"2011": 5,
"2012": 6,
"2013": 7,
"2014": 8,
"2015": 9,
"2016": 10,
"2017": 11,
"2018": 12,
"2019": 13,
"2020": 14,
"2021": 15,
"2022": 16,
"2023": 17,
"2024": 18,
"2025": 19,
"2026": 20,
"2027": 21,
"2028": 22,
"2029": 23,
"2030": 24,
"2031": 25,
"2032": 26,
"2033": 27,
"2034": 28,
"2035": 29,
"2036": 30,
"2037": 31,
"2038": 32,
"2039": 33,
"2040": 34,
"2041": 35,
"2042": 36,
"2043": 37,
"2044": 38,
"2045": 39,
"2046": 40,
"2047": 41,
"2048": 42,
"2049": 43,
"2050": 44,
"2051": 45,
"2052": 46,
"2053": 47,
"2054": 48,
"2055": 49,
"2056": 50,
"2057": 51,
"2058": 52,
"2059": 53,
"2060": 54,
"2061": 55,
"2062": 56,
"2063": 57,
"2064": 58,
"2065": 59,
"2066": 60,
"2067": 61,
"2068": 62,
"2069": 63,
"2070": 64,
"2071": 65,
"2072": 66,
"2073": 67,
"2074": 68,
"2075": 69,
"2076": 70,
"2077": 71,
"2078": 72,
"2079": 73,
"2080": 74,
"2081": 75,
"2082": 76,
"2083": 77,
"2084": 78,
"2085": 79,
"2086": 80,
"2087": 81,
"2088": 82,
"2089": 83,
"2090": 84,
"2091": 85,
"2092": 86,
"2093": 87,
"2094": 88,
"2095": 89,
"2096": 90,
"2097": 91,
"2098": 92,
"2099": 93,
"2100": 94,
}

0 comments on commit 4da6f5f

Please sign in to comment.