On Friday, July 11, 2014 1:21:55 PM UTC+5:30, Rashad wrote:
>
>
>
>
> On Fri, Jul 11, 2014 at 4:18 AM, Payal Prajapati <[email protected] 
> <javascript:>> wrote:
>
>> Hello to all,
>>
>> My work is I have a series of 48 .h5 files(one file contains 6 
>> subdatasets..6 images of same area is taken w.r.t different bands and 
>> packed into .h5 file.file is generated each half an hour.file name is 
>> like:3DIMG_12oct2013_0040_L1S_STD.h5) for each  day taken by Imager 
>> satellite.I have to open all 48 files and extract a single band which is 
>> needed for analysis.
>>
>> currently i am trying to open one  .h5 file of Imager and extract first 
>> band by specifying hdf filename:0 as mentioned in user guide.but it gives 
>> me error unable to create I/O object for hdf Filename:0.
>>
>
> could you post the exact command line and the error message?
>

my command is: ./hdfread 
/data2/trainee/payal/3DIMG_12OCT2013_0040_L1S_STD.h5
Error is:
    RTTI typeinfo:   otb::ImageFileReader<otb::VectorImage<unsigned short, 
2u>, otb::DefaultConvertPixelTraits<unsigned short> >
  Reference Count: 2
  Modified Time: 28
  Debug: Off
  Observers: 
    none
  Number Of Required Inputs: 0
  Number Of Required Outputs: 1
  Number Of Threads: 12
  ReleaseDataFlag: Off
  ReleaseDataBeforeUpdateFlag: Off
  No Inputs
  Output 0: (0x15c1e240)
  AbortGenerateData: Off
  Progress: 0
  Multithreader: 
    RTTI typeinfo:   itk::MultiThreader
    Reference Count: 1
    Modified Time: 2
    Debug: Off
    Observers: 
      none
    Thread Count: 12
    Global Maximum Number Of Threads: 128
    Global Default Number Of Threads: 12
  ImageIO: (null)
  UserSpecifiedImageIO flag: 0
  m_FileName: /data2/trainee/payal/otb123/3DIMG_12JUN2014_0300_L1B_STD.h5:0
  m_UseStreaming flag: 1
  m_ActualIORegion: ImageIORegion (0x15c18390)
  Dimension: 2
  Index: 0 0 
  Size: 0 0 

  m_AdditionalNumber: 0
terminate called after throwing an instance of 
'otb::ImageFileReaderException'
  what():  /usr/local/include/otb/IO/otbImageFileReader.txx:295:
 Could not create IO object for file 
/data2/trainee/payal/otb123/3DIMG_12JUN2014_0300_L1B_STD.h5:0
  Tried to create one of the following:
    RADImageIO
    BSQImageIO
    LUMImageIO
    JPEG2000ImageIO
    TileMapImageIO
    GDALImageIO
    MWImageIO
    ONERAImageIO
    MSTARImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.

Abort


   

>  
>
>> I have enabled hdf 5 support in gdal.After googling i found that 
>> changeset 0000219 supports HDF subdataset reading as mentioned by 
>> julien...but it still give the same error .
>> plz provide a solution.
>>
>>  I have created a program using gdal APIS for reading subdataset but it 
>> gives me array of pixel instead of image..so i am reading array into image 
>> using otbImportImageFilter and tthen write it in to .tiff file format.This 
>> takes so much time and as i said i have 48 .h5 file..if i am doing the same 
>> process for all 48 files response time is too large..so i want otb to 
>> handle this..
>>
>
> If you are using gdal to read image into array and the writing array into 
> otbImage object, you are definitely not going right way. OTB can read GDAL 
> formats and in your case i think you might have something like "Performing 
> Test CHECK_HDF4OPEN_SYMBOL - Failed" during your cmake configure.
>
> Could you confirm this? 
>

   yes,it is showing the same error..what to do? 

>
> also tell if there is a way to parallelize the whole process that is 48 
>> different  processes running in parallel for different 48 file format or 
>> something like this.so task is speedy..
>> Thank you in advance..any help would be appreciated.
>>
>> Thank You,
>> Payal
>>
>> -- 
>> -- 
>> Check the OTB FAQ at
>> http://www.orfeo-toolbox.org/FAQ.html
>>  
>> You received this message because you are subscribed to the Google
>> Groups "otb-users" group.
>> To post to this group, send email to [email protected] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/otb-users?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "otb-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Regards,
>    Rashad
>  

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to