{
  "$schema": "http://json-schema.org/draft-07/schema",
  "build_version": "v10.06.005",
  "title": "NEAT and MHEA weather file schema",
  "description": "The weather data used by the modified bin method energy audit NEAT and MHEA software",
  "type": "object",
  "properties": {
    "location_title": {
      "type": "string",
      "description": "This is the location title also used as the filename (minus .wa.json extension)"
    },
    "city": {
      "type": "string",
      "description": "This is the name of the closest city to the weather station"
    },
    "station_id": {
      "type": "integer",
      "desciption": "The WMO station identification number, 6 digit integer"
    },
    "latitude": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "desciption": "North positive, South negative"
    },
    "longitude": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "West negative, East positive"
    },
    "timezone": {
      "type": "number",
      "minimum": -12,
      "maximum": 12,
      "description": "Local time hours of difference from UTC"
    },
    "altitude": {
      "type": "number",
      "description": "Elevation above sea level (ft)"
    },
    "heating_design_temp": {
      "type": "number",
      "description": "Heating design day dry bulb temperature (F)"
    },
    "cooling_design_temp": {
      "type": "number",
      "description": "Cooling design day dry bulb temperature (F)"
    },
    "cooling_design_wetbulb_temp": {
      "type": "number",
      "description": "Cooling design day wet bulb temperature (F)"
    },
    "winter_hp_design_temp": {
      "type": "number",
      "description": "(ASHRAE 1997 HOF) winter heat pump design adjust temperature (F)"
    },
    "summer_hp_design_temp": {
      "type": "number",
      "description": "(ASHRAE 1997 HOF) summer heat pump design adjust temperature (F)"
    },
    "avg_solar_horizontal_direct": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One item per month Jan-Dec",
      "items": [
        {
          "type": "number",
          "description": "Monthly average solar direct horizontal insolation (Btu/sqft/day)"
        }
      ]
    },
    "avg_solar_horizontal_diffuse": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One item per month Jan-Dec",
      "items": [
        {
          "type": "number",
          "description": "Monthly average solar diffuse horizontal insolation (Btu/sqft/day)"
        }
      ]
    },
    "avg_drybulb_temp": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One item per month Jan-Dec",
      "items": [
        {
          "type": "number",
          "description": "Monthly average dry bulb temperature (F)"
        }
      ]
    },
    "avg_wetbulb_temp": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One item per month Jan-Dec",
      "items": [
        {
          "type": "number",
          "description": "Monthly average wet bulb temperature (F)"
        }
      ]
    },
    "avg_wind_mph": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One item per month Jan-Dec",
      "items": [
        {
          "type": "number",
          "description": "Monthly average wind speed (mph)"
        }
      ]
    },    
    "avg_outdoor_dry_bulb_bin_temp": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One array per month Jan-Dec",
      "items": [
        {
          "type": "array",
          "minItems": 6,
          "maxItems": 6,
          "description": "The 6 bins per day are for hours (0000-0400) (0400-0800) (0800-1200) (1200-1600) (1600-2000) (2000-2400)",
          "items": [
            {
              "type": "number",
              "description": "Average outdoor dry bulb temperature for month (1-12) and bin (1-6) (F)"
            }
          ]
        }
      ]
    },
    "avg_outdoor_wet_bulb_bin_temp": {
        "type": "array",
        "minItems": 12,
        "maxItems": 12,
        "description": "One array per month",
        "items": [
          {
            "type": "array",
            "minItems": 6,
            "maxItems": 6,
            "description": "The 6 bins per day are for hours (0000-0400) (0400-0800) (0800-1200) (1200-1600) (1600-2000) (2000-2400)",
            "items": [
              {
                "type": "number",
                "description": "Average outdoor wet bulb temperature for month (1-12) and bin (1-6) (F)"
              }
            ]
          }
        ]
      },
      "avg_bin_wind_speed": {
        "type": "array",
        "minItems": 12,
        "maxItems": 12,
        "description": "One array per month",
        "items": [
          {
            "type": "array",
            "minItems": 6,
            "maxItems": 6,
            "description": "The 6 bins per day are for hours (0000-0400) (0400-0800) (0800-1200) (1200-1600) (1600-2000) (2000-2400)",
            "items": [
              {
                "type": "number",
                "description": "Average windspeed for month (1-12) and bin(1-6) (mph)"
  
              }
            ]
          }
        ]
      },   
    "balance_point_bin_base_temp": {
      "type": "array",
      "minItems": 9,
      "maxItems": 9,
      "description": "The 9 base temperatures (F) for the degree hour bins in the order [75,70,65,60,57,55,50,45,40]",
      "items": [
        {
          "type": "number",
          "description": "Degree hour balance point bin base temperature (F)",
          "comment": ""
        }
      ]
    },
    "heating_day_bin_degree_hour": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One array per month",
      "items": [
        {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "description": "Degree hour daytime bins for base temperatures (F) in balance_point_bin_base_temp in the order 75 - 40",
          "items": [
            {
              "type": "number",
              "description": "Degree hours daytime heating for month (1-12) and base temperature bin (1-9) (F hr)"
            }
          ]
        }
      ]
    },
    "heating_night_bin_degree_hour": {
      "type": "array",
      "minItems": 12,
      "maxItems": 12,
      "description": "One array per month",
      "items": [
          {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "description": "Degree hour nighttime bins for base temperatures (F) in balance_point_bin_base_temp in the order 75 - 40",
          "items": [
              {
              "type": "number",
              "description": "Degree hours nightime heating for month (1-12) and base temperature bin (1-9) (F hr)"
              }
          ]
        }
      ]
    },
    "cooling_day_bin_degree_hour": {
        "type": "array",
        "minItems": 12,
        "maxItems": 12,
        "description": "One array per month",
        "items": [
          {
            "type": "array",
            "minItems": 9,
            "maxItems": 9,
            "description": "Degree hour daytime bins for base temperatures (F) in balance_point_bin_base_temp in the order 75 - 40",
            "items": [
              {
                "type": "number",
                "description": "Degree hours daytime cooling for month (1-12) and base temperature bin (1-9) (F hr)"
              }
            ]
          }
        ]
      },
    "cooling_night_bin_degree_hour": {
        "type": "array",
        "minItems": 12,
        "maxItems": 12,
        "description": "One array per month",
        "items": [
          {
            "type": "array",
            "minItems": 9,
            "maxItems": 9,
            "description": "Degree hour nighttime bins for base temperatures (F) in balance_point_bin_base_temp in the order 75 - 40",
            "items": [
              {
                "type": "number",
                "description": "Degree hours nightimer cooling for month (1-12) and base temperature bin (1-9) (F hr)"
              }
            ]
          }
        ]
      } 
  },
  "required": [
    "location_title",
    "city",
    "station_id",
    "latitude",
    "longitude",
    "timezone",
    "altitude",
    "heating_design_temp",
    "cooling_design_temp",
    "cooling_design_wetbulb_temp",
    "winter_hp_design_temp",
    "summer_hp_design_temp",
    "avg_solar_horizontal",
    "avg_drybulb_temp",
    "avg_wetbulb_temp",
    "avg_wind_mph",
    "avg_outdoor_dry_bulb_bin_temp",
    "avg_outdoor_wet_bulb_bin_temp",
    "avg_bin_wind_speed",
    "balance_point_bin_base_temp",
    "heating_day_bin_degree_hour",
    "heating_night_bin_degree_hour",
    "cooling_day_bin_degree_hour",
    "cooling_night_bin_degree_hour"
  ]
}