ql_viirs_sdr.sh --prod

VIIRS Sensor Data Record
Post Reply
Amal
Posts: 5
Joined: Thu Aug 04, 2016 9:53 am

ql_viirs_sdr.sh --prod

Post by Amal »

Hello,
I am trying to use the ql_viirs_sdr.sh --prod SVI03 to create an image of one band but this option is not recognized and it gives the following error:

ql_viirs_sdr.py: error: no such option: --prod

how can I add it in the code
kathys
Posts: 484
Joined: Tue Jun 22, 2010 4:51 pm

Re: ql_viirs_sdr.sh --prod

Post by kathys »

Hello,

Sorry you are having problems. Can you provide me with a little more information?

What version of the CSPP SDR software are you using?
Can you make sure that you are using a hyphen (-) sign and not a longer dash (—) for the --prod option?

Thank you,

Kathy
Amal
Posts: 5
Joined: Thu Aug 04, 2016 9:53 am

Re: ql_viirs_sdr.sh --prod

Post by Amal »

Hello,
I am using CSPP SDR V2.1.1, Yes I use the hyphen sign. When i checked the ql_viirs_sdr.py file, I found that the --prod option is not defined :

parser = optparse.OptionParser(usage)
#parser.add_option('-t', '--test', dest="self_test",
# action="store_true", default=False, help="run self-tests")
parser.add_option('-v', '--verbose', dest='verbosity', action="count", default=0,
help='each occurrence increases verbosity 1 level through ERROR-WARNING-INFO-DEBUG')
parser.add_option('-o', '--output', dest='output', default='.',
help='location to store output')
parser.add_option('-m', '--meta', dest='meta', default=None,
help='Use meta name instead of viirs')
parser.add_option('-A', '--area-thresh', dest='area_thresh', default=None, type='int',
help='override area_thresh mapping parameter, e.g. may desire 2000 for coastlines of smaller plot areas. default is a numerical estimate based on projected area')
parser.add_option('-D', '--dpi', dest='dpi', default=175, type='int',
help='dots per inch of output plot file')
parser.add_option('-s', '--std',
action="store_true", default=False, help="scale image to 3*std deviation")
parser.add_option('-n', '--nosqrt',
action="store_true", default=False, help="disable sqrt enhancement")
parser.add_option('-r', '--raw',
action="store_true", default=False, help="create unmapped quick look")

(options, args) = parser.parse_args()

Thank you,
kathys
Posts: 484
Joined: Tue Jun 22, 2010 4:51 pm

Re: ql_viirs_sdr.sh --prod

Post by kathys »

Yes, you are right. The --prod option was added to CSPP SDR Version 2.2.

If you want to create quick look images using CSPP SDR v2.1.1 for the SVI03 band, try executing this from the directory that your files exist in:

ql_viirs_sdr.sh SVI03*.h5

Similar commands will work for other bands as well.

Good luck,

Kathy
Post Reply