TIME SERIES PLOT (newbie)
显示 更早的评论
hello,
Im trying to quickly make a time series plot for my dissertation (due friday!). I just want to show 2 variables. The data is for 365 days but when I downloaded it from paraview into csv. format, i thought it would go day1,2,3 etc. but instead its about 45,000 lines of point data. Does anyone know what I should fo in order to get the x axis to show time? It can just be in monthly format (i.e. Jan - Dec), i'm not picky. Also I have very little expereince with matlab so the easiest way would be greatly appreciated! Thank you! :)
3 个评论
Walter Roberson
2021-6-22
Does each line of the file have an associated time offset? If so then what does that look like in the file?
If not then you would probably have to assume that readings were taking every 30 seconds (which would give 43800 readings for a year.)
Holly O Neill
2021-6-22
Walter Roberson
2021-6-22
编辑:Walter Roberson
2021-6-22
It doesn't make sense for there to be 2.011 events per minute, 120+2/3 events per hour (362 events in 3 hours)
You need more information about how far apart in time the entries are.
If the first entry (line 2) is midnight Jan 1, 2019 at 00:00:00 UTC, then what is the time associated with the next entry (line 3) ?
回答(1 个)
Holly O Neill
2021-6-22
0 个投票
1 个评论
Walter Roberson
2021-6-22
paraview documentation tells me that pvtu files look at lot different than that.
XML Partitioned Unstructured Grid Reader
Reads the summary file and the associated VTK XML unstructured grid data files. The XML Partitioned Unstructured Grid reader reads the partitioned VTK unstructured grid data file format. It reads the partitioned format's summary file and then the associated VTK XML unstructured grid data files. The expected file extension is .pvtu. This reader also supports file series.
===
So paraview pvtu files are XML, which the posted file certainly is not.
If it were XML then there would be a chance that the data would include information about time.
Points_0 appears to be an X and Points_1 appears to be a Y (or perhaps one maps to latitude and the other maps to longitude), and you have some kind of magintude in the fifth column.
For our understand, what would be the interpretation of the first few lines of data for your purposes? What is it a time series of ? For example is it a single marker fixed into a floating icepack and you are monitoring position changes?
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

