[Met_help] ascii2nc

John Halley Gotway johnhg at ucar.edu
Wed Mar 24 14:12:59 MDT 2010


Jianting,

I've found in the past that sometimes when I compile NetCDF, the "make check" does NOT work.  Just go ahead and do a "make" followed by "make install" and then try recompiling MET.  Let me know if
that works.

Thanks,
John

Jianting Chu wrote:
> Dear John,
>    Thank you for your detailed explaination. But the NetCDF can not be
> built this time...
>    My step is the follow:
> 
>  1) make clean
>  2) export CC=/opt/compiler/pgi/10.0/linux86-64/10.0/bin/pgcc
>  3) export CXX=/opt/compiler/pgi/10.0/linux86-64/10.0/bin/pgCC
>  4) export FC=''
>  5) export F90=''
>  6) ./configure --prefix=/nfs/home1/HLRS/IPM/ipmjtchu/netcdf4.0.1
> --disable-netcdf-4   7) make check install (because compile can not be
> used)  
> 
>    In fact, I once used last two steps, and passed.
>    I attached the make.log file from step 7. Would you please checking it?
> 
> Best wishes,
> Jianting
> 
> 
> 
> John Halley Gotway wrote:
>> Jianting,
>>
>> Thanks for sending the output of make.  Yes, it looks like there is a
>> problem compiling with NetCDF.  I see that you're compiling MET using
>> the PGI compilers.  And I'm wondering if you compiled the
>> NetCDF library with the PGI compilers as well.  If you just used the
>> default configure/compile procedure for NetCDF, it probably did NOT
>> use PGI.
>>
>> If you think that may be the problem, please try recompiling your
>> NetCDF library in /nfs/home1/HLRS/IPM/ipmjtchu/netcdf4.0.1 using the
>> following commands:
>>   make clean
>>   setenv CC  /opt/compiler/pgi/10.0/linux86-64/10.0/bin/pgcc
>>   setenv CXX /opt/compiler/pgi/10.0/linux86-64/10.0/bin/pgCC
>>   setenv FC  ''
>>   setenv F90 ''
>>   ./configure --prefix="path/where/you/want/to/install/netcdf"
>>   ./compile
>>
>> These steps are described here:
>>   
>> http://www.dtcenter.org/met/users/support/online_tutorial/METv2.0/compilation/req_libs.php
>>
>>
>> This will disable the compilation of the NetCDF/Fortran interface that
>> MET doesn't use.  Once you've re-compiled NetCDF, try recompiling MET
>> and see if it goes better.
>>
>> Thanks,
>> John
>>
>> Jianting Chu wrote:
>>  
>>> Dear John,
>>>    Yes, you are right. The prolem maybe caused by the installment. We
>>> are using METv2.0,  but  do not  use the lasted  patches.tar.gz file.
>>>     Since we need to use MET Tool in one supercomputer, I need to build
>>> the 4 outer libraries. I have built 3 except for f2c.
>>>    I tested to make MET Tool, and it seems something is wrong with
>>> NetCDF.
>>>    I attached my Makefile and make.log. Would you please taking a look?
>>>    Thank you very much!
>>>
>>>
>>> Best wishes,
>>> Jianting
>>>
>>>
>>> John Halley Gotway wrote:
>>>    
>>>> Jianting,
>>>>
>>>> Thanks for sending that data file.  I ran it through ascii2nc here and
>>>> found that it did retrieve 2,123,040 observations!  The header of the
>>>> NetCDF file is listed below.
>>>>
>>>> netcdf wess_198901 {
>>>> dimensions:
>>>>         mxstr = 16 ;
>>>>         hdr_arr_len = 3 ;
>>>>         obs_arr_len = 5 ;
>>>>         nhdr = 212304 ;
>>>>         nobs = UNLIMITED ; // (2123040 currently)
>>>>
>>>> It occurs to me that perhaps you're not using the most recent version
>>>> of MET.  Before we look any further at this, could you please download
>>>> the latest set of patches for METv2.0, recompile MET, and
>>>> then try rerunning?
>>>>
>>>> Please go to:
>>>> http://www.dtcenter.org/met/users/support/known_issues/METv2.0/index.php
>>>>
>>>>
>>>> Read the first section on that page, download the file
>>>> "METv2.0_patches_20091223.tar.gz" and follow the instructions for
>>>> applying those patches.
>>>>
>>>> Please give that a try and let me know if you continue to experience
>>>> problems.
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> Jianting Chu wrote:
>>>>  
>>>>      
>>>>> Dear Sir,
>>>>>    I found a problem with ascii2nc.
>>>>>    I can use this tool to transfer data format, anyway, the head of
>>>>> transformed NetCDF is like this:
>>>>> -------------------------------------------
>>>>> netcdf wess_198901 {
>>>>> dimensions:
>>>>>        mxstr = 16 ;
>>>>>        hdr_arr_len = 3 ;
>>>>>        obs_arr_len = 5 ;
>>>>>        nhdr = 212304 ;
>>>>>        nobs = UNLIMITED ; // (0 currently)
>>>>> --------------------------------------------
>>>>>    That means no observation data have been transformed. In fact, this
>>>>> file can not be used in ./point_stat.
>>>>>    I attached the corresponding ASCII file. Would you please taking a
>>>>> look at it?
>>>>>    Thank you very much!
>>>>>
>>>>> With best wishes,
>>>>> Jianting
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Met_help mailing list
>>>>> Met_help at mailman.ucar.edu
>>>>> http://mailman.ucar.edu/mailman/listinfo/met_help
>>>>>             
> 


More information about the Met_help mailing list