[ncl-talk] Plot a contour

saeed bayat saeedbayat7276 at gmail.com
Thu Jun 11 11:44:23 MDT 2015


Dear NCL Users
Happy to join such a nice group and such a powerful software. I'll try
to use your instructions and if there was any problem (I hope there
would not), I will let you know.

Yours Sincerely

On 6/11/15, bozkurtd at itu.edu.tr <bozkurtd at itu.edu.tr> wrote:
>   Dear Abdolhalim,
>
> Attached is the script that I use to plot topography map of RegCM4 output.
> As Mary pointed out, you need to define some more information for zooming
> in on your data. In the attached script you can find how to get lat/lon
> values from your file and define lat/lon of projection origin.
> For masking, just select and define “landuse” variable from your file
> and then use “mask” function of NCL
> (http://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml) to mask
> land or sea by choosing corresponding numbers from the “landuse”.
> Hope that helps. If not, let ncl-talk know.
> Deniz
>
> --
> Deniz Bozkurt, PhD
> Post-doctoral Fellow
> Center for Climate and Resilience Research
> Department of Geophysics, University of Chile
> Blanco Encalada 2002, Santiago, Chile
> E-mail: dbozkurt at dgf.uchile.cl, deniboz at gmail.com
> Web: http://dgf.uchile.cl/~dbozkurt/
>
> Alinti Mary Haley <haley at ucar.edu>
>
>> Dear Abdolhalim,
>>
>>    Welcome to ncl-talk. Always good to have new NCL users on board.
>>
>>    Since you want to plot this over a map, you should use
>> gsn_csm_contour_map instead of gsn_contour.
>>
>>    gsn_csm_contour_map will give you more "value added" graphics, as it
>> will look at your "t" variable and try to set some graphical options for
>> you, like titles, and labels on the X and Y axis. It will also
>> automatically give you a labelbar if you set "cnFillOn" to True.
>>
>>    Please try the attached script. I took out a lot of your resource
>> settings, because they are likely not needed if you use
>> gsn_csm_contour_map.  The one issue you will have is that your map won't
>> be zoomed in, because the default is to give you a global map.
>>
>>        You may want to see this page for examples of zooming in on
>> regional climate data:
>>
>>     http://www.ncl.ucar.edu/Applications/rcm.shtml
>>
>>
>>    If you get an error in your script, then please post back to
>> ncl-talk, but put the following line in your script and let us know what
>> it says:
>>
>>    printVarSummary(t)
>>
>>    Also include the error message.
>>
>>    As a beginner to NCL, I suggest going here:
>>
>>    http://www.ncl.ucar.edu/get_started.shtml
>>
>>    and in particular, look at the "Information on learning NCL section".
>>
>>    Most folks who need to write NCL scripts to look at their data use
>> our "examples" page:
>>
>>    http://www.ncl.ucar.edu/Applications/
>>
>>    Good luck,
>>
>>    -Mary
>>
>>
>>     On Thu, Jun 11, 2015 at 3:47 AM, saeed bayat
>> <saeedbayat7276 at gmail.com> wrote:
>>
>>> Dear NCL Users
>>> I am pretty new in NCL. I am using output of RegCM4 to plot topo in
>>> NCL. I want to add mask to the map and country borders and then change
>>> the numbers of X and Y axis to the real lat and lon.
>>>  I attached the plot I got using one template codes in NCL website (and
>>> the script). Also attached the header information of file I am using.
>>> Please help me to solve the problem.
>>>
>>> --
>>>                                               Abdolhalim Bayat
>>>                  Ph.D Candidate of Synoptic Climatology
>>>               The Tehran University of Iran
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>


-- 
Abdolhalim Bayat
Ph.D Candidate of Synoptic Climatology
University of Tehran (Iran)


More information about the ncl-talk mailing list