L2bin Prodtype 8-day

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
willyangraini
Posts: 2
Joined: Mon Jul 04, 2022 1:58 am America/New_York
Answers: 0

L2bin Prodtype 8-day

by willyangraini » Sun Aug 07, 2022 11:04 pm America/New_York

Dear All,
I would like to ask. I've tried many times to use both command and GUI to process 8-day l2bin prodtype from MODIS Aqua data. However, it didn't work and always show this result

129 input files
Resolution: 1
Max Qual Allowed: 2
flagusemask: 786
required: 0
total number of bins: 380187130
krow: 12420 out of 17280 ( 39.38 to 42.19) Mon Aug 8 11:34:31 2022
krow: 12690 out of 17280 ( 42.19 to 45.00) Mon Aug 8 11:34:31 2022
total_filled_bins: 0
rm -f January2021_l3bin8day1.nc*
l2bin 7.0.3 (Jan 11 2022 14:32:07)
Loading default parameters from /Users/angrainiwilly/ocssw/share/modis/l2bin_defaults.par
Loading command line parameters

Thank you

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1464
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 4 times

Re: L2bin Prodtype 8-day

by OB.DAAC - SeanBailey » Mon Aug 08, 2022 8:08 am America/New_York

We'll need more information to help diagnose the issue. Please provide the command-line arguments (and/or the parameter file used) as well as a description of how the input L2 files were obtained (or generated).

Sean

willyangraini
Posts: 2
Joined: Mon Jul 04, 2022 1:58 am America/New_York
Answers: 0

Re: L2bin Prodtype 8-day

by willyangraini » Mon Aug 08, 2022 8:02 pm America/New_York

#!/bin/sh

# OCScript.sh
#
# Created by Angraini Willy on 2022/06/03.
#
file1=/Users/angrainiwilly/Desktop/1_January_2021/OC_Jan2021.txt
#
l3bprod=chlor_a
#
flaguse=LAND,HILT,STRAYLIGHT,CLDICE
#
#8days Jan 2021
l2bin ifile=$file1 ofile=January2021_l3bin8day1.nc latnorth=45 latsouth=40 loneast=150 lonwest=140 resolution=1 flaguse=$flaguse l3bprod=chlor_a prodtype=8-day sday=2021001 eday=2021008
l2bin ifile=$file1 ofile=January2021_l3bin8day2.nc latnorth=45 latsouth=40 loneast=150 lonwest=140 resolution=1 flaguse=$flaguse l3bprod=chlor_a prodtype=8-day sday=2021009 eday=2021016
l2bin ifile=$file1 ofile=January2021_l3bin8day3.nc latnorth=45 latsouth=40 loneast=150 lonwest=140 resolution=1 flaguse=$flaguse l3bprod=chlor_a prodtype=8-day sday=2021017 eday=2021024
l2bin ifile=$file1 ofile=January2021_l3bin8day4.nc latnorth=45 latsouth=40 loneast=150 lonwest=140 resolution=1 flaguse=$flaguse l3bprod=chlor_a prodtype=8-day sday=2021025 eday=2021032
#
l3mapgen ifile=January2021_l3bin8day1.nc ofile=January2021_png8day1.png oformat=png product=chlor_a resolution=1km north=45 south=40 east=150 west=140 rgb_land=160,82,45 land=$OCDATAROOT/common/landmask_GMT15ARC.nc mask_land=yes threshold=0 fudge=0.1 num_cache=500
l3mapgen ifile=January2021_l3bin8day2.nc ofile=January2021_png8day2.png oformat=png product=chlor_a resolution=1km north=45 south=40 east=150 west=140 rgb_land=160,82,45 land=$OCDATAROOT/common/landmask_GMT15ARC.nc mask_land=yes threshold=0 fudge=0.1 num_cache=500
l3mapgen ifile=January2021_l3bin8day3.nc ofile=January2021_png8day3.png oformat=png product=chlor_a resolution=1km north=45 south=40 east=150 west=140 rgb_land=160,82,45 land=$OCDATAROOT/common/landmask_GMT15ARC.nc mask_land=yes threshold=0 fudge=0.1 num_cache=500
l3mapgen ifile=January2021_l3bin8day4.nc ofile=January2021_png8day4.png oformat=png product=chlor_a resolution=1km north=45 south=40 east=150 west=140 rgb_land=160,82,45 land=$OCDATAROOT/common/landmask_GMT15ARC.nc mask_land=yes threshold=0 fudge=0.1 num_cache=500
#
l3bindump ifile=January2021_l3bin8day1.nc ofile=January2021_bin8day1.txt oformat=txt l3bprod=chlor_a lon=144 lat=42 radius=1
l3bindump ifile=January2021_l3bin8day2.nc ofile=January2021_bin8day2.txt oformat=txt l3bprod=chlor_a lon=144 lat=42 radius=1
l3bindump ifile=January2021_l3bin8day3.nc ofile=January2021_bin8day3.txt oformat=txt l3bprod=chlor_a lon=144 lat=42 radius=1
l3bindump ifile=January2021_l3bin8day4.nc ofile=January2021_bin8day4.txt oformat=txt l3bprod=chlor_a lon=144 lat=42 radius=1

The script process for l2bin to generate l3mapgen and l3bindump. Nonetheless, l2bin doesn't work. Data obtained from L2 MODIS-Aqua for chlorophyll-a product compiling at txt file.

Thank you

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1464
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 4 times

Re: L2bin Prodtype 8-day

by OB.DAAC - SeanBailey » Tue Aug 23, 2022 9:44 am America/New_York

OK, a couple of things to note here. The l2bin options for sday/eday are only useful when binning global data and are unnecessary for a regional binning (even if that regional binning includes 8 days worth of source L2 data). Also, the prodtype option should be set to 'regional' if you are not trying to bin data covering the entire globe.

The following should work for you:

l2bin ifile=$file1 ofile=January2021_l3bin8day1.nc latnorth=45 latsouth=40 loneast=150 lonwest=140 resolution=1 flaguse=$flaguse l3bprod=chlor_a prodtype=regional

Sean

Post Reply