X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Aug 2010 07:36 AM by  anon
Carriage Return
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Aug 2010 07:36 AM
    Hello All- I am working on a project that processes through a year's worth of MODIS reflectance data and calculates EVI. I have the IDL script working fine, but am having file issues... When each MODIS file loads i get the following error Pop-up: "File: Problem: No Carriage returns found. Unable to read this file as an ASCII file." I OK out of this and the script continues to process and works fine, until the next image loads. I assume that this is a UNIX/Windows issue. I am using a Windows XP machine. However when I tried to convert the .bsq using the DOS2UNIX command the 300mb file shrunk down to 1KB. Great for file storage, but not so good for the project. Any insight? Thanks- Eric The file formats are below for your reference: 11572US_MOD09A1_2001161_Sur-Refl-b1-b7.bsq 11572US_MOD09A1_2001161_Sur-Refl-b1-b7.hdr

    Deleted User



    New Member


    Posts:
    New Member


    --
    11 Aug 2010 11:47 AM
    How, exactly, is your code reading these MODIS files? And when you say that the error occurs when you "load" the MODIS data, do you mean when you open the files, or when you try to display them? In either case, can you show exactly how you're doing whatever you're doing when the error messages appear? It looks like these MODIS images have already been converted to ENVI format (with the ENVI .hdr header file). How was that done? Can you open them in an interactive ENVI session on the same machine?

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Aug 2010 07:40 AM
    An answer suplied by Whammer heped solve this one as well- Thanks quoting Whammer It looks to me like the problem may be that the map info in the header lists the projection as "Geographic". When you georeference to lat/long in ENVI, it always lists the projection as "Geographic Lat/Lon" in the header. So, I'm guessing that ENVI doesn't know a projection by the name of "Geographic" only. That is also pretty much what the error message seems to be saying. So, then, the question is how that projection name got into your map info in the header? Did you put it there? How exactly are you opening these MODIS files in your code?
    You are not authorized to post a reply.