Re: ncl_convert2nc expression syntax

From: Laura Briley <auraell_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 22 2013 - 10:40:03 MDT

Thank you for the instruction. I followed and still go the same error:
[Laura-Brileys-MacBook:My Passport/Data/MERRA] laura% ncl_convert2nc
MERRA300.prod.assim.tavgM_2d_flx_Nx.201012.SUB.hdf.he5
if: Expression Syntax.

Laura

Laura Briley
Research Associate
Great Lakes Integrated Sciences + Assessments

On 10/22/13 12:38 PM, "Wei Huang" <huangwei@ucar.edu> wrote:

>Laura,
>
>You do not need change the file, just type:
>
>ncl_convert2nc MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf.he5
>
>(where .he5 will force NCL to read this hdd file as he5 file).
>
>Wei
>
>huangwei@ucar.edu
>VETS/CISL
>National Center for Atmospheric Research
>P.O. Box 3000 (1850 Table Mesa Dr.)
>Boulder, CO 80307-3000 USA
>(303) 497-8924
>
>
>
>
>
>
>On Oct 22, 2013, at 10:34 AM, Laura Briley <auraell@umich.edu> wrote:
>
>> I am able to do ncl_filedump. My mac version is 10.6.8. I do not know
>> how to change the file to HE5 as it was downloaded from the internet
>>and I
>> did not create it. Thanks for the suggestions.
>> Laura Briley
>> Research Associate
>> Great Lakes Integrated Sciences + Assessments
>>
>>
>>
>>
>> On 10/22/13 12:28 PM, "Mary Haley" <haley@ucar.edu> wrote:
>>
>>> Same here, I couldn't reproduce the problem on my Mac.
>>>
>>> I think Wei and I both have 64-bit Macs, and I noticed you have a
>>>32-bit
>>> Mac. I wonder if this is part of the problem.
>>>
>>> Are you able to do an ncl_filedump on the file?
>>>
>>> ncl_filedump MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf
>>>
>>> or, as Wei suggested, treat this as an HE5 file:
>>>
>>> ncl_filedump MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf.he5
>>>
>>> What version of MacOS are you running, and which NCL binary did you
>>> download?
>>>
>>> To get the MacOS version:
>>>
>>> sw_vers -productVersion
>>>
>>>
>>> --Mary
>>>
>>>
>>> On Oct 22, 2013, at 10:24 AM, Wei Huang <huangwei@ucar.edu> wrote:
>>>
>>>> Laura,
>>>>
>>>> Sorry, I mean I could NOT reproduce your issue on my Mac.
>>>> 6.1.2 on my Mac generated a NetCDF file properly.
>>>>
>>>> Wei
>>>>
>>>> huangwei@ucar.edu
>>>> VETS/CISL
>>>> National Center for Atmospheric Research
>>>> P.O. Box 3000 (1850 Table Mesa Dr.)
>>>> Boulder, CO 80307-3000 USA
>>>> (303) 497-8924
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Oct 22, 2013, at 10:20 AM, Wei Huang <huangwei@ucar.edu> wrote:
>>>>
>>>>> Laura,
>>>>>
>>>>> I could reproduce your issue.
>>>>>
>>>>> You may try:
>>>>>
>>>>> ncl_convert2nc MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf.he5
>>>>>
>>>>> as this one is truly a HDF-EOS data.
>>>>>
>>>>> Wei
>>>>>
>>>>> huangwei@ucar.edu
>>>>> VETS/CISL
>>>>> National Center for Atmospheric Research
>>>>> P.O. Box 3000 (1850 Table Mesa Dr.)
>>>>> Boulder, CO 80307-3000 USA
>>>>> (303) 497-8924
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Oct 22, 2013, at 9:31 AM, Laura Briley <auraell@umich.edu> wrote:
>>>>>
>>>>>> Hi,
>>>>>> I am trying to use the ncl_convert2nc command to convert hdf files
>>>>>>to
>>>>>> netcdf but get the error: "if: Expression Syntax". Here is the
>>>>>> important information that I think you need:
>>>>>>
>>>>>> [Laura-Brileys-MacBook:~] laura% ncl -V
>>>>>> 6.1.2
>>>>>> [Laura-Brileys-MacBook:My Passport/Data/MERRA] laura% ncl_convert2nc
>>>>>> MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf
>>>>>> if: Expression Syntax.
>>>>>> [Laura-Brileys-MacBook:My Passport/Data/MERRA] laura% uname -a
>>>>>> Darwin Laura-Brileys-MacBook.local 10.8.0 Darwin Kernel Version
>>>>>> 10.8.0: Tue Jun 7 16:33:36 PDT 2011;
>>>>>> root:xnu-1504.15.3~1/RELEASE_I386 i386
>>>>>>
>>>>>> I have put one of the files on your ftp site:
>>>>>> MERRA100.prod.assim.tavgM_2d_flx_Nx.197901.hdf
>>>>>>
>>>>>> Others have had the same problem but I have not come across any
>>>>>> solutions yet:
>>>>>> http://www.ncl.ucar.edu/Support/talk_archives/2011/3210.html
>>>>>> http://www.ncl.ucar.edu/Support/talk_archives/2010/2138.html
>>>>>>
>>>>>> Laura Briley
>>>>>> _______________________________________________
>>>>>> ncl-talk mailing list
>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 22 10:40:29 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 01 2013 - 08:58:14 MDT