could not generate l3mapgen

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
sgaraba
Posts: 5
Joined: Mon Mar 27, 2017 10:34 am America/New_York
Answers: 0

could not generate l3mapgen

by sgaraba » Tue Mar 28, 2017 10:10 am America/New_York

Dear All

I am running a Batch processing python function on a Linux 32bit machine. I have installed the latest Seadas 7.4 and using the GUI i have installed all the processors along with evaluation data. I installed the required python version 2.7 with updated libraries.

When i run my function it works well until i get the message above.

I am using MODIS aqua level 2 data for a month and want to get daily averages.

Thank you

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

could not generate l3mapgen

by OB SeaDAS - dshea » Tue Mar 28, 2017 10:44 am America/New_York

Please give me more information about your system.  What distribution and version is it?  We do still distribute 32bit binaries with 7.4, but the next release will not have 32bit binaries.

What is the command your python function calling and what is the error that is printed?

don

sgaraba
Posts: 5
Joined: Mon Mar 27, 2017 10:34 am America/New_York
Answers: 0

could not generate l3mapgen

by sgaraba » Tue Mar 28, 2017 11:15 am America/New_York

Running Ubuntu 16.04.2 LTS (GNU/Lunix 4.4.0-70-generic i686).

the following commands are not mine so am learning from the code

# new way to make mapped files -- began jan 2016...
# ---
def l3map_gen(product_str, meas_names, bl3_fname, out_file, smi_proj, space_res, input_coords):

    print '\n====> running l3mapgen binary <======='
    print 'stats = ', meas_names, '\n' 
   
    if not os.path.exists(os.path.dirname(out_file)):
        os.makedirs(os.path.dirname(out_file))
                                   
      
    call(['l3mapgen',
          'ifile=' + bl3_fname,
          'ofile=' + out_file,
          'product=' + product_str,
          'deflate=' + '4',         
          'scale_type=' + 'linear',
          'projection=' + smi_proj,
          'resolution=' + space_res + 'km',
          'interp=' + 'nearest',
          'west=' + str(input_coords.west).strip(),
          'east=' + str(input_coords.east).strip(),
          'north=' + str(input_coords.north).strip(),
          'south=' + str(input_coords.south).strip()])
   
    if os.path.exists(out_file):
        print '\nwrote file:', out_file                          
    else: print '\ncould not generate l3mapgen file!!!'

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

could not generate l3mapgen

by OB SeaDAS - dshea » Tue Mar 28, 2017 11:44 am America/New_York

How many files are in /home/ubuntu-colors/SOCLIM/requested_files
Were any files produced and placed in /home/ubuntu-colors/SOCLIM/l2_l3output

You are going to have to find the command that is failing in batch_L23.  When you get it down to a single command, try that in the shell to figure out what is going on.

don

sgaraba
Posts: 5
Joined: Mon Mar 27, 2017 10:34 am America/New_York
Answers: 0

could not generate l3mapgen

by sgaraba » Tue Mar 28, 2017 11:54 am America/New_York

Hi, i have update the commands above.

I have 285 files in the requested folder

In the output folder the daily/mean/ folders for each product are empty

Post Reply