[ncl-talk] error in rcm2points

jagan TNAU jagan at tnau.ac.in
Fri Aug 16 22:22:24 MDT 2019


I have an ascii output in irregular grid and trying to some station points
using the script below
;*************************************************
; location.ncl
;************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
;************************************************
begin
;************************************************
; read ascii input file
;************************************************
  values =
asciiread("/Users/Jag/Desktop/cdz-regrid/20060101-sindia.txt",-1,"float")
  nvals = dimsizes(values)
  ncols = 9
  nrows = ncols/nvals
  lat2d  = values(1::ncols)
  lon2d  = values(2::ncols)
  srad = values(3::ncols)
  tmax = values(4::ncols)
  tmin = values(5::ncols)
  rain = values(6::ncols)
  wind = values(7::ncols)
  rhum = values(8::ncols)
;***********************************************
  latcdz = (/ 10.20, 10.48, 10.67 /)
  loncdz = (/ 79.00, 78.20, 78.75 /)
  tmaxcdz = rcm2points (lat2d, lon2d, tmax, latcdz, loncdz, 0)
print(tmaxcdz)
end

But when I run the code it shows the following error.

fatal:Number of dimensions in parameter (0) of (rcm2points) is (1), (2)
dimensions were expected

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 26 in file
check.ncl


The file is for single time.


Will you please help me to solve the problem
-- 
With regards

Dr.R.Jagannathan
Professor & Former Dean
Tamil Nadu Agricultural University
Coimbatore - 641 003 India

PHONE:  Mob: +91 94438 89891

DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190817/c9a5fcb6/attachment.html>


More information about the ncl-talk mailing list