[gradsusr] still getting started with grads

Victor D asldikvin at yahoo.com
Mon Jul 29 22:32:26 EDT 2013


Hi Everyone,
Am getting a confusing error message in creating a station map saying:
Possible Causes; Invalid  count in hdr
                 Descriptor file mismatch
 file not station data
 Invalid relative time
The Fortran Program I wrote:
program main

parameter(m=6,n=606,t=101)
REAL r(n),lat(6),lon(6)
character*8 stid(6)
character*8 endsta
open(1,file='C:\Users\ICCES\Desktop\Ugochi.txt')
read(1,*)  r

write(*,*) r

data stid /'1','2','3','4','5','6'/
data lat /12.0,11.8,8.50,6.58,5.48,4.95/
data lon /8.52,13.2,4.55,3.33,7.02,8.32/


data endsta /'end time'/

open(40,file='C:\Users\ICCES\Desktop\ugo.grd',form='binary')     
      do it=1,t
   nlev=1
   tim=0.0
   nflag=1
   do im=1,m
      write(40) stid(im),lat(im),lon(im),tim,nlev,nflag,r((im-1)*t+it) 
     
                                               
         enddo
   endsta='end_time'
   write(40)endsta, 0.0,0.0,0.0,0.0,0.0,0.0
enddo
end
Thanks for your anticipated help

________________________________
 From: "gradsusr-request at gradsusr.org" <gradsusr-request at gradsusr.org>
To: gradsusr at gradsusr.org 
Sent: Tuesday, July 30, 2013 12:00 AM
Subject: gradsusr Digest, Vol 41, Issue 59
 

Send gradsusr mailing list submissions to
    gradsusr at gradsusr.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://gradsusr.org/mailman/listinfo/gradsusr
or, via email, send a message with subject or body 'help' to
    gradsusr-request at gradsusr.org

You can reach the person managing the list at
    gradsusr-owner at gradsusr.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gradsusr digest..."


Today's Topics:

   1. Help in Extracting data using shapefile (Geetha R)
   2. Re: Help in Extracting data using shapefile (Yaqiang Wang)


----------------------------------------------------------------------

Message: 1
Date: Mon, 29 Jul 2013 17:47:20 +0530
From: Geetha R <geethamca2009 at gmail.com>
Subject: [gradsusr] Help in Extracting data using shapefile
To: gradsusr at gradsusr.org
Message-ID:
    <CAD-M3JJcnJoV1WaGcCf-amG9jaHVyGLgV4ppAOwgUY7fK3Zzig at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear grads users,


I have  global data for temperature in netcdf format. Can anybody suggest
me how to extract data for particular region using shapefile.
-- 
With regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130729/36df4048/attachment-0001.html 

------------------------------

Message: 2
Date: Mon, 29 Jul 2013 21:58:26 +0800
From: Yaqiang Wang <yaqiang.wang at gmail.com>
Subject: Re: [gradsusr] Help in Extracting data using shapefile
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
    <CABvomDV415=fJk40rPuFSbLbuqgZ+p5ZNPm8J86JFqZWj_ThzA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

You need to make a GrADS maskout data using the shapefile and then extract
the data using 'maskout' function (
http://www.iges.org/grads/gadoc/gradfuncmaskout.html). The first step can
be done using MeteoInfo software (
http://hi.baidu.com/meteoinfo/item/561f18302d9774b1124b14f9).

Regards
Yaqiang


On Mon, Jul 29, 2013 at 8:17 PM, Geetha R <geethamca2009 at gmail.com> wrote:

>
> Dear grads users,
>
>
> I have  global data for temperature in netcdf format. Can anybody suggest
> me how to extract data for particular region using shapefile.
> --
> With regards,
>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
*************************************************
Dr. Yaqiang Wang
Chinese Academy of Meteorological Sciences (CAMS)
46, Zhong-Guan-Cun South Avenue
Beijing, 100081
China

yaqiang.wang at gmail.com

http://www.meteothinker.com
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130729/159e2c80/attachment-0001.html 

------------------------------

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


End of gradsusr Digest, Vol 41, Issue 59
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130729/3d858014/attachment-0003.html 


More information about the gradsusr mailing list