[Paraview] loading nc formatted data
Simon Su
newsgroup4ssu at gmail.com
Fri Mar 18 16:43:42 EDT 2011
Hi Andy,
python trace gave me
zos_Omon_GFDLESM2M_historical_r1i1p1_186101188012_nc = NetCDFReader(
FileName=['/work/sms/data/cmor-20110128/mon/ocean/zos/r1i1p1/zos_Omon_GFDL-ESM2M_historical_r1i1p1_186101-188012.nc']
)
and there are tons of netcdf reader in ParaView and it is not in the plugin
directory
sms:/local/home/build/paraview/ParaView-3.10.0/Plugins> pwd
/local/home/build/paraview/ParaView-3.10.0/Plugins
sms:/local/home/build/paraview/ParaView-3.10.0/Plugins> ll
total 84
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 AdiosReader/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 AnalyzeNIfTIReaderWriter/
-rw-r--r-- 1 sms t 3261 Mar 9 13:31 CMakeLists.txt
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 CoProcessingScriptGenerator/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 CosmoFilters/
drwxr-xr-x 4 sms t 4096 Mar 10 12:37 EyeDomeLighting/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 ForceTime/
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 H5PartReader/
drwxr-xr-x 4 sms t 4096 Mar 10 12:37 Manta/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 Moments/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 NetDMFReader/
drwxr-xr-x 6 sms t 4096 Mar 10 12:37 PointSprite/
drwxr-xr-x 4 sms t 4096 Mar 10 12:37 PrismPlugins/
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 pvblot/
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 SierraPlotTools/
drwxr-xr-x 3 sms t 4096 Mar 10 12:37 SLACTools/
drwxr-xr-x 4 sms t 4096 Mar 10 12:37 StreamingView/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 SurfaceLIC/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 Vapor/
drwxr-xr-x 2 sms t 4096 Mar 10 12:37 VRPN/
drwxr-xr-x 2 sms t 4096 Mar 9 13:31 VRUI/
sms:/local/home/build/paraview/ParaView-3.10.0/Plugins>
Can you help describe how Netcdf files plugins are done in ParaView. Do they
have a super class of Netcdf that they all derive from to write the
different flavors of netcdf readers? If so, where can the code be found?
thanks
-simon
On Fri, Mar 18, 2011 at 10:30 AM, Andy Bauer <andy.bauer at kitware.com> wrote:
> Hi Simon,
>
> Replies below...
>
> On Thu, Mar 17, 2011 at 12:41 PM, Simon Su <newsgroup4ssu at gmail.com>wrote:
>
>> Hi All,
>>
>> ftp://ftp.gfdl.noaa.gov/pub/sms/4ParaView/1.png
>> ftp://ftp.gfdl.noaa.gov/pub/sms/4ParaView/2.png
>> ftp://ftp.gfdl.noaa.gov/pub/sms/4ParaView/3.png
>>
>> the above are screen shot from older version of *.nc files that I have
>> that I loaded up with Paraview 3.10.0 64-bit which I compiled myself. As you
>> can see, the grid is correctly loaded. But in the data, there is a crack. Is
>> there a filter that can fix this in ParaView? :)
>>
>
> I'm not aware of any filter that will fix this automatically. Can you
> describe the grid a bit more? It kind of looks like a multiblock of
> structured grids.
>
>>
>> ftp://ftp.gfdl.noaa.gov/pub/sms/4ParaView/4.png is the latest nc file
>> that I have of similar simulation preprocessed output. When I loaded it up,
>> it is clearly doing making assumption on the grid that is not correct and
>> hence, the double looking grid.
>>
>> The questions now are:
>>
>> 1. ParaView has lots of *.nc file loader. How do I know which loader is
>> ParaView using to load the data? If I pick a type for the Files of type
>> option in the open File window, will that gurantees that ParaView will be
>> using that particular file loader?
>>
>
> If there is an ambiguity for which file loader to use (i.e. multiple
> readers assume the same extension), then the GUI should pop up a dialog for
> you to specify which one to use. You can use the python trace to figure out
> exactly what reader is being used to load the file.
>
>
>>
>> 2. If I know which loader is used, I would like to see if I can modify the
>> existing loader to create a new type of *.nc file loader to fix the grid of
>> my data. Where is the code in the source tree of ParaView is the loader
>> plugin placed?
>>
> Based on the name of the name of the reader from the python script, you can
> look up the actual class name in the
> ParaView/Servers/ServerManager/Resources/readers.xml file.
>
>
>>
>> or if there is an easier solution to fix my grid problem that doesn't
>> involve developing a new data loader plugin that would be better.... :)
>> please let me know...
>>
>> thanks
>> -simon
>>
>>
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110318/a94912e0/attachment.htm>
More information about the ParaView
mailing list