The image viewer window in the HDFView

Hi:
I am using the HDFView 2.6,however I found I can not display the hdf file as
a image.

The tree structure of the file is shown here:
http://screencast.com/t/MTYwMzE3

There is not a node named "Images" as the guide said :

I wonder why? Is my data invalide?

your data is not image data. HDFView will not display the data in image by default.
If you want to show the data in image, right-mouse click the data and use "Open As".
It should give an option to display data in image. By default, the image will be in
gray scale. In the "Open As" window, there is a set of predefined color tables for
your to choose if you don't want the gray scale.

Thanks
--pc

maven apache wrote:

···

Hi:
I am using the HDFView 2.6,however I found I can not display the hdf file as a image.

The tree structure of the file is shown here:http://screencast.com/t/MTYwMzE3

There is not a node named "Images" as the guide said :http://www.hdfgroup.org/hdf-java-html/hdfview/UsersGuide/images/image_true_color.gif

I wonder why? Is my data invalide?
------------------------------------------------------------------------

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

You have "swath" data which are generally used to store raw remote sensing
data where the sensor scans across the track periodically. Thus the data
are stored as a collection of vector objects. To create an image from swath
data requires a map projection. You files are probably hdf-eos, so you should
look to <http://hdfeos.org/> for appropriate tools if you don't want to stick
with (or can't afford) ENVI.

Some hdf-eos files may be supported by NASA SeaDAS or ESA BEAM.

···

On Thu, May 20, 2010 at 6:15 AM, maven apache <apachemaven0@gmail.com> wrote:

Hi:
I am using the HDFView 2.6,however I found I can not display the hdf file as
a image.

The tree structure of the file is shown
here:http://screencast.com/t/MTYwMzE3

There is not a node named "Images" as the guide said
:http://www.hdfgroup.org/hdf-java-html/hdfview/UsersGuide/images/image_true_color.gif

I wonder why? Is my data invalide?

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

your data is not image data.

What does that mean?

When I use the ENVI to open the same hdf file, it is a image.

···

2010/5/20 Peter Cao <xcao@hdfgroup.org>

HDFView will not display the data in image by default.
If you want to show the data in image, right-mouse click the data and use
"Open As".
It should give an option to display data in image. By default, the image
will be in
gray scale. In the "Open As" window, there is a set of predefined color
tables for
your to choose if you don't want the gray scale.

Thanks
--pc

maven apache wrote:

Hi:
I am using the HDFView 2.6,however I found I can not display the hdf file
as a image.

The tree structure of the file is shown here:
http://screencast.com/t/MTYwMzE3

There is not a node named "Images" as the guide said :
http://www.hdfgroup.org/hdf-java-html/hdfview/UsersGuide/images/image_true_color.gif

I wonder why? Is my data invalide?
------------------------------------------------------------------------

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

> Hi:
> I am using the HDFView 2.6,however I found I can not display the hdf file
as
> a image.
>
> The tree structure of the file is shown
> here:http://screencast.com/t/MTYwMzE3
>
> There is not a node named "Images" as the guide said
> :
http://www.hdfgroup.org/hdf-java-html/hdfview/UsersGuide/images/image_true_color.gif
>
> I wonder why? Is my data invalide?

You have "swath" data which are generally used to store raw remote sensing
data where the sensor scans across the track periodically. Thus the data
are stored as a collection of vector objects. To create an image from
swath
data requires a map projection. You files are probably hdf-eos, so you
should
look to <http://hdfeos.org/> for appropriate tools if you don't want to
stick
with (or can't afford) ENVI.

Thanks for all your reply.

Do you mean the HDFView do not support the EOS data? When the hdfeos plugin
is install ,the EOS data can be supported?

However I can not install the hdfeos plugin successfully in my win xp
platform.

In fact, what I want to do is display the hdf data in my own java swing
application,and I tried to know how the hdfview do.

So is there other way to display the hdf file in a common swing application
(change the hdf to other format can be accepted )?

···

2010/5/21 George N. White III <gnwiii@gmail.com>

On Thu, May 20, 2010 at 6:15 AM, maven apache <apachemaven0@gmail.com> > wrote:

Some hdf-eos files may be supported by NASA SeaDAS or ESA BEAM.

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

maven apache wrote:

The data sets you see in hdf5_test.h5 have special attributes
which HDFView uses to identify it as an image. This is what Peter
means when he says your arrays are not images–they do not have the
special attributes. You can test this by opening hdf5_test.h5
and
deleting the “CLASS” attribute of a dataset. When you reopen the file
and the object it will no longer be treated as an image.

There may be a High Level API for adding these attributes.

HDFView is not ENVI.

Any 2D object can be displayed as a image on computer screen. Lots of
2D arrays in science don’t make any sense to look at as an image. I
don’t use ENVI and so I can’t tell you what it does with one of those
arrays. You can test this your self by creating a 2D array of random
numbers and seeing what ENVI will do with it.

What I don’t understand is why your TreeView doesn’t indicate that the
objects have attributes. On my HDFView (v 2.6b1) there is a small red
"A" overlaying the icon of every object which as attributes. This
feature has been in HDFView for sometime.

–dan

-- Daniel Kahn
Science Systems and Applications Inc.
301-867-2162
···

2010/5/20 Peter Cao xcao@hdfgroup.org
What does that mean?

your
data is not image data.
When I use the ENVI to open the same hdf file, it is a image.

> Hi:
> I am using the HDFView 2.6,however I found I can not display the hdf
> file as
> a image.
>
> The tree structure of the file is shown
> here:http://screencast.com/t/MTYwMzE3
>
> There is not a node named "Images" as the guide said
>
> :http://www.hdfgroup.org/hdf-java-html/hdfview/UsersGuide/images/image_true_color.gif
>
> I wonder why? Is my data invalide?

You have "swath" data which are generally used to store raw remote sensing
data where the sensor scans across the track periodically. Thus the data
are stored as a collection of vector objects. To create an image from
swath
data requires a map projection. You files are probably hdf-eos, so you
should
look to <http://hdfeos.org/> for appropriate tools if you don't want to
stick
with (or can't afford) ENVI.

Thanks for all your reply.

Do you mean the HDFView do not support the EOS data? When the hdfeos plugin
is install ,the EOS data can be supported?

Yes.

However I can not install the hdfeos plugin successfully in my win xp
platform.

What specific problem did you encounter?

I haven't been able to get the plugins to work on my Apple Leopard system.
The hdfeos plugin is 32-bit and Leopard uses a 64-bit java, but using a 32-bit
hdfview (older Java) gives an "unsatisfied link error". My guess is the
software was built for an older version of MacOSX. Most of our data are
not using hdf-eos (we use the NASA OBPG's SeaDAS hdf4), so I can live
without the plugins -- if I needed them the next step would be to build
everything from sources.

In fact, what I want to do is display the hdf data in my own java swing
application,and I tried to know how the hdfview do.

Makes sense, and sorting out the problems with the hdfeos plugins should
be a good start, as you will be far ahead if you can use them in your app.

So is there other way to display the hdf file in a common swing application
(change the hdf to other format can be accepted )?

There is hdfeos to netcdf4 conversion, and UCAR has a netcdf4 java library.

A lot depends on what you need in the way of map projections.
HDF-EOS uses a specific library, but for swath data you might be able
to work around that if you are willing to live with cylindrical equidistant
projection for the display. If you want to work with HDF-EOS that has
been mapped with one of the specific projections then you may be
stuck with using the standard library.

You might consider fixing one the non-working tools like JEB
from <http://hdfeos.net/software/tool.php>.

Some hdf-eos files may be supported by NASA SeaDAS or ESA BEAM.

I should also mention that NASA's OBPG is currently working on a new
version of SeaDAS that will use java. The think about ocean data is
there is not enough of a commercial market to interest the big software
vendors, so the space agencies have to provide software, and open-source
makes the most sense as it allows users to participate in adding features
and fixing bugs. This has been a rich source of code examples for anyone
working with similar data.

···

On Thu, May 20, 2010 at 11:46 PM, maven apache <apachemaven0@gmail.com> wrote:

2010/5/21 George N. White III <gnwiii@gmail.com>

On Thu, May 20, 2010 at 6:15 AM, maven apache <apachemaven0@gmail.com> >> wrote:

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia