Vapor not showing time series using NetCDF file

I was trying to make a movie on vapor from my time-sequences of magnetic field vectors. I can successfully create 4D (t, x, y, z) Bx, By, Bz vectors in a single netcdf file. But while reading on vapor I see only single (t=0) frame.

Hi Rahul, ~could you post a sample of your data, or email a sample to pearse@ucar.edu~?

Nevermind, I see it. Hang tight.

Hey Rahul, when I issue ncdump -v time test_0_5_compl.nc I see that there are 5 time steps, but the value for each timestep is 0. The time values need to be monotonically increasing and unique. Let me know if that fixes things for you.

-Scott

netcdf test_0_5_compl {
dimensions:
        time = 5 ;
        z = 150 ;
        y = 160 ;
        x = 250 ;
variables:
        double Bx(time, z, y, x) ;
                Bx:_FillValue = NaN ;
                Bx:units = "G" ;
        double By(time, z, y, x) ;
                By:_FillValue = NaN ;
                By:units = "G" ;
        double Bz(time, z, y, x) ;
                Bz:_FillValue = NaN ;
                Bz:units = "G" ;
        double time(time) ;
                time:_FillValue = NaN ;
                time:axis = "T" ;
                time:units = "seconds since 2000-0101" ;
        double x(x) ;
                x:_FillValue = NaN ;
                x:axis = "X" ;
                x:units = "m" ;
        double y(y) ;
                y:_FillValue = NaN ;
                y:axis = "Y" ;
                y:units = "m" ;
        double z(z) ;
                z:_FillValue = NaN ;
                z:axis = "Z" ;
                z:units = "m" ;
data:

 time = 0, 0, 0, 0, 0 ;
}
1 Like

Thank you Scott!
Now I can read all images after fixing the time step values.

1 Like