Re: NCL webpage problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 20 2012 - 08:37:02 MST

On Nov 18, 2012, at 5:05 AM, Muhammad Afzaal wrote:

> Dear NCL team!
>
> 1. Thanks for your efforts for always providing a prompt and valueable help on NCL issues. However, It has been noticed that the webpage http://www.ncl.ucar.edu/ takes very very long time to open, while the internet speed ok. is it a problem at my end or at yours? Please see into the matter.

Hi Muhammad,

I haven't had any recent reports of people dealing with slow times on the NCL website. We had some problems last week with power, and our websites were behaving erratically. We hope to have this fixed by now.

>
> 2. I have SST data with dimensions (time, j, i) instead of (time, lat, lon). How can I assign lat lon to i j. I tried lat2d lon2d function, but the data is not placed properly in the display. Any help will be highly appreciated.

It's possible the file that contains your SST data also contains lat/lon information. If you look at your SST variable:

     printVarSummary(sst)

Does it have a "coordinates" attribute? If so, does the coordinates attribute say something like "lat lon" or "latitude longitude"? If it does, then this likely means that you have variables "lat" and "lon" (or "latitude" "longitude") on the file, and you can read these just like you did sst:

    lat = f->lat
    lon = f->lon

Once you have these, then you can use them for plotting:

    sst@lat2d = lat
    sst@lon2d = lon

You may also need to set (for plotting):

   res@gsnAddCyclic = False

if your data is not global.

--Mary

>
> Thanks a lot!
>
> MUHAMMAD AFZAAL KARORI
> Institute of Atmospheric Physics
> Chinese Academy of Sciences
> Beijing, China
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 20 08:37:11 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2012 - 11:16:05 MST