Newbie questions!

Kwan-yin Kong kongkwan at SCI.CCNY.CUNY.EDU
Tue Nov 15 00:03:01 EST 2005


Wen,

Check also the spellings and spaces in GRDDIR and GASCRP.

Kwan-yin

On Mon, 14 Nov 2005 20:32:57 -0500
  fangwen at CLIMATE.CESTM.ALBANY.EDU wrote:
>Kwan-yin,
>Yeah, I set in my .cshrc as following:
>set path=($path/home/fangwen/grads/bin)
>setenv GRDDIR  /home/fangwen/gads//dat
>setenv GASCRP/home/fangwen/grads/lib
>now I can open .ctl files with absolute path, but when I
>"ga->run sample.gs" , it do not work, the error message
>is : Can't open sample.gs . the sample.gs is just under
>directory of grads.I tried with absolute path, got the
>same error. I don't know why. Please help me.
>
>WEN F
>
>----- Original Message -----
>From: Kwan-yin Kong <kongkwan at SCI.CCNY.CUNY.EDU>
>Date: Monday, November 14, 2005 5:25 pm
>Subject: Re: Newbie questions!
>
>> Hi Wen,
>>
>> Did you set (or put it in the shell initialization file)
>> the environment variable "GRADS" to your GrADS
>>directory?
>>
>> Kwan-yin Kong
>>
>>  On Mon, 14 Nov 2005 14:07:25 -0500
>>  fangwen at CLIMATE.CESTM.ALBANY.EDU wrote:
>> >
>> >Hi,
>> >I use absolute path to open model.ctl successfully.
>> >but in my model.ctl file, the first line is:
>> >DSET ^model.dat
>> >I think there must be a method to open the file not
>>using
>> >absolute path.  where I can set the path ?
>> >
>> >wen
>> >
>> >----- Original Message -----
>> >From: Eric Tiong <eric at OFFSHOREWEATHER.COM.AU>
>> >Date: Monday, November 14, 2005 12:52 pm
>> >Subject: Newbie questions!
>> >
>> >> Bob,
>> >>
>> >> This could be a unix2dos or dos2unix problem.  I
>>think
>> >>the ctl
>> >> file can not have CR/LF pairs in line breaks.
>> >>
>> >> Eric
>> >>  ----- Original Message -----
>> >>  From: Bob
>> >>  To: GRADSUSR at LIST.CINECA.IT
>> >>  Sent: Tuesday, November 15, 2005 4:05 AM
>> >>  Subject: Re: Newbie questions!
>> >>
>> >>
>> >>  Still no luck!! Whatever I do, I still get those
>>can`t
>> >>open file
>> >> errors.
>> >>  Thanks for your help though. I`m running the win32e
>> >>version.
>> >>
>> >>
>> >>    ----- Original Message -----
>> >>    From: Jean Pierre Arabonis
>> >>    To: GRADSUSR at LIST.CINECA.IT
>> >>    Sent: Monday, November 14, 2005 12:49 PM
>> >>    Subject: Re: Newbie questions!
>> >>
>> >>
>> >>    Hi Bob
>> >>        Should not matter where you put them, check
>>that
>> >>the
>> >> model.ctl file has the fist line looking like so:
>> >>    dset ^model.grb
>> >>    and not pathed somewhere else, check the
>>permissions
>> >>on teh
>> >> files you need to at least be able to read them.
>> >>    Note that if you are running grads from another
>> >>directory than
>> >> the one where the files reside you bust give the
>> >>absolute path to
>> >> the control file, eg
>> >>
>> >>    ga> open /your full path/model.ctl
>> >>
>> >>    Your directory holding the files should look
>>somthing
>> >>like so:
>> >>
>> >>
>>   arabonis at baltic:/mnt/pacific/data/gradstut/atmosdata>
>> >>ls -lat
>> >>    total 593
>> >>    -rw-r--r--  1 arabonis osis 593060 Jan 14  2003
>> >>model.grb
>> >>    -rw-r--r--  1 arabonis osis   4633 Jan 14  2003
>> >>model.gmp
>> >>    drwxr-xr-x  2 arabonis osis    144 Jan 14  2003 ./
>> >>    -rw-r--r--  1 arabonis osis    651 Jan 14  2003
>> >>model.ctl
>> >>    drwxr-xr-x  4 arabonis osis    104 Jan 14  2003
>>../
>> >>
>> >>    and the ctl file like so:
>> >>
>> >>
>>   arabonis at baltic:/mnt/pacific/data/gradstut/atmosdata>
>> >>cat
>> >> model.ctl    dset ^model.grb
>> >>    title "Sample Model Data for GrADS Tutorial"
>> >>    undef 1e+20
>> >>    dtype grib
>> >>    index ^model.gmp
>> >>    xdef 72 linear 0.000000 5.000000
>> >>    ydef 46 linear -90.000000 4.000000
>> >>    zdef 7 levels
>> >>    1000 850 700 500 300 200 100
>> >>    tdef 5 linear 0Z2jan1987  1dy
>> >>    vars 8
>> >>    ps        0    1,  1,  0,  0 Surface pressure
>>[hPa]
>> >>    u         7   33,100 Eastward wind [m/s]
>> >>    v         7   34,100 Northward wind [m/s]
>> >>    z         7    7,100 Geopotential height [m]
>> >>    t         7   11,100 Air Temperature [K]
>> >>    q         7   51,100 Specific humidity [kg/kg]
>> >>    ts        0   11,105,  2 Surface (2m) air
>>temperature
>> >>[K]
>> >>    p         0   59,  1,  0,  0 Total precipitation
>>rate
>> >>[kg/(m^2*s)]
>> >>    endvars
>> >>
>> >>    Hope this helps
>> >>        JP
>> >>
>> >>
>> >>
>> >>    Bob wrote:
>> >>
>> >>      Thankyou,
>> >>
>> >>      I have the datafiles all in the same directory.
>>I
>> >>have
>> >> placed them in the main Grads folder, and tried in
>>just
>> >>about
>> >> every other folder too but I still get the error.
>> >>
>> >>      I can`t think of anything else to try!! I`ve
>>been
>> >>waiting to
>> >> play around with Grads for ages, but find this
>> >>frustrating that I
>> >> can`t even get off the starting block :D
>> >>
>> >>      Is there a specific place where the datafiles
>>(ctl,
>> >>grib)
>> >> should go?
>> >>
>> >>      Ron.
>> >>        ----- Original Message -----
>> >>        From: Jean Pierre Arabonis
>> >>        To: GRADSUSR at LIST.CINECA.IT
>> >>        Sent: Monday, November 14, 2005 12:25 PM
>> >>        Subject: Re: Newbie questions!
>> >>
>> >>
>> >>        Hi Bob
>> >>            Welcome to grads, firstly I feel that
>>grads
>> >>is better
>> >> suited to the linux environment - besides being
>> >>basically anti-
>> >> windows, you'll find a lot of the users of grads are
>> >>working in a
>> >> unix/linux environment and user support is probably
>> >>better in that
>> >> area, further for automation of grads scripts, linux
>>is
>> >>very
>> >> flexible (which seems to be your ultimate goal).
>> >>            It seems though there have been some
>>library
>> >>issues
>> >> with recent versions of grads on certain flavours of
>> >>linux, red
>> >> hat does not seem to be one of them   but a trawl of
>>the
>> >>archives
>> >> should resolve any compatibility issues.
>> >>            With regard to load, thats going to depend
>>on
>> >>your
>> >> input files and what you do with them, however grads
>>is
>> >>very
>> >> stable and will generally complete the task without
>> >>falling over.
>> >> I have grads running on an old 450 MHz P2 running
>> >>scripts and it
>> >> works just fine.
>> >>            With regard to your problem with the model
>> >>file it
>> >> seems to me to be a path problem, the data file and
>>ctl
>> >>file must
>> >> be in the same directory.
>> >>            Good Luck
>> >>               Jean Pierre
>> >>
>> >>
>> >>        Bob wrote:
>> >>
>> >>          Hi all,
>> >>
>> >>          I`ve never used Grads before, so it`s a
>> >>completely new
>> >> ball game for me!! The most ambitious I`ve been is to
>> >>use a
>> >> desktop utility likes DAWS!
>> >>
>> >>          I have several questions to ask, where the
>> >>answers could
>> >> not be found on the Cola homepage.
>> >>
>> >>          I would like to install Grads on my server,
>> >>mainly so I
>> >> can ingest and display grib data/model charts on my
>> >>website. What
>> >> kind of server loads would I be looking at here? I
>>need
>> >>to know,
>> >> whether my server can cope with it it!! Can someone
>>shed
>> >>some
>> >> light on using Grads on a redhat linux based server?
>> >>
>> >>          Secondly, I haven`t looked through any of
>>the
>> >> documentation as yet. I thought it might be a good
>>idea
>> >>to install
>> >> the windows version locally on my W2K PC first, so I
>>can
>> >>get an
>> >> idea of how Grads works.
>> >>
>> >>          I believe I have it installed correctly, but
>>I
>> >>can`t
>> >> even get off the starting block!! I tried to open the
>> >>demo
>> >> model.ctl file that comes with the online tutorial -
>>all
>> >>I get are
>> >> errors `Scanning description file:  model
>> >>          Open Error:  Can't open description file`
>> >>
>> >>          Do I need to place the ctl, grib and gmp in
>>a
>> >>certain
>> >> folder? All the tutorial says is download them and
>>place
>> >>them
>> >> locally. Thanks.
>> >>
>> >>          Regards,
>> >>          Ron.
>> >>
>> >>
>> >> --
>> >> Jean Pierre Arabonis
>> >> arabonis at egs.uct.ac.za
>> >> Tel 021 780 1021 cell 084 401 1365
>> >> This email is 100% Microsoft Free
>> >>
>> >>
>> >> --
>> >> Jean Pierre Arabonis
>> >> arabonis at egs.uct.ac.za
>> >> Tel 021 780 1021 cell 084 401 1365
>> >> This email is 100% Microsoft Free
>> >>
>>



More information about the gradsusr mailing list