[gradsusr] No scaling environment in grads

Yaqiang Wang yaqiang.wang at gmail.com
Wed Nov 21 01:23:16 EST 2012


I just tested the polygon shape file output ability from GrADS version
2.0.1.oga.1 with model.ctl sample data.

ga-> open model.ctl
ga-> set gxout shp
ga-> set shp -poly test
ga-> d ps

The output polygon shape file (test.shp, test.dbf, test.shx, test.prj)
is ok, but some redumdant vertical lines are showed when the polygon
outlines were plotted. A polygon was divided to several sub polygons
especially when the polygon has 'holes'. It looks fine if not plot the
polygon outlines.

On Wed, Nov 21, 2012 at 2:26 AM, manu verma <verma.manuu at gmail.com> wrote:
> but how to make it shaded
>
> On Fri, Nov 16, 2012 at 2:18 AM, Jeff Lake <admin at michiganwxsystem.com>
> wrote:
>>
>> here is the GrADS template I am using
>>
>>
>> 'open rap_snod.ctl'
>>
>>
>> 'clear shp'
>> 'set mproj latlon'
>> 'set clevs 2 4 8 12 16 20 25 30 40 50 75 100 150'
>> 'set gxout shp'
>> 'set shp -poly snowd'
>> 'd SNOD'
>>
>>
>> 'end'
>>
>> this creates the shape file, with the internal contour levels set by
>> `clevs`
>> the resulting shape file is imported into my postgresql database by
>> the postGIS script `shp2pgsql`.
>> I then use custom php class to create the png image
>>
>>
>> -Jeff Lake
>> MichiganWxSystem.com
>> AllisonHouse.com
>> TheWeatherCenter.net
>> GRLevelXStuff.com
>>
>> On 11/15/2012 12:41, manu verma wrote:
>>
>> yes but the image which you have attached is this a jpeg file or some
>> shape layer which you have exported to GIS. Actually i want to create a
>> shaded contour plot as shape layer so that i can export it on my GIS.
>>
>> Thanks if you can help me.
>>
>>
>>
>>
>> On Thu, Nov 15, 2012 at 10:53 AM, Jeff Lake <admin at michiganwxsystem.com>
>> wrote:
>>>
>>> if your creating sn help mehape files, you can control the interval of
>>> the shape file
>>> with 'set ccols ................'
>>>
>>> I use GrADS to make a number of shape files, then use postGIS and php to
>>> create the maps
>>>
>>> http://images.michiganwxsystem.com/contours/snow/rap_snowdepth.png
>>>
>>> -Jeff Lake
>>> MichiganWxSystem.com
>>> AllisonHouse.com
>>> TheWeatherCenter.net
>>> GRLevelXStuff.com
>>>
>>> On 11/15/2012 0:03, manu verma wrote:
>>>
>>>
>>>
>>> On Thu, Nov 1, 2012 at 10:03 PM, Stephen McMillan
>>> <smcmillan at planalytics.com> wrote:
>>>>
>>>> Manu,
>>>> Are you wanting to draw or create shapefiles?  Use 'set gxout shp' for
>>>> creating shapefiles, but 'draw shp ...' for drawing them.  If you haven't
>>>> already done so, please review the GrADS documentation for instructions on
>>>> working with shapefiles:
>>>> http://grads.iges.org/grads/gadoc/shapefiles.html
>>>>
>>>> Here are a couple of useful links included in the above:
>>>> http://grads.iges.org/grads/gadoc/gradcomdsetshpopts.html
>>>> http://grads.iges.org/grads/gadoc/gradcomddrawshp.html
>>>>
>>>> Here is a simple sample script sequence for overlaying a shapefile
>>>> (political boundaries) on a shaded variable (sea level pressure):
>>>>
>>>> 'set gxout shaded'
>>>> 'set mpdraw off'
>>>> 'd prmslmsl/100'
>>>> 'cbarn'
>>>> 'set shpopts -1'
>>>> 'set line 4'
>>>> 'draw shp admin98'
>>>>
>>>> Stephen Mc
>>>>
>>>>
>>>> On Thu, Nov 1, 2012 at 3:51 AM, manu verma <verma.manuu at gmail.com>
>>>> wrote:
>>>>>
>>>>> Thanks
>>>>> But i want to save two set gxout shaded and set gxout shp in one
>>>>> script.If i use set gxout shaded then it doesn't save in shape file.PLease
>>>>> help
>>>>>
>>>>> On Wed, Oct 31, 2012 at 6:53 PM, Stephen McMillan
>>>>> <smcmillan at planalytics.com> wrote:
>>>>>>
>>>>>> First "display" any variable from your dataset, then use the draw shp
>>>>>> command.  Stephen Mc
>>>>>>
>>>>>> On Wed, Oct 31, 2012 at 4:37 AM, manu verma <verma.manuu at gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> Dear all
>>>>>>>
>>>>>>>
>>>>>>> When i am running command draw shp it always showing no scaling
>>>>>>> environment. How to resolve it.
>>>>>>>
>>>>>>>
>>>>>>> Manu
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> gradsusr mailing list
>>>>>>> gradsusr at gradsusr.org
>>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>>
>>>>>>
>>>>>> ***************************************************
>>>>>> The information contained in this e-mail message is intended only for
>>>>>> the use of the recipient(s) named above and may contain information that is
>>>>>> privileged, confidential, and/or proprietary.
>>>>>>
>>>>>> If you are not the intended recipient, you may not review, copy or
>>>>>> distribute this message. If you have received this communication in error,
>>>>>> please notify the sender immediately by e-mail, and delete the original
>>>>>> message.
>>>>>> ***************************************************
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>
>>>> ***************************************************
>>>> The information contained in this e-mail message is intended only for
>>>> the use of the recipient(s) named above and may contain information that is
>>>> privileged, confidential, and/or proprietary.
>>>>
>>>> If you are not the intended recipient, you may not review, copy or
>>>> distribute this message. If you have received this communication in error,
>>>> please notify the sender immediately by e-mail, and delete the original
>>>> message.
>>>> ***************************************************
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>
>>> Hello
>>>
>>> I want to make shaded contours and export it as shapefile in grads. HOw
>>> to do it.Please help me
>>>
>>> Thanks
>>> Manu
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
> _______________________________________________
> 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 --------------
A non-text attachment was scrubbed...
Name: Image00283.png
Type: image/png
Size: 115806 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20121121/2c245a1e/attachment-0006.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image00284.png
Type: image/png
Size: 104819 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20121121/2c245a1e/attachment-0007.png 


More information about the gradsusr mailing list