[Paraview] Paraview Climate Science

Moreland, Kenneth kmorel at sandia.gov
Mon May 16 15:12:35 EDT 2016


Arshpreet Singh,

I highly recommend you take a look at the Python trace feature in the ParaView GUI. It will automatically create Python code that replicates things you do in the GUI, which I find much easier than trying to write the Python code from scratch. The Python trace feature is documented in both the ParaView tutorial (http://www.paraview.org/Wiki/The_ParaView_Tutorial) and the ParaView User’s guide (http://www.paraview.org/paraview-guide/), both of which are available for free.

As an example, I have attached a Python script that loads a netCDF file, shows a variable, and animates over time. I generated this in the ParaView GUI in less time than it took me to write the rest of this email.

-Ken 


On 5/14/16, 2:26 AM, "ParaView on behalf of Arshpreet Singh" <paraview-bounces at paraview.org on behalf of arsh840 at gmail.com> wrote:

>Hi I am accessing netcdf file from Python interface in Paraview, My
>main goal is to access different parameters change in air and
>temperature with respect to time.
>
>
>Can anyone point me towards and example Python code which can show
>demonstration of Paraview and netcdf files from using Python code?
>
>-- 
>
>Thanks
>Arshpreet Singh
>
>I am Sikh boy, Learning by doing and Learning by teaching is my religion.
>------------------------------------------------------------------------------
>Slashdot TV.
>Video for Nerds.  Stuff that matters.
>http://tv.slashdot.org/
>_______________________________________________
>Powered by www.kitware.com
>
>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
>Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
>Search the list archives at: http://markmail.org/search/?q=ParaView
>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/paraview

-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoadNetCDF.py
Type: text/x-python-script
Size: 1937 bytes
Desc: LoadNetCDF.py
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160516/756afc33/attachment.bin>


More information about the ParaView mailing list