Re: How can we write Lat and lon manually in netCDF file

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 25 Sep 2009 14:49:21 -0600

Saji was trying to get the size of your grid.

Here is other information:

If the grid is "global" than there are functions which
will return a grid's lat and lon values:

http://www.ncl.ucar.edu/Document/Functions/Contributed/latGlobeF.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/latGlobeFo.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/latGau.shtml

http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeF.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml

If the grid is regional, then the following approach could be used.

Consider a grid that starts at 59.875 and goes to 20 and
lons that span 60 to 120:

;***************************************************************
; Create/Add coordinate variables. (nlat x mlon)
;***************************************************************
     lat = fspan(-59.875, 20, nlat)
     lon = fspan( 60 ,120, mlon)
                                          ;latitude
     lat!0 = "lat"
     lat&lat = lat
     lat_at_units = "degrees_north"
     lat_at_long_name = "latitude"
                                          ;longitude
     lon!0 = "lon"
     lon&lon = lon
     lon_at_units = "degrees_east"
     lon_at_long_name = "longitude"

Saji N Hameed wrote:
> Hi A.R,
>
> Please provide the results from the following command:
>
> ncdump -h 'filename'
>
> or
>
> ncl_filedump 'filename'
>
> please replace 'filename' with the name of your netcdf file...
>
> saji
> --
>
> * A.R Ragi <ar.ragi_at_gmail.com> [2009-09-25 14:34:52 +0530]:
>
>> Dear NCL users,I have one doubt.
>> I have one netCDF file with me. But in that file latitude and longitude is
>> not there.
>> But i would like to include lat and lon values manually in the NCL script.
>> Is it possible in NCL?
>> If any body knows it, Please help me
>>
>> --
>> A.R.Ragi or simply A.R
>>
>>
>> Sent from Maharashtra, India
>
>> _______________________________________________
>> 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 Fri Sep 25 2009 - 14:49:21 MDT

This archive was generated by hypermail 2.2.0 : Sun Sep 27 2009 - 11:02:31 MDT