I’ve been trying to read in daily velocity data from ACCESS-OM2 ‘01deg_jra55v13_ryf9091’ run and have come across a few hiccups. In the RYF run, the model description says daily data is only available for 1 Jan 1950 to 31 Dec 1969 and 1 Jan 2086 to 31 Dec 2100. Therefore, running the usual cookbook command:
u = cc.querying.getvar(expt,'u', session, frequency = '1 daily')
will either a) concatenate the two segments of daily data together, which it does for the u variable, or b) spit out an error, which it does for v variable.
Is it potentially because there are no daily data for the whole experiment and when asked cookbook or xarray tries to do some weird combine of different datasets?
This is already enough of a problem (you’d be attempting to load some of the data twice). But the reason why you see different behaviour between u and v is because somehow the sorting ends up different between the two:
I guess xarray doesn’t mind if it loads the larger segment first, and then the smaller ones, as for u. But if it loads a 1-month segment, and then the 3-month one, it breaks.
Yes, that’d work. You’d want "ocean_daily_3d_u_%" or "ocean_daily_3d_v_%" or something like that. I can’t remember if the earlier files are all single-month and the later ones are three-month, which might mean you need to do two queries…