°®ÆøÏ󣬰®ÆøÏó¼ÒÔ°£¡ 

ÆøÏó¼ÒÔ°

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ÐÂÀË΢²©µÇ½

Ö»ÐèÒ»²½, ¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 6277|»Ø¸´: 4

[ͼÐÎÃÀ»¯] ÎÒÏëÔÚζȵĴ¹Ö±ÀªÏßÉϱê¼ÇÊýÖµ£¬ÇëÎʸ÷λ´óÉñ¸ÃÔõôʵÏÖ£¿

[¸´ÖÆÁ´½Ó]

ÐÂÀË΢²©´ïÈËÑ«

·¢±íÓÚ 2017-6-7 13:26:43 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ

µÇ¼ºó²é¿´¸ü¶à¾«²ÊÄÚÈÝ~

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿Á¢¼´×¢²á ÐÂÀË΢²©µÇ½

x
ÎÒÏëÔÚζȵĴ¹Ö±ÀªÏßÉϱê¼ÇÉÏÊýÖµ£¬ÇëÎÊÔõôʵÏÖ£¿ÎÒµÄÕâ¸öGS³ÌÐòÓÐʲôÎÊÌ⣿ÄÄλ´óÉñ°ïÎÒ·ÖÎö·ÖÎö£¿'reinit'
'open E:/DATA/FNL/01/fnl0702.ctl'
'set lat 27.11'
'set lon 111.56'
'set xlopts 1 4 0.15'
'set ylopts 1 4 0.15'
'set clopts 1 4 0.15'

*´òӡͼ
'enable print E:/DATA/FNL/01/TV.gmf'


'set xlint 20'
'set ylint 20'
*²ã´Î
high=lev

t=1
*ʱ¼ä
while(t<=31)
high=lev
'set grid on'
'set grads off'
'set t 't
'set z 1 13'
'set ylevs 1000 975 950 925 900 850 800 750 700 650 600 550 500  '
'set zlog on '
'set cmark 3'
'set digsize 0.09'
'define T=TMPprs-273.16'   
'd T'

a=subwrd(result,4)
*ÌáÈ¡TÊýÖµ
'q dim'
c=sublin(result,4)
lev=subwrd(result,6)
*ÌáÈ¡ËùÔÚ²ãÊý
'q w2xy  a   lev '
*ÒÔTÊýֵΪºá×ø±ê£¬²ãÊýΪ×Ý×ø±êתΪgradsÖÐxyÖá×ø±ê
x=subwrd(result,3)
y=subwrd(result,6)
*ÌáÈ¡xyÖá×ø±ê
'set string 2'
*É趨Ìí¼ÓµÄÊýÖµÑÕɫΪ2
'draw string 'x' 'y' 'a''
*Ìí¼ÓÊýÖµ

'q time'
date=subwrd(result,3)
'draw title 'T' 'date
*±êÌâ

*´òÓ¡
'printim E:/DATA/FNL/01/tu/TV_-'%t%'.gif white'

'print'
'c'
t=t+1
endwhile
'disable print'
;

T.png
ÃÜÂëÐÞ¸Äʧ°ÜÇëÁªÏµÎ¢ÐÅ£ºmofangbao

ÐÂÀË΢²©´ïÈËÑ«

·¢±íÓÚ 2017-6-7 17:01:47 | ÏÔʾȫ²¿Â¥²ã
ÓÐûÓдíÎóÌáʾ֮ÀàµÄ£¿

ÁíÍâÎÒ¾õµÃÄã¿ÉÒԲο¼Õâ¸ö½Å±¾£¬°Ñdraw line ¸Ä³Édraw string £¬Ó¦¸Ã»áºÜºÃÓá£

***************************************************************************************
* $Id: drawline.gs,v 1.17 2016/05/11 21:08:08 bguan Exp $
*
* Copyright (c) 2005-2015, Bin Guan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list
*    of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this
*    list of conditions and the following disclaimer in the documentation and/or other
*    materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
***************************************************************************************
function drawline(arg)
*
* Draw lines at specified locations.
*
if(subwrd(arg,2)='')
  usage()
  return
endif

'query gxinfo'
line3=sublin(result,3)
line4=sublin(result,4)
x1=subwrd(line3,4)
x2=subwrd(line3,6)
y1=subwrd(line4,4)
y2=subwrd(line4,6)
line5=sublin(result,5)
xaxis=subwrd(line5,3)
yaxis=subwrd(line5,6)

