Skip to content

Commit e32c39c

Browse files
author
davbyr
committed
Version numbering updated
1 parent 2c6b296 commit e32c39c

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ This package is only for the generation of storm wind fields, stress and pressur
1414

1515
### Installation
1616

17+
For use, install using `pip`:
18+
19+
```
20+
pip install paratc
21+
```
22+
23+
If you will be using interpolation methods (e.g. to export to ROMS file), make sure you python version is >= 3.9.
24+
1725
For development:
1826

1927
1. Clone this repository and change directory into it.

src/paratc/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
from ._make_example_data import make_example_data
2-
from _version import __version__
1+
from ._make_example_data import make_example_data

src/paratc/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.0'
1+
__version__ = '0.1.3'

src/paratc/tc_models/_tc_model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from paratc import tctools, inflow_models, bg_models, stress_models, rmw_models
33
from paratc import _utils, _const, _output_formats
44
import xarray as xr
5-
import xesmf as xe
65
import os
76
import matplotlib.pyplot as plt
87

@@ -259,8 +258,10 @@ def make_windspeed_from_uv(self):
259258
def interpolate_to_arakawa(self, lon_u, lat_u, lon_v, lat_v):
260259
''' Interpolate the current tropical cyclone onto an Arakawa rho, U, V grid.
261260
This function uses XESMF to interpolate the dataset in space.
261+
Make sure your python version is >= 3.9.
262262
'''
263263

264+
import xesmf as xe
264265
data = self.data
265266

266267
# Find lists of variables present in dataset
@@ -296,6 +297,7 @@ def to_ROMS(self, ds_grd, rotate_to_grid = True ):
296297
297298
Dataset will be interpolated onto U and V coordinates using interpolate_to_arakawa(),
298299
which uses XESMF. Variables will be renamed and relevant attributes will be added.
300+
Make sure your python version is >= 3.9.
299301
300302
Args:
301303
ds_grd (xr.Dataset): ROMS grid in xarray Dataset form, opened from netcdf.

0 commit comments

Comments
 (0)