Skip to content

Commit

Permalink
Version numbering updated
Browse files Browse the repository at this point in the history
  • Loading branch information
davbyr committed Dec 12, 2023
1 parent 2c6b296 commit e32c39c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ This package is only for the generation of storm wind fields, stress and pressur

### Installation

For use, install using `pip`:

```
pip install paratc
```

If you will be using interpolation methods (e.g. to export to ROMS file), make sure you python version is >= 3.9.

For development:

1. Clone this repository and change directory into it.
Expand Down
3 changes: 1 addition & 2 deletions src/paratc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from ._make_example_data import make_example_data
from _version import __version__
from ._make_example_data import make_example_data
2 changes: 1 addition & 1 deletion src/paratc/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.0'
__version__ = '0.1.3'
4 changes: 3 additions & 1 deletion src/paratc/tc_models/_tc_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from paratc import tctools, inflow_models, bg_models, stress_models, rmw_models
from paratc import _utils, _const, _output_formats
import xarray as xr
import xesmf as xe
import os
import matplotlib.pyplot as plt

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

import xesmf as xe
data = self.data

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

0 comments on commit e32c39c

Please sign in to comment.