Re: linint?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 28 Feb 2006 16:32:59 -0700 (MST)

>
>I have been looking at the web page documenting linint, linint2 and
linint2_points
>and can't figure out which, if any of these might suit my needs.
>
>I have data on a polar sterographic grid with latitude(89,89) and
longitude(89,89)
>and data(89,89). All latitude(n,:) and/or longitude(n,:) are monotonically
>increasing. I want to interpolate the data to:
>
> data2(72,144) grid with lat(72) and lon(144)
>
>I've managed to generate a number of (different) error messages with my
attempts.
>
>
>Can someone provide some guidance?
=========================================
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

  LAT = latitude(0,:)
  LON = longitude(0,:)
  LAT_at_units = "degrees_north"
  LON_at_units = "degrees_east"
  
  print(LAT) ; make sure they are monotonically increasing
  print(LON)
  
  data!0 = "LAT"
  data!1 = "LON"
  
  lon = lonGlobeFo (144, "lon", "longitude", "degrees_east")
  lat = latGlobeFo ( 72, "lat", "latitude" , "degrees_north")
  
  data2 = linint2_Warp(LON,LAT,data,True,lon,lat,0)
  printVarSummary(data2)
  
  
HTH
D
  

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 28 2006 - 16:32:59 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 01 2006 - 10:20:25 MST