CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] annotate time YYYY MM DD

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2015, 03:36
Default annotate time YYYY MM DD
  #1
New Member
 
Join Date: Aug 2015
Posts: 2
Rep Power: 0
My_name_is_nobody is on a distinguished road
Hello,
I work on Netcdf files and in it i have a time dimension that is written as below :

time:units = "months since 1993-12-01 00:00:00" ;
time:time_origin = "1993-12-01 00:00:00" ;
time:standard_name = "Time axis" ;
time:axis = "t" ;
time:calendar = "gregorian" ;
time:long_name = "time" ;

The problem is that on paraview i m not able to display the date in the format YYYY-MM-DD even if i can display the Time (in Days or Hours) with the Source -> Annotate Time or with the Filter -> annotate Time.
I tried to write the date in my netcdf files but i can't find this variable in Paraview. I know it's possible because i saw some animation with the real date but i don't know how.





Thank you in advance for your assistance.
My_name_is_nobody is offline   Reply With Quote

Old   August 21, 2015, 18:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Can you provide a small example file?
wyldckat is offline   Reply With Quote

Old   August 24, 2015, 03:01
Default
  #3
New Member
 
Join Date: Aug 2015
Posts: 2
Rep Power: 0
My_name_is_nobody is on a distinguished road
I can give you the complete header of my files but the files themselves are very large (between 500Mo and 20Go). I hope it's enough for you.

dimensions:
time = UNLIMITED ; // (8760 currently)
cell = 181724 ;
nvert = 4 ;
variables:
double lat(cell) ;
lat:long_name = "latitude" ;
lat:bounds = "bounds_lat" ;
lat:units = "degrees_north" ;
double lon(cell) ;
lon:long_name = "longitude" ;
lon:bounds = "bounds_lon" ;
lon:units = "degrees_east" ;
int time(time) ;
time:units = "months since 1994-01-01 00:00:00" ;
time:time_origin = "1994-01-01 00:00:00" ;
time:standard_name = "Time axis" ;
time:axis = "t" ;
time:calendar = "gregorian" ;
time:long_name = "time" ;
float tas(time, cell) ;
tas:long_name = "Air temperature at 2m" ;
tas:coordinates = "lon lat" ;
tas:_FillValue = 9.96921e+36f ;
double bounds_lon(cell, nvert) ;
bounds_lon:_FillValue = 9.96920996838687e+36 ;
double bounds_lat(cell, nvert) ;
bounds_lat:local_name = "cornerslat" ;


Thank you for your reply.
My_name_is_nobody is offline   Reply With Quote

Old   August 24, 2015, 11:51
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings My_name_is_nobody,

Sorry, but I need a fully working file, which was why I asked for a small one

The reason why I need one is to diagnose how the time data is being loaded by ParaView. Because as far as I know, ParaView usually only works with time in seconds, therefore I don't have a working example that has a complete date which would be rendered in the way you're asking for.
In addition, I don't know if those time entries are being loaded as "Fields" from the file or if they are simply ignored.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
annotate, paraview, time, yyyy-mm-dd


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 00:58
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 12:53.