Skip to content

reading nc4 file #1047

Locked Answered by JohnHalleyGotway
perthsb asked this question in File I/O
Jul 29, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi Partha, I see you're having trouble getting MET to read data from a NetCDF file. Thanks for sending me the path. I was able to log onto Hera and grab it for testing. Fortunately, there's an easy way to get this working.

For some background, MET does read a few different flavors of NetCDF files:

  • its internal format which is output from tools like gen_vx_mask or pcp_combine
  • files following the Climate Forecast (CF) convention
  • WRF output post-processed by the WRF-interp utility

The file you're reading is very close to the CF-convention. But the problem is that the global attributes do NOT state that it's CF-compliant. There is no global "conventions" attribute there. But we can tell MET…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@perthsb
Comment options

@JohnHalleyGotway
Comment options

@perthsb
Comment options

Answer selected by georgemccabe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants