[ncl-talk] convert hdf to nc using ncl_convert2nc gives error
Marit Marsh Stromberg
mmarsh04 at mail.bbk.ac.uk
Thu Aug 27 03:33:30 MDT 2015
Hi,
I am trying to convert a hdf file to netcdf format via ncl_convert2nc but
get an error message "if:Expression Syntax" (see below for input and output
message). This seem to have been a problem raised on this email list before
(e.g. http://www.ncl.ucar.edu/Support/talk_archives/2013/3087.html) but
following the email thread - and going through the proposed ways of solving
the issue - the issue do not appear to have been solved (at least not
posted on the mailing list). Does anybody have an idea on what the issue
might be?
I have attached a link so that the file I want to convert can be downloaded.
Kind regards,
Marit Marsh Stromberg
The code I am running and the error message I get:
$ ncl_convert2nc MERRA200.prod.assim.tavg1_2d_slv_Nx.20000101.hdf
if: Expression Syntax.
My computer and ncl version info:
$ ncl -V
6.3.0
The NCL binary I downloaded was
ncl_ncarg-6.3.0.MacOS_10.8_64bit_nodap_gcc471.tar.gz
<https://www.earthsystemgrid.org/download/fileDownload.htm?logicalFileId=81feecd3-cd9b-11e4-bb80-00c0f03d5b7c>
$ uname -a
Darwin DM-MacBook-Pro.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29
13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Mac OS X Version 10.8.5
What I have tried so far, as suggested in reply on this email list before:
* to add .he5 as file ending (as suggested in
http://www.ncl.ucar.edu/Support/talk_archives/2013/3093.html):
$ ncl_convert2nc MERRA200.prod.assim.tavg1_2d_slv_Nx.20000101.hdf.he5
if: Expression Syntax.
* To do a file dump (ncl_filedump) - which I am able to do. (as suggested
in http://www.ncl.ucar.edu/Support/talk_archives/2013/3167.html)
* Running the command prefixed by 'csh -xv' (as suggested in
http://www.ncl.ucar.edu/Support/talk_archives/2013/3208.html)
This gives:
$ csh -xv ncl_convert2nc MERRA200.prod.assim.tavg1_2d_slv_Nx.20000101.hdf
ncl_convert2nc: No such file or directory.
However, running
$ which ncl_convert2nc
/usr/local/ncl-6.3.0/bin/ncl_convert2nc
shows it should be there.
MERRA200.prod.assim.tavg1_2d_slv_Nx.20000101.hdf
<https://drive.google.com/a/mail.bbk.ac.uk/file/d/0B5nVy-cTj_CkUzQ3SUxoMi1IN0E/view?usp=drive_web>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150827/ab1fc9a2/attachment.html
More information about the ncl-talk
mailing list