hdf5 plot_data_plane #1931
-
Hi, DEBUG 4: get_data_from_lat_lon_vars() -> lat[1439]=-90 lat[1440]=-89.75 0.25 > 0
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Matt, I see you're having trouble reading a gridded dataset into MET. It's a great idea to start with the And I see you've already written a python embedding script to handle this data... which is great. You could actually leverage that work you've already done using MET's For example, here's a simple python embedding example include in the MET release:
And here's how you could run it through pcp_combine to dump it to NetCDF:
The output As for how to modify your combination of CDO and/or nccopy commands to accomplish a similar result, I certainly can't say off the top of my head. I'm not a CDO expert and don't have an easy answer. Whether you call CDO, python, or python with pcp_combine, all are a pre-processing steps... so some logic will be needed. You could use python via the python embedding route... or you could consider having the python script write a MET NetCDF file directly. Hope that helps. |
Beta Was this translation helpful? Give feedback.
Matt, I see you're having trouble reading a gridded dataset into MET. It's a great idea to start with the
plot_data_plane
utility. That's how I always recommend that folks get started reading new datasets into MET.And I see you've already written a python embedding script to handle this data... which is great. You could actually leverage that work you've already done using MET's
pcp_combine
tool. You could run pcp_combine as a pass through to read the data from python and write it out following MET's NetCDF file format.For example, here's a simple python embedding example include in the MET release:
And here's how you …