Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Last active September 12, 2018 19:56
Show Gist options
  • Save blaylockbk/13575e780f0246a3fe7b113b905c5279 to your computer and use it in GitHub Desktop.
Save blaylockbk/13575e780f0246a3fe7b113b905c5279 to your computer and use it in GitHub Desktop.
mask an array value
masked = H['value']
masked = np.ma.array(masked)
masked[masked == -10] = np.ma.masked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment