Re: extracting using coordinate subscript

From: Karin Meier-Fleischer <meier-fleischer_at_nyahnyahspammersnyahnyah>
Date: Sun Apr 20 2014 - 08:42:05 MDT

Hi Ousmane,

first there must be a double point ':' at pr=f->rr(:,{-20 : -22}). If
you want to use variables
do the following:

   xmin = -22.
   xmax = -20.
   pr = f->rr(:,{xmin:xmax})

Bye,
Karin

Am 20.04.14 14:38, schrieb ousmane ndiaye:
> Hi,
> Is it possible using a variable in the dimension :
> instead of doing
> pr=f->rr(:,{-20,-22})
> use something like :
> xlat=(/-20.,-22/)
> pr=f->rr(:,{$xlat$}) ; just guessing here or something similar
> ousmane
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Dipl. Geophys. Karin Meier-Fleischer
Application Support, Visualization
Deutsches Klimarechenzentrum GmbH      E-Mail:   meier-fleischer@dkrz.de
Bundesstrasse 45a                      Internet: http://www.dkrz.de/
20146 Hamburg                          Phone:    +49 (0)40 460094 126
Germany                                Fax:      +49 (0)40 460094 270
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Apr 20 08:42:21 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT