Re: ms2gt MODIS reprojection toolkit [message #70624] |
Tue, 27 April 2010 10:37  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Maarten writes:
> * Can someone supply me with a working set of configuration files to
> start with MODIS 1KM data (so the 250 and 500 m channels are
> aggregated into 1 km bins) and end up with a Cylindrical Equidistand
> grid?
For some reason (which I am investigating) the gpd and mpp
files you downloaded from the web page were in DOS
format. In other words, they contained an extra ^M character
on each line. I ran the UNIX command dos2unix on both files,
and then they worked as they were suppose to work.
I'll see what I can do to get the files updated on the web page.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: ms2gt MODIS reprojection toolkit [message #70625 is a reply to message #70624] |
Tue, 27 April 2010 09:14   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Maarten writes:
> Actually the mpp file _does_ contain a space in the map projection.
> Just to add: in my attempts I have tried both, without difference. The
> name as listed in the mapx error message, and in the list of accepted
> projections is the same (I actually copied my name from the list in
> the error message, just to ensure I didn't mistype...)
OK, I think the most *likely* answer is that the gpd file
is "corrupted" in the sense that it is missing (or maybe
has too many) ^M line control characters. The mapx
program has been known to choke under these conditions
and issue exactly this kind of "unknown projection" error.
This kind of corruption can be caused by improper settings
when doing an ftp of the file from one machine to another,
or by e-mailing the file, etc.
The easiest way to see these "problem" line endings
is to open the file in an emacs editor. Perhaps it is
best to download a "valid" gpd file from the NSIDC web
page and see what the endings are suppose to look like,
then make sure the endings of your gpd file match.
Let me know.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: ms2gt MODIS reprojection toolkit [message #70626 is a reply to message #70625] |
Tue, 27 April 2010 06:32   |
Maarten[1]
Messages: 176 Registered: November 2005
|
Senior Member |
|
|
On Apr 27, 3:14 pm, David Fanning <n...@dfanning.com> wrote:
> Maarten writes:
>> Actually the mpp file _does_ contain a space in the map projection.
>> Just to add: in my attempts I have tried both, without difference. The
>> name as listed in the mapx error message, and in the list of accepted
>> projections is the same (I actually copied my name from the list in
>> the error message, just to ensure I didn't mistype...)
>
> And the mapx is recent? Installed at the same time
> you installed ms2gt?
Yes.
> Also, I assume some kind of 32-bit OS?
Yes, Linux 2.6.16.46-0.12-smp (a rather old SuSE system)
> Have to tried a different projection, just to see if
> you can get something to work?
Cylindrical Equal-Area sort of worked, but gave a different error
(some 250 m / 1 km mixup, it seems).
Best,
Maarten
|
|
|
Re: ms2gt MODIS reprojection toolkit [message #70627 is a reply to message #70626] |
Tue, 27 April 2010 06:14   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Maarten writes:
> Actually the mpp file _does_ contain a space in the map projection.
> Just to add: in my attempts I have tried both, without difference. The
> name as listed in the mapx error message, and in the list of accepted
> projections is the same (I actually copied my name from the list in
> the error message, just to ensure I didn't mistype...)
And the mapx is recent? Installed at the same time
you installed ms2gt?
Also, I assume some kind of 32-bit OS?
Have to tried a different projection, just to see if
you can get something to work?
I have to do some car shuffling this morning, but
off to work soon.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
|
|
|
Re: ms2gt MODIS reprojection toolkit [message #70716 is a reply to message #70624] |
Wed, 28 April 2010 01:48  |
Maarten[1]
Messages: 176 Registered: November 2005
|
Senior Member |
|
|
On Apr 27, 7:37 pm, David Fanning <n...@dfanning.com> wrote:
> Maarten writes:
>> * Can someone supply me with a working set of configuration files to
>> start with MODIS 1KM data (so the 250 and 500 m channels are
>> aggregated into 1 km bins) and end up with a Cylindrical Equidistant
>> grid?
>
> For some reason (which I am investigating) the gpd and mpp
> files you downloaded from the web page were in DOS
> format. In other words, they contained an extra ^M character
> on each line. I ran the UNIX command dos2unix on both files,
> and then they worked as they were suppose to work.
>
> I'll see what I can do to get the files updated on the web page.
Thanks for investigating. I didn't even notice that. Had I created the
files myself, they would have been proper UNIX files. Still no luck
though, but at least we're getting past stage one.
Best,
Maarten
|
|
|