Data processing problem

From: Jiang, Lifen <lfjiang_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 12 2013 - 20:51:56 MST

I have a data set with two dimensions: lat=1676 and lon=4320; Variable type is short; Missing data are -32768 but many values of -9999 and -9998 should also be treated as missing values.
I want to divide all values by 10 but the returned result has two dimensions: nc10=336 and nc11=432 instead of lat=1676 and lon=4320. And I can¡¯t plot it at all.
I greatly appreciate if anyone can help check what¡¯s wrong with my scripts as bellow.
    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
    in = addfile("", "r")
    t = short2flt(in->med_c0(::5,::10)) ; convert to float
    t@_FillValue = -32768
    t@missing_value = t@_FillValue
    t = where(t .lt. -9997, t@_FillValue, t)
    y = t/10
    system("/bin/rm -f")
    fout = addfile("", "c") ; new netCDF file
    fout@title = "kg/m2"
    fout->y = y

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Feb 12 20:52:05 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 13 2013 - 09:25:58 MST