# spacepy.pycdf.istp.fillval

`spacepy.pycdf.istp.``fillval`(v)

  Set ISTP-compliant FILLVAL on a variable

  Sets a CDF variable’s FILLVAL attribute to the value required by ISTP (based on variable type).

  Parameters: | v : `Var` CDF variable to update

  Examples

      >>> import spacepy.pycdf
      >>> import spacepy.pycdf.istp
      >>> f = spacepy.pycdf.CDF('foo.cdf', create=True)
      >>> v = f.new('Var', data=[1, 2, 3])
      >>> spacepy.pycdf.istp.fillval(v)
      >>> v.attrs['FILLVAL']
      -128