ncl_convert2nc problem

From: Steve George <steve.george_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 08 2010 - 19:45:41 MST

Hi there

I'm trying to convert some AMPS forecast data (in GRIB format; see
http://www.mmm.ucar.edu/rt/amps/wrf_grib/) into netCDF using
ncl_convert2nc.

I'm having a problem with the resulting g5_lon_1 and g5_lat_0 fields.
The calculated latitudes/longitudes are stepping South and West from the
origin, rather than North and East. i.e. from a grid definition of:

  Nx = 213 ;
  Ny = 228 ;
  La1 = -78.358002 ;
  Lo1 = 156.606995 ;
  Lov = 180.000000 ;
  Dx = 1598.000000 ;
  Dy = 1598.000000 ;
  // Pole in proj. plane = South ;
  ProjFlag = 1 ;
  ResCompFlag = 8 ;

I end up with corners of: lat ( -78.358, -76.73927, -79.32224, -81.42978
), lon (156.606, 143.6038, 132.4332, 147.3015)...where the lat/lon range
should be ~ (-78 -> -75) and ( 156 -> 180).

Any ideas? Or could someone point me towards the transformation
algorithm, so that I can encode it myself.

Thanks

Steve

-- 
Dr Steve George
University of Canterbury
Christchurch, NZ
This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.
Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 8 19:45:55 2010

This archive was generated by hypermail 2.1.8 : Thu Feb 11 2010 - 09:50:35 MST