[ncl-install] Fw: scatsat-1 data plotting

Mary Haley haley at ucar.edu
Mon Jan 8 13:53:34 MST 2018


Hello,

I wanted to add to Rick's response because I noticed some graphical
resources are misspelled.
Also, you don't need an array to calculate lat / lon. You can do this using
array arithmetic.

lon = (360./numlon)*(ispan(0,numlon-1,1)+0.5)
lat = (180./numlat)*(ispan(0,numlat-1,1)+0.5)-90

Finally, I added some lines to change the color map, set the contour
levels, and do raster plotting for faster results.

If you continue to have questions, please subscribe to ncl-talk as Rick
described, and send the questions to ncl-talk at ucar.edu.

--Mary



On Mon, Jan 8, 2018 at 11:45 AM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> You are almost there -- you need to associate the lon/lat arrays you
> created to the variable data_actual as "coordinate arrays". After you
> create lat/lon,
>  add these lines:
>
> ....
> lat at units="degrees-north"
> lon at units="degrees-east"
> data_actual!0 = "lat"    ; assigns a name to the 1st dimension
> data_actual!1 = "lon"   ; assigns a name to the 2nd dimension
> data_actual&lon = lon  ; associates the lon array to data_actual as a
> coordinate array
> data_actual&lat = lat   ;                           "
>
> Rick
>
>
>
>
> On Mon, Jan 8, 2018 at 1:04 AM, jayanti pal <jiban_samudra18 at yahoo.com>
> wrote:
>
>>
>>
>> Dr. Jayanti Pal
>> Post-doc Fellow
>> Department of Atmospheric Sciences
>> Institute of Atmospheric and Environmental Sciences
>> University of Calcutta
>> Contact: jiban_samudra18 at yahoo.com, jayantibright at gmail.com
>> Ph. 8013906997 <(801)%20390-6997>
>>
>>
>> ----- Forwarded message -----
>> *From:* jayanti pal <jiban_samudra18 at yahoo.com>
>> *To:* ncl-talk at ucar.edu <ncl-talk at ucar.edu>
>> *Sent:* Tuesday 2 January 2018, 12:47:33 PM IST
>> *Subject:* Fw: scatsat-1 data plotting
>>
>> Sir
>>
>> I am new to ncl. I tried to plot scatsat-1 data with ncl. But figure is
>> not correctly plotted.
>> I have attached the code I have used, Hdf file, actual plot (in color)
>> and ncl plot (in black).
>>
>> Please help me. I have to plot those data urgently.
>>
>>
>>
>> Dr. Jayanti Pal
>> Post-doc Fellow
>> Department of Atmospheric Sciences
>> Institute of Atmospheric and Environmental Sciences
>> University of Calcutta
>> Contact: jiban_samudra18 at yahoo.com, jayantibright at gmail.com
>> Ph. 8013906997 <(801)%20390-6997>
>>
>>
>> ----- Forwarded message -----
>> *From:* jayanti pal <jiban_samudra18 at yahoo.com>
>> *To:* eoshelp at hdfgroup.org <eoshelp at hdfgroup.org>
>> *Sent:* Friday 22 December 2017, 12:28:59 PM IST
>> *Subject:* scatsat-1 data plotting
>>
>> Sir
>>
>> I am new to ncl. I tried to plot scatsat-1 data with ncl. But figure is
>> not correctly plotted.
>> I have attached the code I have used, Hdf file, actual plot (in color)
>> and ncl plot (in black).
>>
>> Please help me. I have to plot those data urgently.
>>
>> Thanking you,
>>
>> Dr. Jayanti Pal
>> Post-doc Fellow
>> Department of Atmospheric Sciences
>> Institute of Atmospheric and Environmental Sciences
>> University of Calcutta
>> Contact: jiban_samudra18 at yahoo.com, jayantibright at gmail.com
>> Ph. 8013906997 <(801)%20390-6997>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180108/06c6a1f2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: S1L3WW2017001_25km.png
Type: image/png
Size: 156057 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180108/06c6a1f2/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_ncl_mod.ncl
Type: application/octet-stream
Size: 1584 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180108/06c6a1f2/attachment-0001.obj>


More information about the ncl-install mailing list