[ncl-talk] Longitude values

Karin Meier-Fleischer meier-fleischer at dkrz.de
Mon Mar 7 10:55:29 MST 2016


Hi Guilherme,

I've attached a short example script which plots from 120E to 120E.

Bye,
Karin

Am 07.03.16 um 13:41 schrieb Guilherme Martins:
> Dear Karin,
>
> Thanks a lot but It not worked .
>
> Guilherme.
>
> Em sex, 26 de fev de 2016 às 15:15, Karin Meier-Fleischer 
> <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> escreveu:
>
>     Hi Guilherme,
>
>     you have to set
>
>       res at mpMinLatF       =  -90.
>       res at mpMaxLatF       = 90.
>       res at mpMinLonF       =  120.
>       res at mpMaxLonF       =  480.
>
>       res at mpCenterLonF    =  300.
>
>     Bye,
>     Karin
>
>
>>     Am 26.02.2016 um 15:41 schrieb Guilherme Martins
>>     <jgmsantos at gmail.com <mailto:jgmsantos at gmail.com>>:
>>
>>     Hi users,
>>
>>     I'm trying to plot the figure in attachment by using longitude
>>     values 120E up to 120E, but I don't capable do that. See, I want
>>     120E-120E.
>>
>>     Thanks,
>>
>>     Guilherme.
>>     -- 
>>     ------------------------------------------------------------------------------------------
>>     Dr. Guilherme Martins
>>     Instituto Nacional de Pesquisas Espaciais (INPE)
>>     Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
>>     Grupo de Superfície-Biosfera-Atmosfera (GSBA)
>>     Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12
>>     98152-8580
>>     E-mail: guilherme.martins at inpe.br
>>     <mailto:guilherme.martins at inpe.br> || jgmsantos at gmail.com
>>     <mailto:jgmsantos at gmail.com>
>>     Skype: guilherme.martins.
>>     Homepage: https://sites.google.com/site/jgmsantos
>>     Currículo Lattes: http://lattes.cnpq.br/5997657584785803
>>     ------------------------------------------------------------------------------------------
>>     <secao_vertical.ncl><teste.pdf>_______________________________________________
>>     ncl-talk mailing list
>>     ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>>     List instructions, subscriber options, unsubscribe:
>>     http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> -- 
> ------------------------------------------------------------------------------------------
> Dr. Guilherme Martins
> Instituto Nacional de Pesquisas Espaciais (INPE)
> Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
> Grupo de Superfície-Biosfera-Atmosfera (GSBA)
> Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12 98152-8580
> E-mail: guilherme.martins at inpe.br <mailto:guilherme.martins at inpe.br> 
> || jgmsantos at gmail.com <mailto:jgmsantos at gmail.com>
> Skype: guilherme.martins.
> Homepage: https://sites.google.com/site/jgmsantos
> Currículo Lattes: http://lattes.cnpq.br/5997657584785803
> ------------------------------------------------------------------------------------------

-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   meier-fleischer at dkrz.de
URL:      www.dkrz.de

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160307/24d6d128/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_map_120-480.png
Type: image/png
Size: 87745 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160307/24d6d128/attachment-0001.png 
-------------- next part --------------
begin

  f = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/uv300.nc","r")
  var = f->U(1,:,:)
  
  wks = gsn_open_wks("png","plot_map_120-480")
  
  res = True
  
  res at mpMinLatF       =  -90.
  res at mpMaxLatF       =   90.
  res at mpMinLonF       =  120.
  res at mpMaxLonF       =  480.

  res at mpCenterLonF    =  300.
  
  plot = gsn_csm_contour_map(wks,var,res)
  
  end


More information about the ncl-talk mailing list