Alaea 2.6.3__tar.gz → 2.6.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. alaea-2.6.4/.VERSION +1 -0
  2. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_netcdf.py +2 -0
  3. {alaea-2.6.3 → alaea-2.6.4}/Alaea.egg-info/PKG-INFO +1 -1
  4. {alaea-2.6.3 → alaea-2.6.4}/ChangeLog.md +4 -0
  5. {alaea-2.6.3 → alaea-2.6.4}/PKG-INFO +1 -1
  6. {alaea-2.6.3 → alaea-2.6.4}/setup.py +1 -1
  7. {alaea-2.6.3 → alaea-2.6.4}/tests/test_core.py +2 -0
  8. alaea-2.6.3/.VERSION +0 -1
  9. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Blogging.py +0 -0
  10. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Pyshell/RS_File.py +0 -0
  11. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Pyshell/__init__.py +0 -0
  12. {alaea-2.6.3 → alaea-2.6.4}/Alaea/S_DateTime.py +0 -0
  13. {alaea-2.6.3 → alaea-2.6.4}/Alaea/SameAsMATLAB/CoorTrans.py +0 -0
  14. {alaea-2.6.3 → alaea-2.6.4}/Alaea/SameAsMATLAB/__init__.py +0 -0
  15. {alaea-2.6.3 → alaea-2.6.4}/Alaea/SameAsMATLAB/calculatefuns.py +0 -0
  16. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/__init__.py +0 -0
  17. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/vars_name.py +0 -0
  18. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_atmos.py +0 -0
  19. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_attrs.py +0 -0
  20. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_ice.py +0 -0
  21. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_vars.py +0 -0
  22. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_wave.py +0 -0
  23. {alaea-2.6.3 → alaea-2.6.4}/Alaea/Standard/xr_wind.py +0 -0
  24. {alaea-2.6.3 → alaea-2.6.4}/Alaea/__init__.py +0 -0
  25. {alaea-2.6.3 → alaea-2.6.4}/Alaea/baysalt/Forage/__init__.py +0 -0
  26. {alaea-2.6.3 → alaea-2.6.4}/Alaea/baysalt/Forage/erosion_data/__init__.py +0 -0
  27. {alaea-2.6.3 → alaea-2.6.4}/Alaea/baysalt/__init__.py +0 -0
  28. {alaea-2.6.3 → alaea-2.6.4}/Alaea/baysalt/erosion_coastline.py +0 -0
  29. {alaea-2.6.3 → alaea-2.6.4}/Alaea/commonCode.py +0 -0
  30. {alaea-2.6.3 → alaea-2.6.4}/Alaea/cprintfs.py +0 -0
  31. {alaea-2.6.3 → alaea-2.6.4}/Alaea/exutils/Interp/Interp_g2s.py +0 -0
  32. {alaea-2.6.3 → alaea-2.6.4}/Alaea/exutils/Interp/Interp_s2g.py +0 -0
  33. {alaea-2.6.3 → alaea-2.6.4}/Alaea/exutils/Interp/__init__.py +0 -0
  34. {alaea-2.6.3 → alaea-2.6.4}/Alaea/exutils/Interp/interpolate.py +0 -0
  35. {alaea-2.6.3 → alaea-2.6.4}/Alaea/exutils/__init__.py +0 -0
  36. {alaea-2.6.3 → alaea-2.6.4}/Alaea/netcdf_input.py +0 -0
  37. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/__init__.py +0 -0
  38. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/fvcom_class.py +0 -0
  39. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/fvcom_image.py +0 -0
  40. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/fvcom_load.py +0 -0
  41. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/fvcom_tools.py +0 -0
  42. {alaea-2.6.3 → alaea-2.6.4}/Alaea/pFVCOM/writeFile.py +0 -0
  43. {alaea-2.6.3 → alaea-2.6.4}/Alaea/processBar.py +0 -0
  44. {alaea-2.6.3 → alaea-2.6.4}/Alaea/read_conf.py +0 -0
  45. {alaea-2.6.3 → alaea-2.6.4}/Alaea/server_info.py +0 -0
  46. {alaea-2.6.3 → alaea-2.6.4}/Alaea/storage.py +0 -0
  47. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/P_params.py +0 -0
  48. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/Read.py +0 -0
  49. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/__init__.py +0 -0
  50. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/download_check.py +0 -0
  51. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/geo_distance.py +0 -0
  52. {alaea-2.6.3 → alaea-2.6.4}/Alaea/tools/kml2shp.py +0 -0
  53. {alaea-2.6.3 → alaea-2.6.4}/Alaea/warningTools/__init__.py +0 -0
  54. {alaea-2.6.3 → alaea-2.6.4}/Alaea.egg-info/SOURCES.txt +0 -0
  55. {alaea-2.6.3 → alaea-2.6.4}/Alaea.egg-info/dependency_links.txt +0 -0
  56. {alaea-2.6.3 → alaea-2.6.4}/Alaea.egg-info/requires.txt +0 -0
  57. {alaea-2.6.3 → alaea-2.6.4}/Alaea.egg-info/top_level.txt +0 -0
  58. {alaea-2.6.3 → alaea-2.6.4}/LICENSE +0 -0
  59. {alaea-2.6.3 → alaea-2.6.4}/MANIFEST.in +0 -0
  60. {alaea-2.6.3 → alaea-2.6.4}/README.md +0 -0
  61. {alaea-2.6.3 → alaea-2.6.4}/pyproject.toml +0 -0
  62. {alaea-2.6.3 → alaea-2.6.4}/setup.cfg +0 -0
  63. {alaea-2.6.3 → alaea-2.6.4}/tests/test_logging_multiprocess.py +0 -0
