[gradsusr] Error using basemap.gs

krishnamohan krishmet at gmail.com
Tue Aug 9 05:18:39 EDT 2011


Hai susanth,

In your basemap script, there will be a section as given (from line number
89 to 100)

* Set the polygon data files
if (type = 'L' | type = 'l')
*  if (lowres); file = 'lpoly_US.asc'; endif
  if (lowres); file = 'lpoly_lowres.asc'; endif
  if (mres)  ; file = 'lpoly_mres.asc'  ; endif
  if (hires) ; file = 'lpoly_hires.asc' ; endif
endif
if (type = 'O' | type = 'o')
  if (lowres); file = 'opoly_lowres.asc'; endif
  if (mres)  ; file = 'opoly_mres.asc'  ; endif
  if (hires) ; file = 'opoly_hires.asc' ; endif
endif

Here you change the default path to the path where the files resides. As i
am using linux, my paths are

 Set the polygon data files
if (type = 'L' | type = 'l')
*  if (lowres); file = '/home/krish/grads/lib/lpoly_US.asc'; endif
  if (lowres); file = '/home/krish/grads/lib/lpoly_lowres.asc'; endif
  if (mres)  ; file = '/home/krish/grads/lib/lpoly_mres.asc'  ; endif
  if (hires) ; file = '/home/krish/grads/lib/lpoly_hires.asc' ; endif
endif
if (type = 'O' | type = 'o')
  if (lowres); file = '/home/krish/grads/lib/opoly_lowres.asc'; endif
  if (mres)  ; file = '/home/krish/grads/lib/opoly_mres.asc'  ; endif
  if (hires) ; file = '/home/krish/grads/lib/opoly_hires.asc' ; endif
endif


Hope this will solve your problem

Regards

Krishnamohan
-- 
Krishnamohan.K.S
CSIR Research Fellow
Department Of Atmospheric Sciences
Cochin University of Science and Technology
Cochin,India

On Tue, Aug 9, 2011 at 2:16 PM, sushant puranik <sushantpuranik at gmail.com>wrote:

> Hi
> I am trying to mask land region with he help of basemap.gs script. So i
> adopted following method for masking land
>
> set lat -30 30
> set lon 30 100
> define ubar=ave(u,t=1,t=20)
> define vbar=ave(v,t=1,t=20)
> d mag(ubar,vbar)
> run basemap.gs L
> enable print temp
> print
> disable print
> gxyat -x 1024 -y 840 D:\meanwind1000.png
> clear
>
> but after execution of this script it shows
> *sh: bash: command not found
> Error reading lpoly_lowres.asc*
> Hardcopy output file is closed
>
> Since i kept all required files in the script folder including
> lpoly_lowres.asc, lpoly_mres.asc, lpoly_hires.asc, opoly_lowres.asc,
> opoly_mres.asc and opoly_hires.asc
>
> Anyone know how to use basemap script for masking land?
>
> Thanks in advance
>
>
> Sushant
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110809/3c725284/attachment-0003.html 


More information about the gradsusr mailing list