title: Reading all attributes WRF ('.dat') in Python
body: <p>I have WRF (binary dataset) and to be read all the attributes as stipulated in control file. So far I managed to pass through the data format using this method but don't know how to read all the variable in it.</p>
  <pre><code>import numpy as np
  filename='wrfout_d03_20210301_00.dat'
  with open(filename,'rb') as f:
      var=np.fromfile(f,np.float32)
  </code></pre>
  <p>Control file shows all the variables at each atmospheric level (height)</p>
  <pre><code>dset ^wrfout_d03_20210301_00.dat
  options  byteswapped
  undef 1.e30
  title  OUTPUT FROM WRF V4.1.1 MODEL
  xdef 2196 linear   99.5543   0.0090
  ydef  771 linear    0.5327   0.0090
  zdef   19 levels  
  1000.00000
   950.00000
   900.00000
   850.00000
   800.00000
   750.00000
   700.00000
   650.00000
   600.00000
   550.00000
   500.00000
   450.00000
   400.00000
   350.00000
   300.00000
   250.00000
   200.00000
   150.00000
   100.00000
  tdef  169 linear 00Z01MAR2021      60MN      
  VARS    2
  U10            1  0  U at 10 M (m s-1)
  V10            1  0  V at 10 M (m s-1)
  ENDVARS
  </code></pre>
  <p>How to read all the variables at each height?</p>