You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several netCDF files which do no cover the same time periods and I have to complete each one with a bunch of data from the previous one. I stored the required data in a xarray dataset variable (DATASET1 below) I want to merge with the newly opened dataset (DATASET2 below).
I tried both:
ds2 = xr.merge([ds1,ds2])
ds2 = xr.concat([ds1,ds2], dim="time")
Both take a lot of time and I have to perform this operation multiple times.
I previously used merge a few time ago and I didn't remember this was so long. Below, you can see what my data looks like (I just removed the attributes part). The amount of information do not seems too big to me and I don't understand what is happening. The version of xarray is 0.20.2 against python 3.7.
What can explain it runs so slow? What could I do in order to speed up these processings?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have several netCDF files which do no cover the same time periods and I have to complete each one with a bunch of data from the previous one. I stored the required data in a xarray dataset variable (DATASET1 below) I want to merge with the newly opened dataset (DATASET2 below).
I tried both:
Both take a lot of time and I have to perform this operation multiple times.
I previously used merge a few time ago and I didn't remember this was so long. Below, you can see what my data looks like (I just removed the attributes part). The amount of information do not seems too big to me and I don't understand what is happening. The version of xarray is 0.20.2 against python 3.7.
What can explain it runs so slow? What could I do in order to speed up these processings?
DATASET 1
KeysView(<xarray.Dataset>
Dimensions: (time: 6, gid: 99)
Coordinates:
Data variables:
lat (gid) float64 ...
lon (gid) float64 ...
tair (time, gid) float64 ...
DATASET2
KeysView(<xarray.Dataset>
Dimensions: (time: 8784, gid: 99)
Coordinates:
Data variables:
lat (gid) float64 ...
lon (gid) float64 ...
tair (time, gid) float64 ...
Beta Was this translation helpful? Give feedback.
All reactions