X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jan 2009 02:56 PM by  anon
Question about MCTK
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Jan 2009 02:56 PM
    Hi all, I am using the MODIS conversion toolkit plugin to process some MODIS grid files. It works fine with the correct outputs but with with one issue. Each time the convert_modis_data function reads in a file and outputs it, it prints ""HDF_SD_ATTRFIND: Unable to find the HDF-SD attribute named scale_factor."" and "" HDF_SD_ATTRFIND: Unable to find the HDF-SD attribute named add_offset."" The MCTK user guide says "If scale and offset factors are present for a particular dataset, they are automatically applied during the conversion process". It seems like the scale and offset factors are determined by the function by considering the data input type, in my case MODIS grids. How do i get rid of the two messages if they aren't required? The outputs are fine with the projections, samples/lines and DN values intact. I use the following for my purposes: (MODIS Level2 snow grids) convert_modis_data,in_file=grid_file, $ out_path=output_location, out_root=output_rootname, $ /higher_product, /grid, gd_name=grid_name, sd_names=sd_names, $ out_method=out_method,background=255, fill_replace_value=255, $ r_fid_array=r_fid_array, r_fname_array=filenames Raghu

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    20 Jan 2009 07:55 AM
    It sounds like the routine is searching for the scale and offset but is unable to find them in the file, so it triggers this error.  Do you get the same error messages when processing your data files in the GUI?  If so, you might contact the developer of the code to ask if there is a way to disable the messages. 
    You are not authorized to post a reply.