alaea-2.6.4/.VERSION ADDED
@@ -0,0 +1 @@
1
+ v2.6.4
@@ -142,6 +142,8 @@ def _write_zstd(_ds: xr.Dataset, path: Path, complevel: int, shuffle: bool) -> N
142
142
  dtype = np.dtype(encoded.dtype)
143
143
  fill_value = encoded.attrs.get('_FillValue')
144
144
  create_arguments = {} if fill_value is None else {'fill_value': fill_value}
145
+ if encoding.get('chunksizes') is not None:
146
+ create_arguments['chunksizes'] = tuple(int(size) for size in encoding['chunksizes'])
145
147
  target = output.createVariable(name, dtype, source.dims, **create_arguments)
146
148
  if source.dims and np.issubdtype(dtype, np.number) and complevel > 0:
147
149
  _apply_zstd_pipeline(target, complevel, shuffle)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Alaea
3
- Version: 2.6.3
3
+ Version: 2.6.4
4
4
  Summary: Some simple tools by Christmas
5
5
  Author: Christmas
6
6
  Author-email: 273519355@qq.com
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## v2.6.4
4
+
5
+ - `write_netcdf` 的 Zstd 分支现将每个数值变量指定的 `chunksizes` 传递给 NetCDF4/HDF5,避免全球时序数据被自动分为跨多个时次的大块;需要单时次访问的调用方可稳定保留 `time chunk=1`,压缩 filter 与数据内容不变。
6
+
3
7
  ## v2.6.3
4
8
 
5
9
  - `xr_atmos_dataset` 新增能见度、整层大气总云量、逐小时日照持续时间、2 米相对湿度、地表阵风、2 米露点温度和 2 米体感温度,并统一写入物理属性与编码;可与原有五个大气字段任意组合,不再要求调用方补字段或伪造占位变量。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Alaea
3
- Version: 2.6.3
3
+ Version: 2.6.4
4
4
  Summary: Some simple tools by Christmas
5
5
  Author: Christmas
6
6
  Author-email: 273519355@qq.com
@@ -8,7 +8,7 @@ with open("README.md", "r") as fh:
8
8
 
9
9
  setuptools.setup(
10
10
  name="Alaea",
11
- version="2.6.3",
11
+ version="2.6.4",
12
12
  author="Christmas",
13
13
  author_email="273519355@qq.com",
14
14
  description="Some simple tools by Christmas",
@@ -312,6 +312,7 @@ class UtilityRegressionTest(unittest.TestCase):
312
312
  coordinates = np.asarray([0.5], dtype=np.float32)
313
313
  values = np.asarray([[[1.0]], [[3.0]]], dtype=np.float32)
314
314
  dataset = xr_atmos_dataset(coordinates, coordinates, times, _TIME_type='str', wind_U10=values)
315
+ dataset['wind_U10'].encoding['chunksizes'] = (1, 1, 1)
315
316
  with tempfile.TemporaryDirectory() as directory:
316
317
  output = Path(directory) / 'zstd.nc'
317
318
  write_netcdf(dataset, output, compression='zstd', complevel=1)
@@ -321,6 +322,7 @@ class UtilityRegressionTest(unittest.TestCase):
321
322
  self.assertTrue(filters['zstd'])
322
323
  self.assertFalse(filters['zlib'])
323
324
  self.assertEqual(filters['complevel'], 1)
325
+ self.assertEqual(netcdf.variables['wind_U10'].chunking(), [1, 1, 1])
324
326
  self.assertEqual(netcdf.alaea_hdf5_filter_pipeline, 'shuffle(2)->zstd(32015,level=1)')
325
327
  np.testing.assert_allclose(netcdf.variables['wind_U10'][:].reshape(-1), [1.0, 3.0], atol=float(netcdf.variables['wind_U10'].scale_factor))
326
328
 
alaea-2.6.3/.VERSION DELETED
@@ -1 +0,0 @@
1
- v2.6.3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes