[ncl-talk] White space in HDF group name

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue Feb 23 04:44:03 MST 2021


Hi Giulio,

maybe this can help:

latf = " /Gelocation/Data Fields/Latitude"

Lat = f->$latf$

-Karin

Am 23.02.21 um 12:30 schrieb G.Monte--- via ncl-talk:
> Dear NCL users,
> I have some problems with a white space in the group name of an HDF file.
> After reading it with "addfile", If i set:
> 
> Lat = f-> /Gelocation/Data Fields/Latitude
> 
> I get an error; I also tried to split the group name into different
> strings,  then reding separtely, but nothing.
> 
> Anyway, I would like to access variable "Latitude" with a single command.
> 
> Could you suggest me the way?
> 
> Thanks in advance,
> Giulio Monte
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
> 

-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization Group - NCL, CDO, Python
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


More information about the ncl-talk mailing list