cnt=1
word=subwrd(arg,cnt)
while(word!='')
  axis=word
  cnt=cnt+1
  word=subwrd(arg,cnt)
  while(word!='' & word!='Lon' & word!='Lat' & word!='Lev' & word!='Val' & word!='Time')
    wcoor=word
    if(axis!='Time' & !valnum(wcoor))
      say '[drawline ERROR] <coordinate> for Lon|Lat|Lev|Val must be numeric.'
      return
    endif
    if(xaxis=axis)
      if(yaxis='Time')
        'query w2xy 'wcoor' 0000z1Jan0000'
      else
        'query w2xy 'wcoor' 0'
      endif
      xcoor=subwrd(result,3)
      'draw line 'xcoor' 'y1' 'xcoor' 'y2
    endif
    if(yaxis=axis)
      if(xaxis='Time')
        'query w2xy 0000z1Jan0000 'wcoor
      else
        'query w2xy 0 'wcoor
      endif
      ycoor=subwrd(result,6)
      'draw line 'x1' 'ycoor' 'x2' 'ycoor
    endif
    cnt=cnt+1
    word=subwrd(arg,cnt)
  endwhile
endwhile

return
***************************************************************************************
function usage()
*
* Print usage information.
*
say '  Draw lines at specified locations.'
say ''
say '  USAGE: drawline Lon|Lat|Lev|Val|Time <coordinate1> [<coordinate2>...] [Lon|Lat|Lev|Val|Time <coordinate1> [<coordinate2>...]]...'
say '    <coordinate>: world coordinate.'
say ''
say '  EXAMPLE 1: drawline Lon 180 Lat 0'
say '    Draw international date line and equator on a map.'
say ''
say '  EXAMPLE 2: drawline Val -1 0 1'
say '    Draw lines with constant value -1, 0 and 1 in a line graph.'
say ''
say '  EXAMPLE 3: drawline Time 1Jan2005'
say '    Draw a straight line marking 1 January 2005.'
say ''
say '  NOTE: proper capitalization MUST be used for key words Lon, Lat, Lev, Val and Time.'
say ''
say '  Copyright (c) 2005-2015, Bin Guan.'
return


ÃÜÂëÐÞ¸Äʧ°ÜÇëÁªÏµÎ¢ÐÅ£ºmofangbao

ÐÂÀË΢²©´ïÈËÑ«

 Â¥Ö÷| ·¢±íÓÚ 2017-6-7 17:17:40 | ÏÔʾȫ²¿Â¥²ã
ÔÚ³ÌÐòÀïÃæÔö¼ÓÁËÒ»¸öÑ­»·£¬¾Í³öÀ´ÁË¡£Ö»ÊÇСÊýλ̫¶à£¬²»ÖªµÀÔõô±£Áô¡£
ÃÜÂëÐÞ¸Äʧ°ÜÇëÁªÏµÎ¢ÐÅ£ºmofangbao

ÐÂÀË΢²©´ïÈËÑ«

·¢±íÓÚ 2019-3-20 23:50:00 | ÏÔʾȫ²¿Â¥²ã
Ìì±ßµÄ²Êºç ·¢±íÓÚ 2017-6-7 17:17
ÔÚ³ÌÐòÀïÃæÔö¼ÓÁËÒ»¸öÑ­»·£¬¾Í³öÀ´ÁË¡£Ö»ÊÇСÊýλ̫¶à£¬²»ÖªµÀÔõô±£Áô¡£

¿ÉÒÔËÄÉáÎåÈë¡£

v2=math_nint(value1*10)*0.1
'draw string 'x ' 'y ' 'v2
ÃÜÂëÐÞ¸Äʧ°ÜÇëÁªÏµÎ¢ÐÅ£ºmofangbao

ÐÂÀË΢²©´ïÈËÑ«

·¢±íÓÚ 2020-6-2 11:29:55 | ÏÔʾȫ²¿Â¥²ã
ÄãºÃ£¬ÇëÎÊ¿ÉÒÔÌùÏÂÄú³öͼµÄgsÂð
ÃÜÂëÐÞ¸Äʧ°ÜÇëÁªÏµÎ¢ÐÅ£ºmofangbao
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á ÐÂÀË΢²©µÇ½

±¾°æ»ý·Ö¹æÔò

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (¾©ICP-10201084)

±¾Õ¾ÐÅÏ¢¾ùÓÉ»áÔ±·¢±í£¬²»´ú±íÆøÏó¼ÒÔ°Á¢³¡£¬½ûÖ¹ÔÚ±¾Õ¾·¢±íÓë¹ú¼Ò·¨ÂÉÏàµÖ´¥ÑÔÂÛ

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí