rotating netcdf plot

From: Jamie Lahowetz <jlahowe2_at_nyahnyahspammersnyahnyah>
Date: Wed, 10 Sep 2008 13:13:24 -0500

I want to rotate the grid and netcdf plot so that it is arranged correctly.
Currently, the 0,0 is in the Lower Left corner, I need it in the upper left.
Any ideas?

; NCL script for displaying a netcdf radar file
;
;
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

;##############################

begin

    f = addfile
("/home/jlahowet/THOR/test2/radar/merger/MergedReflectivityComposite/01.00/20080522-183832.netcdf","r")

    names = getfilevarnames(f)
    print(names)

    atts = getfilevaratts(f,names(0))
    dims = getfilevardims(f,names(0))
    print(atts)
    print(dims)

;##############################
; Radar
;##############################

    radar = f->MergedReflectivityComposite
    print(max(radar))

    wks = gsn_open_wks("x11","radar")
    gsn_define_colormap(wks,"radar_1")

    setvalues NhlGetWorkspaceObjectId()
        "wsMaximumSize": 67108864
    end setvalues

;##############################
; Print
;##############################

    printVarSummary(radar)

;##############################
; Radar resources
;##############################

    res = True
    res_at_cnFillOn = True
    res_at_gsnSpreadColors = True
    res_at_cnLevelSelectionMode = "ManualLevels"
    res_at_cnMinLevelValF = 0
    res_at_cnMaxLevelValF = 75
    res_at_cnLevelSpacingF = 5

;##############################

    plot = gsn_csm_contour(wks,radar,res)

end

-- 
Jamie Ryan Lahowetz
University of Nebraska - Lincoln
Graduate Student - Geosciences
402.304.0766
jlahowe2_at_bigred.unl.edu

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 10 2008 - 12:13:24 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 12 2008 - 21:42:04 MDT