[gradsusr] problem with 3D figure
Heiner Körnich
heiner at misu.su.se
Thu Jun 3 02:59:04 EDT 2010
Hi,
only open the .ctl-file with xdfopen.
The ctl-file should contain something like:
DSET data.nc
ZDEF dep 12 linear 1 1
This would mean that your height variable is called "dep" in the .nc-file.
Check it with 'ncdump -h data.nc'. For the level definition the example uses
only linear distributed levels, you might want to put their actual levels.
Since you have mentioned that your file contains both 2d and 3d data, you
might need to add this as a "VARS"-statement in the ctl-file. But try with
out.
So far,
Heiner
On Wed, Jun 2, 2010 at 7:04 PM, cellyn lee <cellyn_lee53 at yahoo.com> wrote:
> Hi,
>
> thanks for your information, it helps me a alot. but i stil have a
> question, is it i should sdfopen the original .nc file, then only xdfopen
> the .ctl file??
>
> Regards,
> cellyn
>
>
> --- On *Tue, 1/6/10, Heiner Körnich <heiner at misu.su.se>* wrote:
>
>
> From: Heiner Körnich <heiner at misu.su.se>
> Subject: Re: [gradsusr] problem with 3D figure
> To: "GrADS Users Forum" <gradsusr at gradsusr.org>
> Date: Tuesday, 1 June, 2010, 4:27 AM
>
>
> Hi,
>
> this happens sometimes, when the netcdf file does not follow a certain
> standard. You have to create a small control-file and open the file with the
> commmand xdfopen.
> It is all well described in the GraDS documentation index under "xdfopen":
> http://grads.iges.org/grads/gadoc/gadocindex.html
>
> <http://grads.iges.org/grads/gadoc/gadocindex.html>Regards,
> Heiner
>
> On Sun, May 30, 2010 at 5:24 PM, cellyn lee <cellyn_lee53 at yahoo.com<http://aa.mc555.mail.yahoo.com/mc/compose?to=cellyn_lee53@yahoo.com>
> > wrote:
>
>> Hi…I met some problem in displaying 3D variables in GrADS. My netcdf
>> file included 15 variables, some variables are 2D while some are 3D, when I
>> type ‘q file’, the Z size is 1, let’s say I have dep=15 in my 3D variables,
>> so how I display the 3D variables where dep=12?
>>
> Thanks for any information.
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<http://aa.mc555.mail.yahoo.com/mc/compose?to=gradsusr@gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> --
> Heiner Körnich
> Dept. of Meteorology Tel: +46 8 164333
> Stockholms University, SE-106 91 Stockholm, Sweden
> Email: heiner at misu.su.se<http://aa.mc555.mail.yahoo.com/mc/compose?to=heiner@misu.su.se>
> www.misu.su.se/~heiner/ <http://www.misu.su.se/%7Eheiner/>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<http://aa.mc555.mail.yahoo.com/mc/compose?to=gradsusr@gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Heiner Körnich
Dept. of Meteorology Tel: +46 8 164333
Stockholms University, SE-106 91 Stockholm, Sweden
Email: heiner at misu.su.se www.misu.su.se/~heiner/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100603/10922968/attachment-0003.html
More information about the gradsusr
mailing list