Re: longitude is wrong

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 16 2010 - 11:56:49 MDT

*You*, not NCL, specified the latitude and longitudes of the grid.
NCL is plotting using the lat/lon you provided!!

======================================
You say the plot is "wrong" but you do not state
what is "wrong". We are not familiar with all the assorted HDF products.
You must be specific when posting to ncl-talk.

The link in the script is for TRMM data ....

When you send a script, please remove all inappropriate
comments. *** Our time is valuable too!!! ****

======================================

Also since the grid is 720 x 1440.
The grids span (say)

lat: -89.5 to 89.5 [ or 89.5 to -89.5]
lon: -179.5 to 179.5 [or 0.5 to 359.5]

===

lat=fspan(-90,90,numlat) ; NO!!!
lon=fspan(-180,180,numlon) ; NO!!

lat@units="degrees_north"
lon@units="degrees_east"

data&lat = lat
data&lon = lon

Maybe try:

lat=fspan(89.5,-89.5,numlat) ; reverse lat order

or
  lon=fspan(-179.5, 179.5,numlon)

or
lon=fspan(0.5,359.5,numlon)

On 06/16/2010 11:08 AM, Yi Wang wrote:
> Hi friends,
> I used SW_S3E_2003100.20053531923.ncl (see attachment) to plot
> SW_S3E_2003100.20053531923.hdf
> (ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/PODAAC/SW_S3E_2003100.20053531923.hdf).
> However, the output (see the picture in the attachment) is wrong. The
> longtitude is not correct. Does anyone know how to handle it? Thanks.
> Best,
> Yi
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 16 11:56:54 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 16 2010 - 15:28:33 MDT