(obj)
| 87 | |
| 88 | |
| 89 | def array_extract_units(obj): |
| 90 | if isinstance(obj, xr.Variable | xr.DataArray | xr.Dataset): |
| 91 | obj = obj.data |
| 92 | |
| 93 | try: |
| 94 | return obj.units |
| 95 | except AttributeError: |
| 96 | return None |
| 97 | |
| 98 | |
| 99 | def array_strip_units(array): |
no outgoing calls
no test coverage detected
searching dependent graphs…