Hi Mark,
i was unable to download the data from your ftp site, as the site didn't
seem to allow anonymous logins.
Regardless, I looked at the script you attached. You are correctly
attaching the 2D latitudes and longitudes to the array that houses your
ccsm data:
ccsm_at_lat2d = ccsm_if->TLAT ; has correct units
ccsm_at_lon2d = ccsm_if->TLONG
so no problem there. I'm guessing the error messages are being caused by
the fact that you are doing a calculation within your plot call, and
thus the metadata (including the attached lat2d/lon2d arrays) is/are
being destroyed:
plots(2)=gsn_csm_contour_map_ce(wks,ccsm/100,res)
change the above line to these 2 lines:
ccsm = ccsm/100. ; preserve metadata
plots(2)=gsn_csm_contour_map_ce(wks,ccsm,res)
and I bet that works.
Best regards,
Adam
Mark.Collier_at_csiro.au wrote:
> Hi,
> I've been able to get all bar one dataset to draw properly in my panelled plot. I've attached the ncl script and have put the script and data on my ftp server,
> ftp.dar.csiro.au,macftp,macftp
> looking for help to get the NCAR-POP ocean model data (represented by the ccsm array) to align with coastlines...
> I don't really understand how to set lat/lon units when the lat2d/lon2d attributes are used for irregular grids which is what the warnings are telling me.
> Many thanks
> Mark.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Jun 24 2009 - 11:15:17 MDT
This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT