RE: [ncl-talk] Height-time plot

From: Debasish Pai Mazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Sep 2007 14:55:00 -0800

Dear Lin,

Please try this

lev_at_units="mb"
massd!0="lev"
massd&lev=DUSTAOD2&lev

instead of

 massd!0="lev"
 massd&lev=DUSTAOD2&lev
 lev=massd&lev
 massd_at_units = "mb"

when you declare this way you will automatically set the dimension of massd
as mb through setting the dimension of lev as mb.

Thanks

Debasish

  
-----Original Message-----
From: ncl-talk-bounces_at_ucar.edu [mailto:ncl-talk-bounces_at_ucar.edu] On Behalf
Of Lin Su
Sent: Wednesday, September 19, 2007 12:53 PM
To: ncl-talk_at_ucar.edu
Subject: Height-time plot

Dear NCL users,

I am trying to get the height-time plot using "gsn_csm_pres_hgt" function,
and the error always showed as follows:

--------------------------
(0) gsn_csm_pres_hgt: Fatal: The coordinate array for the first
dimension of the input data must be in Pascals, Hecto-pascals, or millibars
(0) and it must contain the attribute 'units' set to one of the
following strings (depending on your units):
(0) 'mb' 'Mb' 'MB' 'millibar' 'millibars' 'MILLIBARS'
'hybrid_sigma_pressure' 'Pa' 'pa' 'PA' 'Pascals' 'pascals' 'PASCALS' 'hpa'
'hPa' 'HPA' 'hecto-pascals' 'HECTO-PASCALS'
(0) Cannot create plot.
fatal:Illegal right-hand side type for assignment
fatal:Execute: Error occurred at or near line 54 in file vert_dist_test.ncl
-----------------------------------

I think the error is due to the missing dimention defination. However, I
still can't fix the problems after I gave the dimension defination. Anybody
has any idea about this error? Attached please find my test code.

Thanks a lot,
-Lin

---
Lin Su
Graduate Research Assistant
Toon's Aerosol Modeling Group
http://atoc.colorado.edu/~sul/
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 19 2007 - 16:55:00 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 24 2007 - 11:44:39 MDT