I need to join several NetCdf file with different variables using python

Viewed 14

I have 3 netcdf files: a.nc, b.nc, c.nc. The first one has 4 variables (lon; lat; z; time), the second and the third have 5 (lon; lat; u; time_bonds; time), (lon; lat; v; time_bonds; time). I need somehow to join all these three files into one d.nc, which should has 4 varibles (lon, lat, all z values after all u values after all v values, time). But I faced up with a problem. While length andvalues of lon and lat are the same, the length of the time varible are different: of a.nc is 9000, of b.nc and c.nc is 11000. To sum up, I have two questions. How to make one file with joined z, u and v into one huge array? How to exclude extra data from u and v variables, because i need to have their length 9000?

0 Answers
Related