Re: not able to change the lat lon values properly

From: Bidyut Bikash Goswami <bidyut_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 21 2012 - 06:37:13 MDT

Hi All,

Thanks for all your responses. setting mpCenterLonF has solved my problem.

To Mary's query, I have uploaded the data file. It is a T382 (1152x576) model output in grib2 format. Hope, lons 0:360.263 is been taken care by ncl properly. Please let me know if I am wrong.

Thanks,

----- Original Message -----
| From: "David Brown" <dbrown@ucar.edu>
| To: "Bidyut Bikash Goswami" <bidyut@tropmet.res.in>
| Cc: "ncl-talk Helpline" <ncl-talk@ucar.edu>, "R Phani" <rphani@tropmet.res.in>
| Sent: Wednesday, March 21, 2012 12:15:14 AM
| Subject: Re: not able to change the lat lon values properly
| Just to add a bit to Mary's response. I think perhaps, as in the other
| question about maps today, you simply need to set mpCenterLonF to
| somewhere near the center of the area you want to plot. Otherwise,
| like Mary, I do not know what you mean.
| -dave
|
| On Mar 20, 2012, at 9:17 AM, Mary Haley wrote:
|
| > Dear Bidyut,
| >
| > I don't know what you mean about "not being able to change the lat
| > lon values properly".
| >
| > Do you mean that the plot is not correct? Your "var" variable looks
| > like it has valid lat/lon coordinate arrays, and they have the
| > correct "units", so gsn_csm_contour_map should be plotting your
| > variable correctly.
| >
| > One thing that is curious is that your longitude values go from 0 to
| > 360.263. This could be a potential problem. Can you provide the
| > file? If so, please visit this URL for ftp information:
| >
| > http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP
| >
| > --Mary
| >
| > On Mar 20, 2012, at 6:40 AM, Bidyut Bikash Goswami wrote:
| >
| >> Dear ALL,
| >>
| >> I am using the attached script and not being able to change the lat
| >> lon values properly. I use the Version 5.1.1.
| >>
| >> The script doesn't give any error while running! Plot has been
| >> attached.
| >>
| >> Probably missing something...Kindly help.
| >>
| >> Regards,
| >> Bidyut
| >>
| >> Information about the file I use
| >> *********************************
| >> Variable: atts
| >> Type: string
| >> Total Size: 72 bytes
| >> 9 values
| >> Number of Dimensions: 1
| >> Dimensions and sizes: [9]
| >> Coordinates:
| >> (0) long_name
| >> (1) GridType
| >> (2) units
| >> (3) Dj
| >> (4) Di
| >> (5) Lo2
| >> (6) La2
| >> (7) Lo1
| >> (8) La1
| >>
| >>
| >> Variable: dims
| >> Type: string
| >> Total Size: 8 bytes
| >> 1 values
| >> Number of Dimensions: 1
| >> Dimensions and sizes: [1]
| >> Coordinates:
| >> (0) g0_lon_1
| >>
| >>
| >> Variable: var
| >> Type: float
| >> Total Size: 2654208 bytes
| >> 663552 values
| >> Number of Dimensions: 2
| >> Dimensions and sizes: [g0_lat_0 | 576] x [g0_lon_1 | 1152]
| >> Coordinates:
| >> g0_lat_0: [90..-89.975]
| >> g0_lon_1: [ 0..360.263]
| >> Number Of Attributes: 12
| >> center : US National Weather Service - NCEP (WMC)
| >> long_name : Precipitation rate
| >> units : kg/m^2/s
| >> _FillValue : 1e+20
| >> level_indicator : 1
| >> gds_grid_type : 0
| >> parameter_table_version : 2
| >> parameter_number : 59
| >> model : Spectral Statistical Interpolation (SSI) analysis from
| >> "Final" run.
| >> forecast_time : 0
| >> forecast_time_units : days
| >> initial_time : 02/03/1956 (00:00)
| >>
| >>
| >> Variable: lon
| >> Type: float
| >> Total Size: 4608 bytes
| >> 1152 values
| >> Number of Dimensions: 1
| >> Dimensions and sizes: [g0_lon_1 | 1152]
| >> Coordinates:
| >> g0_lon_1: [ 0..360.263]
| >> Number Of Attributes: 9
| >> long_name : longitude
| >> GridType : Cylindrical Equidistant Projection Grid
| >> units : degrees_east
| >> Dj : 0.313
| >> Di : 0.313
| >> Lo2 : 360.263
| >> La2 : -89.975
| >> Lo1 : 0
| >> La1 : 90
| >>
| >>
| >> Variable: lat
| >> Type: float
| >> Total Size: 2304 bytes
| >> 576 values
| >> Number of Dimensions: 1
| >> Dimensions and sizes: [g0_lat_0 | 576]
| >> Coordinates:
| >> g0_lat_0: [90..-89.975]
| >> Number Of Attributes: 9
| >> long_name : latitude
| >> GridType : Cylindrical Equidistant Projection Grid
| >> units : degrees_north
| >> Dj : 0.313
| >> Di : 0.313
| >> Lo2 : 360.263
| >> La2 : -89.975
| >> Lo1 : 0
| >> La1 : 90
| >> *********************************************<Rainfall.ps><plot_pgb1.ncl>_______________________________________________
| >> 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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 21 06:44:18 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 27 2012 - 08:50:24 MDT