... | ... | @@ -84,21 +84,18 @@ source deactivate |
|
|
```
|
|
|
conda env remove --name fusion-matlab
|
|
|
```
|
|
|
|
|
|
## Installing base packages
|
|
|
|
|
|
These packages are are external to the SIPS (like HDF4 and NetCDF4 packages), or that are from
|
|
|
within SIPS but that provide general functionality not specific to fusion-matlab.
|
|
|
|
|
|
- Install base `conda` packages…
|
|
|
|
|
|
```bash
|
|
|
conda install --copy h5py netcdf4 scipy pyproj
|
|
|
conda install --copy -c $sips python-hdf4
|
|
|
conda install --copy -c $sips viirsmend
|
|
|
conda install --copy -c $sips collopak # Optional
|
|
|
conda install --copy -c $sips intercal # Optional
|
|
|
```
|
|
|
```
|
|
|
|
|
|
## Getting Imager/Sounder Fusion Code
|
|
|
Now that we are within the `fusion-matlab` python environment, we can install the required Fusion
|
... | ... | @@ -146,22 +143,22 @@ pip install py/polar2grid_core |
|
|
```
|
|
|
The MODIS module of Polar2Grid has a `pyhdf` depdendency in its `setup.py` file. The same required package
|
|
|
provided by the SIPS is called `python-hdf4`, and so we must apply the fillowing patch to `setup.py`:
|
|
|
```
|
|
|
> git diff py/polar2grid_modis/setup.py
|
|
|
diff --git a/py/polar2grid_modis/setup.py b/py/polar2grid_modis/setup.py
|
|
|
index 67dcf56..c3eef00 100644
|
|
|
--- a/py/polar2grid_modis/setup.py
|
|
|
+++ b/py/polar2grid_modis/setup.py
|
|
|
@@ -82,7 +82,7 @@ setup(
|
|
|
namespace_packages=["polar2grid"],
|
|
|
include_package_data=True,
|
|
|
zip_safe=True,
|
|
|
- install_requires=['numpy', 'pyhdf', 'polar2grid.core'],
|
|
|
+ install_requires=['numpy', 'python-hdf4', 'polar2grid.core'],
|
|
|
entry_points={
|
|
|
'console_scripts': [],
|
|
|
'polar2grid.frontend_class': ['modis=polar2grid.modis:Frontend'],
|
|
|
```
|
|
|
```
|
|
|
> git diff py/polar2grid_modis/setup.py
|
|
|
diff --git a/py/polar2grid_modis/setup.py b/py/polar2grid_modis/setup.py
|
|
|
index 67dcf56..c3eef00 100644
|
|
|
--- a/py/polar2grid_modis/setup.py
|
|
|
+++ b/py/polar2grid_modis/setup.py
|
|
|
@@ -82,7 +82,7 @@ setup(
|
|
|
namespace_packages=["polar2grid"],
|
|
|
include_package_data=True,
|
|
|
zip_safe=True,
|
|
|
- install_requires=['numpy', 'pyhdf', 'polar2grid.core'],
|
|
|
+ install_requires=['numpy', 'python-hdf4', 'polar2grid.core'],
|
|
|
entry_points={
|
|
|
'console_scripts': [],
|
|
|
'polar2grid.frontend_class': ['modis=polar2grid.modis:Frontend'],
|
|
|
```
|
|
|
after which we install the module by
|
|
|
```
|
|
|
pip install py/polar2grid_modis
|
... | ... | |