Assist with Addfile and lat = f1-->laat

From: zilore mumba <zmumba_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 25 2011 - 00:52:59 MDT

Definition of lat/lon in a file.
With Excuses on people's time with a very basic problem I have, I
would like to request once more if someone can spare some of their
time to look at my definition of lat/lon in the native_2.ncl ncl script.
1. I have binary data (not GRIB, but written into binary by fortran)
converted through Grads (Lats4d) into NetCdf. Both the original binary
file and the NetCdf versions work in Grads but not in ncl. I assumed
it did not work because the file was binary (not GRIB).
2. I took model output data in GRIB and made a ctl with grib2ctl and
converted to NetCdf in Grads. It does not work in ncl.
3. I downloaded 850hPa temperature data (in NetCdf format) from the
NCEP reanalysis page. It does not work in ncl, but works in Grads.
In all the three cases above the error is the same, as below
 Copyright (C) 1995-2010 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 5.2.1
 The use of this software is governed by a License Agreement.
 See for more details.
fatal:Either file (f1) isn't defined or variable (Air) is not a
variable in the file
fatal:Execute: Error occurred at or near line 20 in file native_2.ncl
Here is how I introduced the file
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
 f1 = addfile("","r")
 lat = f1->lat
 lon = f1->lon
 lat_len = dimsizes(lat)
 lon_len = dimsizes(lon)
; time = f1-> time
I would appreciate assistance, where am I making the mistake?

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Mar 25 00:59:48 2011

This archive was generated by hypermail 2.1.8 : Mon Mar 28 2011 - 08:51:50 MDT