ocf-data-sampler 0.2.18__py3-none-any.whl → 0.2.19__py3-none-any.whl

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.

Potentially problematic release.


This version of ocf-data-sampler might be problematic. Click here for more details.

@@ -24,10 +24,10 @@ def open_gfs(zarr_path: str | list[str]) -> xr.DataArray:
24
24
  # Open data
25
25
  gfs: xr.Dataset = open_zarr_paths(zarr_path, time_dim="init_time_utc")
26
26
  nwp: xr.DataArray = gfs.to_array()
27
+ nwp = nwp.rename({"variable": "channel"}) # `variable` appears when using `to_array`
27
28
 
28
29
  del gfs
29
30
 
30
- nwp = nwp.rename({"variable": "channel","init_time": "init_time_utc"})
31
31
  check_time_unique_increasing(nwp.init_time_utc)
32
32
  nwp = make_spatial_coords_increasing(nwp, x_coord="longitude", y_coord="latitude")
33
33
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocf-data-sampler
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Author: James Fulton, Peter Dudfield
5
5
  Author-email: Open Climate Fix team <info@openclimatefix.org>
6
6
  License: MIT License
@@ -17,7 +17,7 @@ ocf_data_sampler/load/nwp/nwp.py,sha256=OUK6thsKfEcqGUj4WoxDiyqGcVwwoujePdmQRis8
17
17
  ocf_data_sampler/load/nwp/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  ocf_data_sampler/load/nwp/providers/cloudcasting.py,sha256=mGsEqo5nVGQhfIK1KC-ywLsaFKU18-UFKqQVtB8gpnw,1564
19
19
  ocf_data_sampler/load/nwp/providers/ecmwf.py,sha256=5AzktPJgertCx6oij6aePRosPuZHGFznMxTgtkk_mgc,994
20
- ocf_data_sampler/load/nwp/providers/gfs.py,sha256=pPqVqZqC9eK1gKfRsvR_hB-eiQ1V9LeYB15DVJElUX0,979
20
+ ocf_data_sampler/load/nwp/providers/gfs.py,sha256=gTXfBmjMK8NnbTz_PyPvznfcy0eNHFGGa7eQlDarErc,994
21
21
  ocf_data_sampler/load/nwp/providers/icon.py,sha256=q2ZJIKYptXFvoHzb9y3iNKSJZ0PNtnH54h2gwYbgIJ8,1569
22
22
  ocf_data_sampler/load/nwp/providers/ukv.py,sha256=-0v8JCLH8ypz8GMXZ6Rrx-I0LoHuHO8sXFupbC1RpM0,1013
23
23
  ocf_data_sampler/load/nwp/providers/utils.py,sha256=Rau6j6it2D4YLavoey-bdOlixgn5gDQioToAmRPAvtA,905
@@ -55,7 +55,7 @@ ocf_data_sampler/torch_datasets/utils/validation_utils.py,sha256=YqmT-lExWlI8_ul
55
55
  scripts/download_gsp_location_data.py,sha256=rRDXMoqX-RYY4jPdxhdlxJGhWdl6r245F5UARgKV6P4,3121
56
56
  scripts/refactor_site.py,sha256=skzvsPP0Cn9yTKndzkilyNcGz4DZ88ctvCJ0XrBdc2A,3135
57
57
  utils/compute_icon_mean_stddev.py,sha256=a1oWMRMnny39rV-dvu8rcx85sb4bXzPFrR1gkUr4Jpg,2296
58
- ocf_data_sampler-0.2.18.dist-info/METADATA,sha256=tW_PCGhhXGaFnPp3ChT8cmX640KcWeaAnCXRy4xsccw,11581
59
- ocf_data_sampler-0.2.18.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
60
- ocf_data_sampler-0.2.18.dist-info/top_level.txt,sha256=LEFU4Uk-PEo72QGLAfnVZIUEm37Q8mKuMeg_Xk-p33g,31
61
- ocf_data_sampler-0.2.18.dist-info/RECORD,,
58
+ ocf_data_sampler-0.2.19.dist-info/METADATA,sha256=PODEt_bufdiQ_WJnSKXcZ39N_8Gylbpj9CN2_Yl5PUw,11581
59
+ ocf_data_sampler-0.2.19.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
60
+ ocf_data_sampler-0.2.19.dist-info/top_level.txt,sha256=LEFU4Uk-PEo72QGLAfnVZIUEm37Q8mKuMeg_Xk-p33g,31
61
+ ocf_data_sampler-0.2.19.dist-info/RECORD,,