Open chufall opened 1 month ago
Try to use .squeeze() on your dataset, it should remove the dependence.
Try to use .squeeze() on your dataset, it should remove the dependence.
Thank you for your reply!
I have tried by run: xr_dataset.coords["datetime"].squeeze() The result is no changed. There's the coord 'batch in the "datetime"
if I run the : xr_dataset.squeeze() , it will remove all the dims=1 , which is not my option
Qc
Hi, I'm trying to build a xarray dataset with mine own data, and the code is as following:
`numpy_array = data
but in the result dataset , the coord "datetime" which type is xarray.DataArray has own coords and dims "batch" and "time" , such like:
However if I load the example dataset "source-era5_date-2022-01-01_res-0.25_levels-37_steps-01.nc", whose coord "datetime" has "batch" and "time" dims ,but only the "time" coord. such like :
So my question is how to remove the coord "batch" of the datetime in my dataset?
Thanks a lot!
Sincerely, Qc