[gradsusr] 回复: Error With basemap.gs

weather.man weather.man at aliyun.com
Sat Sep 8 01:27:20 EDT 2018


Hi Aykut Aykac
that's not an error . It does not affect the result. open basemap.gs ,you will see something like this 
* Get the polygon file from COLA if we do not have it
wget_it = 'wget ftp://grads.iges.org/grads/scripts/'file' .'
scrp = 'if test -e ' file '; then true; else ' wget_it '; fi'
'! bash -c "'scrp'"'
That cause the error . Use * 
* Get the polygon file from COLA if we do not have it
*wget_it = 'wget ftp://grads.iges.org/grads/scripts/'file' .'
*scrp = 'if test -e ' file '; then true; else ' wget_it '; fi'
*'! bash -c "'scrp'"'

If you still don't get the correct result,please use absolute path.
For example 
* Set the polygon data files
if (type = 'L' | type = 'l') 
*  if (lowres); file = 'C:/OpenGrADS/Contents/Resources/Scripts/lpoly_US.asc'; endif
  if (lowres); file = 'C:/OpenGrADS/Contents/Resources/Scripts/lpoly_lowres.asc'; endif
  if (mres)  ; file = 'C:/OpenGrADS/Contents/Resources/Scripts/lpoly_mres.asc'  ; endif
  if (hires) ; file = 'C:/OpenGrADS/Contents/Resources/Scripts/lpoly_hires.asc' ; endif
endif
if (type = 'O' | type = 'o') 
  if (lowres); file = 'C:/OpenGrADS/Contents/Resources/Scripts/opoly_lowres.asc'; endif
  if (mres)  ; file = 'C:/OpenGrADS/Contents/Resources/Scripts/opoly_mres.asc'  ; endif
  if (hires) ; file = 'C:/OpenGrADS/Contents/Resources/Scripts/opoly_hires.asc' ; endif
endif



------------------------------------------------------------------
发件人:Aykut Aykac <aaykutaykac at gmail.com>
发送时间:2018年9月6日(星期四) 16:35
收件人:GrADS Users Forum <gradsusr at gradsusr.org>
主 题:[gradsusr] Error With basemap.gs

Hi

I'm making a 2m temperature output with GFS data. I want to mask ocean with "basemap.gs". Here is my script:

'color 5 40 2 -kind purple->blue->aqua->green->yellow->red'
'd tmpsfc-273.15'
'cbarm.gs'
'draw shp turkey.shx'
'basemap O 11 1 H'

basemap.gs and opoly_hires.asc are in the same folder. But I still have error;

"sh: bash: command not found"  How can i fix it? 


Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180908/06ee1e94/attachment.html>


More information about the gradsusr mailing list