Problem reading files when more than 1 is opened

anil kumar rohilla anil_rohilla at REDIFFMAIL.COM
Tue Aug 23 00:14:14 EDT 2005


  
hi
  while opening the second file ,file is open as file2 ,so instead of d prep you write d prep.2 ,,hopefully it will work


On Mon, 22 Aug 2005 Mark Schuster wrote :
>Hello
>
>I am using windows 98 platform for grads, and I am having trouble.  I am
>trying to calculate precipitable water so I need to know the surface
>pressure and specific humidity.  I have the two files shum.nc and
>pres.nc..both of which are on the same grid, but shum.nc has 8 levels in
>the vertical.
>
>When I open up just one of the files, I can read the data in them, but
>suppose i open up shum.nc, and then open up pres.nc as file 2, i have a
>problem.  Suppose after opening them both up, I type
>
>d pres
>
>I get an error message saying that the program has performed an illegal
>operation and will be shut down.  Somehow, opening up shum.nc first is
>doing something....I suspect it has something to do with the differing
>levels in the vertical of the two files since pres.nc is just surface
>pressure so it has no levels in the vertical.
>
>But suppose i open two files where both have the same vertical levels, such
>as uwnd and vwnd...then i can read them both just fine when both are
>opened, so as I said, I believe it has to do with the differing vertical
>levels.
>
>However, I would like to use the vint function to calculate the water
>content over the grid, so I type
>
>set t 1
>set lat 50 70
>set lon 230 250
>d vint(pres.2,shum,350)
>
>and in my opinion, that should work (and I should get a contour plot of
>precipitable water), but I keep getting all these error messages.  Can
>anyone tell me what I am doing wrong?
>
>Thanks a lot
>
>Mark


ANIL KUMAR( METEOROLOGIST GR -II)
LRF SECTION 
NATIONAL CLIMATE CENTER 
ADGM(RESEARCH)
INDIA METEOROLOGICAL DEPARTMENT
SHIVIJI NAGAR
PUNE-411005 INDIA
MOBILE +919422023277
anilkumar at imdpune.gov.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20050823/5550e34e/attachment.html 


More information about the gradsusr mailing list