Skip to content

Commit bfcb305

Browse files
authored
Merge pull request #157 from rcjackson/parallel_scipy
Fix issues with adding the units and long name to output wind fields
2 parents e28bda8 + 1193ddd commit bfcb305

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

pydda/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from . import constraints
1313
from . import io
1414

15-
__version__ = "2.4.0"
15+
__version__ = "2.4.1"
1616

1717
print("Welcome to PyDDA %s" % __version__)
1818
print("If you are using PyDDA in your publications, please cite:")

pydda/retrieval/wind_retrieve.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,17 +748,20 @@ def loss_and_gradient(x):
748748

749749
u_field = {}
750750
u_field["standard_name"] = "u_wind"
751-
u_field["long_name"] = "meridional component of wind velocity"
751+
u_field["long_name"] = "zonal component of wind velocity"
752+
u_field["units"] = "m/s"
752753
u_field["min_bca"] = min_bca
753754
u_field["max_bca"] = max_bca
754755
v_field = {}
755756
v_field["standard_name"] = "v_wind"
756-
v_field["long_name"] = "zonal component of wind velocity"
757+
v_field["long_name"] = "meridional component of wind velocity"
758+
v_field["units"] = "m/s"
757759
v_field["min_bca"] = min_bca
758760
v_field["max_bca"] = max_bca
759761
w_field = {}
760762
w_field["standard_name"] = "w_wind"
761763
w_field["long_name"] = "vertical component of wind velocity"
764+
w_field["units"] = "m/s"
762765
w_field["min_bca"] = min_bca
763766
w_field["max_bca"] = max_bca
764767

@@ -1270,17 +1273,20 @@ def _get_dd_wind_field_tensorflow(
12701273

12711274
u_field = {}
12721275
u_field["standard_name"] = "u_wind"
1273-
u_field["long_name"] = "meridional component of wind velocity"
1276+
u_field["long_name"] = "zonal component of wind velocity"
1277+
u_field["units"] = "m/s"
12741278
u_field["min_bca"] = min_bca
12751279
u_field["max_bca"] = max_bca
12761280
v_field = {}
12771281
v_field["standard_name"] = "v_wind"
1278-
v_field["long_name"] = "zonal component of wind velocity"
1282+
v_field["long_name"] = "meridional component of wind velocity"
1283+
v_field["units"] = "m/s"
12791284
v_field["min_bca"] = min_bca
12801285
v_field["max_bca"] = max_bca
12811286
w_field = {}
12821287
w_field["standard_name"] = "w_wind"
12831288
w_field["long_name"] = "vertical component of wind velocity"
1289+
w_field["units"] = "m/s"
12841290
w_field["min_bca"] = min_bca
12851291
w_field["max_bca"] = max_bca
12861292

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
PLATFORMS = "Linux, Windows, OSX"
4343
MAJOR = 2
4444
MINOR = 4
45-
MICRO = 0
45+
MICRO = 1
4646

4747
# SCRIPTS = glob.glob('scripts/*')
4848
# TEST_SUITE = 'nose.collector'

0 commit comments

Comments
 (0)