Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7942749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:03:57+00:00 2026-06-04T00:03:57+00:00

I want to batch mosaic MODIS MCD15A2 data using MRT-MODIS Reprojection Tools, and here

  • 0

I want to batch mosaic MODIS MCD15A2 data using MRT-MODIS Reprojection Tools, and here is my script:

set  MRTDATADIR = D:/mrt/data
set /a DAY=2011009   
set /a DEADLINE=2011017  
:start
if %DAY% leq %DEADLINE% (goto ORDER) else exit
:ORDER
dir *%DAY%.*.hdf/a/b/s > MOSAICINPUT.TXT
d:/mrt/bin/mrtmosaic.exe -i MOSAICINPUT.TXT -s "0 1 0 0 0 0" -o MOSAIC_TMP_%DAY%.hdf 
copy MOSAIC_TMP_%DAY%.hdf  Result & del MOSAIC_TMP_%DAY%.hdf
del *%DAY%.*.hdf
set /a DAY= %DAY% + 8 
goto start

It didn’t work and I got
“Warning: CheckMosaicArgs : General Processing
: Error processing input_filenames from (MOSAICINPUT.TXT) for the mosaic tool”

How can I fix this? I’m using windows7.Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:03:58+00:00Added an answer on June 4, 2026 at 12:03 am

    try to debug your BAT file one step by step.

    Don’t run the BAT file, but execute every command in the command line

    1. Begin with

      dir *2011009.*.hdf /a /b /s
      

      study the output of the command. Make sure that the dir command is producing the result you expect, returning the files you expected to process.

    2. Redirect the dir command to MOSAICINPUT.TXT file. Make sure that the input files list MOSAICINPUT.TXT does really have the appropiate format for mrtmosaic. Make sure that mrtmosaic accepts a list of files as an input file. Pay special attention in subdirs content and the format of the files names, look for blanks or other special characters that might not be swallowed by mrtmosaic later on. It might be that mrtmosaic does not like backslashes or blanks or …

    3. Execute

      d:/mrt/bin/mrtmosaic.exe -i MOSAICINPUT.TXT -s "0 1 0 0 0 0" -o MOSAIC_TMP_2011009.hdf
      

      read carefully the error messages. Correct one problem at a time, run again the command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to start a batch-script in my eclipse. (Instructions here: How to run
I want to execute a batch file from a java program. I am using
I want to compile a batch file into an EXE file using C++. I
I want to use a batch script to loop through folders and subfolders, and
I want to batch insert multiple records in sql server database using ADO.NET command/sqldataadapter
I am trying to do a batch build of a project using IAR tools.
I want to run a batch script every time before starting program for debugging.
I want my batch file to stay open after processing is complete. Here is
I want a batch file which: removes a certain line [line number by %lnum%]
I am building an application and I want to batch multiple queries into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.