| Total Complexity | 0 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # Copyright (c) 2019 Stefan Bender |
||
| 2 | # |
||
| 3 | # This module is part of pynrlmsise00. |
||
| 4 | # pynrlmsise00 is free software: you can redistribute it or modify |
||
| 5 | # it under the terms of the GNU General Public License as published |
||
| 6 | # by the Free Software Foundation, version 2. |
||
| 7 | # See accompanying LICENSE file or http://www.gnu.org/licenses/gpl-2.0.html. |
||
| 8 | """Python 4-D `xarray.dataset` interface to the NRLMSISE-00 model |
||
| 9 | |||
| 10 | """ |
||
| 11 | from warnings import warn |
||
| 12 | |||
| 13 | try: |
||
| 14 | from .core import * |
||
| 15 | except ImportError as e: |
||
| 16 | msg = ( |
||
| 17 | "nrlmsise00 dataset requirements not installed.\n" |
||
| 18 | "Please install them using:\n" |
||
| 19 | " pip intsall 'nrlmsise00[dataset]' # for xarray.Dataset support\n" |
||
| 20 | "or:\n" |
||
| 21 | " pip intsall 'nrlmsise00[all]' # for all optional modules" |
||
| 22 | ) |
||
| 23 | raise ImportError(msg) |
||
| 24 | |||
| 25 | __all__ = ["msise_4d"] |
||
| 26 | |||
| 27 | warn("The xarray 4d interface is experimental.", UserWarning) |
||
| 28 |