[Paraview] Temperature visualisation

Guido Staub gstaub at udec.cl
Fri May 8 19:16:31 EDT 2009


OK, I did the following  (in this example I reduced the datasets) and 
it seems to work:

<Xdmf>
	<Domain>
		<Grid GridType="Uniform">
<Topology Type="Polyvertex" Dimensions="2 2 1"> </Topology>
<Geometry Type="X_Y_Z"> 
<DataItem DataType="Float" Precision="4" Dimensions="1 2 2" 
Format="HDF">
			test.h5:/bands/latitude
			</DataItem>
<DataItem DataType="Float" Precision="4" Dimensions="1 2 2" 
Format="HDF">
			test.h5:/bands/longitude
			</DataItem>
<DataItem DataType="Float" Precision="4" Dimensions="1 2 2" 
Format="HDF">
			test.h5:/bands/height
			</DataItem>
</Geometry>

<Attribute Type="Scalar" Name="Temp" Center="Cell">
<DataItem DataType="Float" Precision="4" Dimensions="4 1" Format="HDF">
			test.h5:/bands/temp
			</DataItem>
</Attribute>
		</Grid>
	</Domain>
</Xdmf>

But this means that I have to put the temperatures into a 4x1 dataset 
in this example. Or in the "real" case into a 58081x1 dataset. Copy/
paste will take a while.
Guess that this is a hdf related issue.

Thanks all!

Guido 

Am 08.05.2009 17:42:20 schrieb(en) Johannes Will:
> Hi David,
> 
> I think you have to put the temp array not to the geometry tag, but 
> to
>  
> an attribute tag.
> 
> I am not quite sure if the X_Y type exists, if not you could try to
> 
> <Xdmf>
>    <Domain>
>      <Grid GridType="Uniform">
>        <Topology Type="Polyvertex" Dimensions="241 241 1"> </
> Topology>
>        <Geometry Type="X_Y">
>          <DataItem DataType="Float" Precision="4" Dimensions="1 241
> 241"
> Format="HDF">
>                  test.h5:/bands/latitude
>          </DataItem>
>          <DataItem DataType="Float" Precision="4" Dimensions="1 241
> 241"
> Format="HDF">
>             test.h5:/bands/longitude
>          </DataItem>
>        </Geometry>
>        <Attribute AttributeType="Scalar" Center="Cell"  Name="Ttemp">
>          <DataItem DataType="Float" Precision="4" Dimensions="1 241
> 241"
>             Format="HDF">
>                          test.h5:/bands/temp
>          </DataItem>
>         </Grid>
>      </Domain>
> </Xdmf>
> 
> or
> <Xdmf>
>    <Domain>
> 
> I am not quite sure if the X_Y type exists. Possibly you got to use  
> one of the other Geometry options. Hope this will help you.
> 
> Cheers Johannes
> 
> 
> 
> Quoting Guido Staub <gstaub at udec.cl>:
> 
> [Zitattext anzeigen - 54 Zeilen][Zitattext verstecken]
> Am 08.05.2009 16:35:15 schrieb(en) David E DeMarle:
> I would recommend writing an XDMF interface. XDMF is a text (XML)
> format that you can use to describe the content of the hdf file. Once
> you have the xdmf file paraview will be able to ingest your data.
> 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
> This is what I have already done (see listing below).
> It works to have a 3D representation. However I do not want the
> temperature as a height value but a color. z will be constant, for
> example 100.
> 
> <Xdmf>
>          <Domain>
>                  <Grid GridType="Uniform">
> 
> <Topology Type="Polyvertex" Dimensions="241 241 1"> </Topology>
> <Geometry Type="X_Y_Z">
> <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
> Format="HDF">
>                          test.h5:/bands/latitude
>                          </DataItem>
> <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
> Format="HDF">
>                          test.h5:/bands/longitude
>                          </DataItem>
> <DataItem DataType="Float" Precision="4" Dimensions="1 241 241"
> Format="HDF">
>                          test.h5:/bands/temp
>                          </DataItem>
>                          </Geometry>
> 
>                  </Grid>
>          </Domain>
> </Xdmf>
> 
> 
> -- 
> Johannes Will
> 
> Pulverhofsweg 5
> 22159 Hamburg
> Germany
> 
> Tel.: #49-40-644 199 29
> Cell: #49-176-23 600 633
> 
> Mail: johannes.will at tuhh.de
> 
> 
> _______________________________________________
> 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
> 
> 



More information about the ParaView mailing list