[gradsusr] Is there a way to run GrADS with the -m argument in batch mode?

Jennifer M Adams jadams21 at gmu.edu
Thu May 12 16:29:08 EDT 2016


Hi, Bob —
This mixed bag of syntax options works for me:

#!/bin/sh
buffsz=200000
script='font.gs 3'
args='-lm '$buffsz
/usr/local/grads/bin/grads $args -c "$script"

Mark’s comment that you should be careful not to allocate more memory than is available on your system is valid. If you are using version 2.1 then the -m option is not needed — GrADS will automatically allocate memory as needed to store the metabuffer for your graphic.
—Jennifer


On May 10, 2016, at 1:44 PM, Bob Kuligowski - NOAA Federal <bob.kuligowski at noaa.gov<mailto:bob.kuligowski at noaa.gov>> wrote:


All,

    I'd like to make images of some larger datasets so I need to use e.g., grads -m 20000 to expand the buffer.  However, when I try to use that particular argument in a shell script (instead of from the command line) the 20000000 trips it up; I've tried a bunch of combinations and nothing seems to work.  Is there another way to expand the buffer when running in batch mode?  Thanks!

Cheers,

--
Bob Kuligowski, Ph.D.
Meteorologist
NOAA/NESDIS/Center for Satellite Applications and Research (STAR)

Mailing Address:
National Oceanic and Atmospheric Administration
NESDIS STAR/SMCD
Bob Kuligowski
NCWCP E/RA2
5830 University Research Court
2nd Floor, Office #2828
College Park, MD 20740-3818

Phone:  (301) 683-3593
Fax  :  (301) 683-3616

http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php
http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php



_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160512/c721f42f/attachment.html 


More information about the gradsusr mailing list