windborne 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
windborne/utils.py CHANGED
@@ -389,7 +389,7 @@ def convert_to_netcdf(data, curtime, output_filename=None):
389
389
  ds = ds.assign_coords(time=("time", ds['time'].data))
390
390
 
391
391
  # Now that calculations are done, remove variables not needed in the netcdf output
392
- variables_to_drop = ['humidity', 'speed_x', 'speed_y', 'timestamp', 'mission_name']
392
+ variables_to_drop = ['humidity', 'speed_x', 'speed_y', 'timestamp']
393
393
  existing_vars = [var for var in variables_to_drop if var in ds]
394
394
  ds = ds.drop_vars(existing_vars)
395
395
 
@@ -463,7 +463,6 @@ def convert_to_netcdf(data, curtime, output_filename=None):
463
463
  '_FillValue': float('nan'),
464
464
  'processing_level': ''
465
465
  }
466
-
467
466
  ds['specific_humidity'].attrs = {
468
467
  'units': 'mg/kg',
469
468
  'long_name': 'Specific Humidity',
@@ -471,6 +470,11 @@ def convert_to_netcdf(data, curtime, output_filename=None):
471
470
  'processing_level': '',
472
471
  'Conventions': "CF-1.8, WMO-CF-1.0"
473
472
  }
473
+ ds['mission_name'].attrs = {
474
+ 'long_name': 'Mission name',
475
+ 'description': 'Which balloon collected the data',
476
+ '_FillValue': ''
477
+ }
474
478
 
475
479
  # Add Global Attributes synonymous across all UASDC providers
476
480
  if not is_multi_mission:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: windborne
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: A Python library for interacting with WindBorne Data and Forecasts API
5
5
  Author-email: WindBorne Systems <data@windbornesystems.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -3,9 +3,9 @@ windborne/cli.py,sha256=ZNqeIlWqlKE4iCo8kptUH6Wbish0T8O7-Hljt-gEi9Q,31031
3
3
  windborne/config.py,sha256=FYIBRiIuii5igAFQlOsHUa6u2i1kKnO1yZE7QfQJvUg,1688
4
4
  windborne/data_api.py,sha256=dnF54sLPYRU5dect3WxmonbHKUjihfE9dVdpaT-fylk,35560
5
5
  windborne/forecasts_api.py,sha256=AYuhFRls_XvzuNB55NF0w3y-_ocYwPxmI6C1lIyFkgM,16865
6
- windborne/utils.py,sha256=4-6HzfkSRF2l6S37Otu1HywzmxTVCW84InroBCpStFo,38369
7
- windborne-1.0.2.dist-info/METADATA,sha256=o42RejgsI8-Hpc3Pno6gG4eJeAIPun9rzws48Svwz4Q,1264
8
- windborne-1.0.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
- windborne-1.0.2.dist-info/entry_points.txt,sha256=j_YrqdCDrCd7p5MIwQ2BYwNXEi95VNANzLRJmcXEg1U,49
10
- windborne-1.0.2.dist-info/top_level.txt,sha256=PE9Lauriu5S5REf7JKhXprufZ_V5RiZ_TnfnrLGJrmE,10
11
- windborne-1.0.2.dist-info/RECORD,,
6
+ windborne/utils.py,sha256=aEwZ1EPSA2j-1_tM99tIUqfXwliP7LJATBkOF8Y2yfU,38512
7
+ windborne-1.0.3.dist-info/METADATA,sha256=sll2L3ENyBL4BaF4h_na-T-DKHXBFx0eyRh7HP5RaNM,1264
8
+ windborne-1.0.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ windborne-1.0.3.dist-info/entry_points.txt,sha256=j_YrqdCDrCd7p5MIwQ2BYwNXEi95VNANzLRJmcXEg1U,49
10
+ windborne-1.0.3.dist-info/top_level.txt,sha256=PE9Lauriu5S5REf7JKhXprufZ_V5RiZ_TnfnrLGJrmE,10
11
+ windborne-1.0.3.dist-info/RECORD,,