Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get different results when reading my HDF-EOS2 file, depending on whether I use the “.hdf” or “.hdfeos” extension?

0
Posted

Why do I get different results when reading my HDF-EOS2 file, depending on whether I use the “.hdf” or “.hdfeos” extension?

0

If you use the “.hdf” extension, then NCL uses the underlying HDF4 interface to read your data, whereas if you use the “hdfeos or “he2” extension, NCL reads the file using the HDF-EOS2 library interface. Using the “.hdfeos” extension software will give you slightly more information, since the HDF-EOS2 software provides software to calculate additional lat/lon information. Side tip: if your HDF-EOS2 file has an “.hdf” extension, then you can force NCL to read this file as an HDF-EOS2 file simply by appending an “.he2” or “.hdfeos” to the file name in the addfile call (you don’t need to rename the file). For example, if your file is called “swath.

0

If you use the “.hdf” extension, then NCL uses the underlying HDF4 interface to read your data, whereas if you use the “hdfeos or “he2” extension, NCL reads the file using the HDF-EOS2 library interface. Using the “.hdfeos” extension software will give you slightly more information, since the HDF-EOS2 software provides software to calculate additional lat/lon information. Side tip: if your HDF-EOS2 file has an “.hdf” extension, then you can force NCL to read this file as an HDF-EOS2 file simply by appending an “.he2” or “.hdfeos” to the file name in the addfile call (you don’t need to rename the file).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123