netcdf upperairbufr/IUSZ52_KWBC_030625_50818595.bufr {
  types:
    enum Radiosonde_type { };
    enum Radiosonde_computational_method { };
    enum Cloud_amount { '0' = 0, '1 okta or less, but not zero' = 1, '2 oktas' = 2, '3 oktas' = 3, '4 oktas' = 4, '5 oktas' = 5, '6 oktas' = 6, '7 oktas or more, but not 8 oktas' = 7, '8 oktas' = 8, 'Sky obscured by fog and/or other meteorological phenomena' = 9, 'Sky partially obscured by fog and/or other meteorological phenomena' = 10, 'Scattered' = 11, 'Broken' = 12, 'Few' = 13, 'Cloud cover is indiscernible for reasons other than fog or other meteorological phenomena, or observation is not made' = 15};
    enum Cloud_type { 'Cirrus (Ci)' = 0, 'Cirrocumulus (Cc)' = 1, 'Cirrostratus (Cs)' = 2, 'Altocumulus (Ac)' = 3, 'Altostratus (As)' = 4, 'Nimbostratus (Ns)' = 5, 'Stratocumulus (Sc)' = 6, 'Stratus (St)' = 7, 'Cumulus (Cu)' = 8, 'Cumulonimbus (Cb)' = 9, 'No CH clouds' = 10, 'Cirrus fibratus, sometimes uncinus, not progressively invading the sky' = 11, 'Cirrus spissatus, in patches or entangled sheaves, which usually do not increase and sometimes seem to be the remains of the upper part of a cumulonimbus; or cirrus castellanus or floccus' = 12, 'Cirrus spissatus cumulonimbogenitus' = 13, 'Cirrus uncinus or fibratus, or both, progressively invading the sky; they generally thicken as a whole' = 14, 'Cirrus (often in bands) and cirrostratus, or cirrostratus alone, progressively invading the sky; they generally thicken as a whole, but the continuous veil does not reach 45 degrees above the horizon' = 15, 'Cirrus (often in bands) and cirrostratus, or cirrostratus alone, progressively Invading the sky; they generally thicken as a whole; the continuous veil extends more than 45 degrees above the horizon, without the sky being totally covered' = 16, 'Cirrostratus covering the whole sky' = 17, 'Cirrostratus not progressively invading the sky and not entirely covering it' = 18, 'Cirrocumulus alone, or cirrocumulus predominant among the CH clouds' = 19, 'No CM clouds' = 20, 'Altostratus translucidus' = 21, 'Altostratus opacus or nimbostratus' = 22, 'Altocumulus translucidus at a single level' = 23, 'Patches (often lenticular) of altocumulus translucidus, continually changing and occurring at one or more levels' = 24, 'Altocumulus translucidus in bands, or one or more layers of altocumulus translucidus or opacus, progressively invading the sky; these altocumulus clouds generally thicken as a whole' = 25, 'Altocumulus cumulogenitus (or cumulonimbogenitus)' = 26, 'Altocumulus translucidus or opacus in two or more layers, or altocumulus opacus in a single layer, not progressively invading the sky, or altocumulus with altostratus or nimbostratus' = 27, 'Altocumulus castellanus or floccus' = 28, 'Altocumulus of a chaotic sky, generally at several levels' = 29, 'No CL clouds' = 30, 'Cumulus humilis or cumulus fractus other than of bad weather, or both' = 31, 'Cumulus mediocris or congestus, towering cumulus (TCU), with or without cumulus of species fractus or humilis or stratocumulus, all having their bases at the same level' = 32, 'Cumulonimbus calvus, with or without cumulus, stratocumulus or stratus' = 33, 'Stratocumulus cumulogenitus' = 34, 'Stratocumulus other than stratocumulus cumulogenitus' = 35, 'Stratus nebulosus or stratus fractus other than of bad weather, or both' = 36, 'Stratus fractus or cumulus fractus of bad weather, or both (pannus), usually below altostratus or nimbostratus' = 37, 'Cumulus and stratocumulus other than stratocumulus cumulogenitus, with bases at different levels' = 38, 'Cumulonimbus capillatus (often with an anvil), with or without cumulonimbus calvus, cumulus, stratocumulus, stratus or pannus' = 39, 'CH' = 40, 'CM' = 41, 'CL' = 42, 'Clear' = 43, 'Liquid water' = 44, 'Supercooled liquid water' = 45, 'Mixed phase' = 46, 'Optically thick ice' = 47, 'Optically thin ice' = 48, 'Multilayered ice' = 49, 'Cloud not visible owing to darkness, fog, duststorm, sandstorm, or other analogous phenomena' = 59, 'CH clouds invisible owing to darkness, fog, blowing dust or sand, or other similar phenomena, or because of a continuous layer of lower clouds' = 60, 'CM clouds invisible owing to darkness, fog, blowing dust or sand, or other similar phenomena, or because of continuous layer of lower clouds' = 61, 'CL clouds invisible owing to darkness, fog, blowing dust or sand, or other similar phenomena' = 62, 'Missing value' = 63};

  variables:

    Sequence {
      byte WMO_block_number;
        :missing_value = 127B; // byte
        :BUFR:TableB_descriptor = "0-1-1";
        :BUFR:bitWidth = 7; // int
      short WMO_station_number;
        :missing_value = 1023S; // short
        :standard_name = "station_WMO_id";
        :BUFR:TableB_descriptor = "0-1-2";
        :BUFR:bitWidth = 10; // int
      enum Radiosonde_type Radiosonde_type;
        :units = "CodeTable 0-2-11";
        :BUFR:CodeTable = "Radiosonde type (0-2-11)";
        :BUFR:TableB_descriptor = "0-2-11";
        :BUFR:bitWidth = 8; // int
      enum Radiosonde_computational_method Radiosonde_computational_method;
        :units = "CodeTable 0-2-12";
        :BUFR:CodeTable = "Radiosonde computational method (0-2-12)";
        :BUFR:TableB_descriptor = "0-2-12";
        :BUFR:bitWidth = 4; // int
      short Year;
        :units = "Year";
        :missing_value = 4095S; // short
        :BUFR:TableB_descriptor = "0-4-1";
        :BUFR:bitWidth = 12; // int
      byte Month;
        :units = "Month";
        :missing_value = 15B; // byte
        :BUFR:TableB_descriptor = "0-4-2";
        :BUFR:bitWidth = 4; // int
      byte Day;
        :units = "Day";
        :missing_value = 63B; // byte
        :BUFR:TableB_descriptor = "0-4-3";
        :BUFR:bitWidth = 6; // int
      byte Hour;
        :units = "Hour";
        :missing_value = 31B; // byte
        :BUFR:TableB_descriptor = "0-4-4";
        :BUFR:bitWidth = 5; // int
      byte Minute;
        :units = "Minute";
        :missing_value = 63B; // byte
        :BUFR:TableB_descriptor = "0-4-5";
        :BUFR:bitWidth = 6; // int
      short Latitude_coarse_accuracy;
        :units = "degrees_north";
        :missing_value = 32767S; // short
        :scale_factor = 0.01f; // float
        :add_offset = -90.0f; // float
        :_CoordinateAxisType = "Lat";
        :BUFR:TableB_descriptor = "0-5-2";
        :BUFR:bitWidth = 15; // int
      short Longitude_coarse_accuracy;
        :units = "degrees_east";
        :_Unsigned = "true";
        :missing_value = 65535; // int
        :scale_factor = 0.01f; // float
        :add_offset = -180.0f; // float
        :_CoordinateAxisType = "Lon";
        :BUFR:TableB_descriptor = "0-6-2";
        :BUFR:bitWidth = 16; // int
      short Height_of_station;
        :units = "m";
        :missing_value = 32767S; // short
        :add_offset = -400.0f; // float
        :_CoordinateAxisType = "Height";
        :BUFR:TableB_descriptor = "0-7-1";
        :BUFR:bitWidth = 15; // int

      Structure {
        byte Vertical_sounding_significance;
          :units = "FlagTable 0-8-1";
          :missing_value = 127B; // byte
          :BUFR:TableB_descriptor = "0-8-1";
          :BUFR:bitWidth = 7; // int
        short Pressure;
          :units = "Pa";
          :missing_value = 16383S; // short
          :scale_factor = 10.0f; // float
          :BUFR:TableB_descriptor = "0-7-4";
          :BUFR:bitWidth = 14; // int
        int Geopotential;
          :units = "m2 s-2";
          :missing_value = 131071; // int
          :scale_factor = 10.0f; // float
          :add_offset = -4000.0f; // float
          :BUFR:TableB_descriptor = "0-10-3";
          :BUFR:bitWidth = 17; // int
        short Temperature-dry-bulb_temperature;
          :units = "K";
          :missing_value = 4095S; // short
          :scale_factor = 0.1f; // float
          :BUFR:TableB_descriptor = "0-12-1";
          :BUFR:bitWidth = 12; // int
        short Dew-point_temperature;
          :units = "K";
          :missing_value = 4095S; // short
          :scale_factor = 0.1f; // float
          :BUFR:TableB_descriptor = "0-12-3";
          :BUFR:bitWidth = 12; // int
      } struct1(135);


      Structure {
        short Pressure-2;
          :units = "Pa";
          :missing_value = 16383S; // short
          :scale_factor = 10.0f; // float
          :BUFR:TableB_descriptor = "0-7-4";
          :BUFR:bitWidth = 14; // int
        byte Vertical_sounding_significance-2;
          :units = "FlagTable 0-8-1";
          :missing_value = 127B; // byte
          :BUFR:TableB_descriptor = "0-8-1";
          :BUFR:bitWidth = 7; // int
        short Wind_direction;
          :units = "Degree true";
          :missing_value = 511S; // short
          :BUFR:TableB_descriptor = "0-11-1";
          :BUFR:bitWidth = 9; // int
        short Wind_speed;
          :units = "m s-1";
          :missing_value = 4095S; // short
          :scale_factor = 0.1f; // float
          :BUFR:TableB_descriptor = "0-11-2";
          :BUFR:bitWidth = 12; // int
      } struct2(50);

      enum Cloud_amount Cloud_amount;
        :units = "CodeTable 0-20-11";
        :BUFR:CodeTable = "Cloud amount (0-20-11)";
        :BUFR:TableB_descriptor = "0-20-11";
        :BUFR:bitWidth = 4; // int
      enum Cloud_type Cloud_type(3);
        :units = "CodeTable 0-20-12";
        :BUFR:CodeTable = "Cloud type (0-20-12)";
        :BUFR:TableB_descriptor = "0-20-12";
        :BUFR:bitWidth = 6; // int
      short Height_of_base_of_cloud;
        :units = "m";
        :missing_value = 2047S; // short
        :scale_factor = 10.0f; // float
        :add_offset = -400.0f; // float
        :BUFR:TableB_descriptor = "0-20-13";
        :BUFR:bitWidth = 11; // int
    } obs;
    :coordinates = "Latitude_coarse_accuracy Longitude_coarse_accuracy Height_of_station ";


  // global attributes:
  :history = "Read using CDM BufrIosp2";
  :location = "/data/ldm/pub/native/bufrua/IUSZ52_KWBC_030625_50818595.bufr";
  :BUFR:categoryName = "Vertical soundings (other than satellite)";
  :BUFR:centerName = "8.0 (US National Weather Service Telecommunications Gateway (NWSTG))";
  :BUFR:category = 2; // int
  :BUFR:subCategory = 0; // int
  :BUFR:localSubCategory = -1; // int
  :BUFR:centerId = 8; // int
  :BUFR:subCenter = 0; // int
  :BUFR:table = 0; // int
  :BUFR:tableVersion = 13; // int
  :BUFR:localTableVersion = 0; // int
  :Conventions = "BUFR/CDM";
  :BUFR:edition = 3; // int
  :WMO_Header = "595 IUSZ52 KWBC 030625";
}