#488 netcdf varget fails on strings

v1.0 (example)
closed-fixed
nobody
5
2013-09-27
2012-09-26
Ed Lazarus
No

NCDF_VARGET: (NC_ERROR=-56); The ncdf_varinq works correctly, i.e., gives the identical result to IDL.
Behavior is widespread: Centos 6.3 with netcdf-4.1, Centos 6.3 with netcdf-3.6.2, Centos 6.3 with default netcdf from yum, MacPorts with netcdf-4.2.1.
The procedure I use works with IDL and has for years (versions ~4 tp 8.2) on a variety of platforms. Other testing suggests that everything is OK for numbers, Other similar procedures downloaded from web fail in identical (-56) fashion. The test procedure that comes with the distribution is successful in Centos6.3; it has only numeric data.

Discussion

  • Ed Lazarus

    Ed Lazarus - 2012-09-26

    Example of file where IDL is successful and GDL is not.

     
  • Alain C.

    Alain C. - 2012-09-27

    I am not familiar with NetCDF
    Thanks to the data file.
    Could you please provide few lines I can use to reproduce your problem
    and see whether we can quickly solve it.

    Thanks
    Alain

     
  • Harald Anlauf

    Harald Anlauf - 2013-09-26

    Ed,

    could you please try my patch to bug #524? It fixes the problem for me:

    NCDF_VARGET,cdfid,"mgrid_file",mgrid_file
    print, 'mgrid_file: "', STRING(mgrid_file),'"'
    NCDF_VARGET,cdfid,"mgrid_mode",mgrid_mode
    print, 'mgrid_mode: "', STRING(mgrid_mode),'"'
    NCDF_VARGET,cdfid,"input_extension",input_extension
    print, 'input_extension: "', STRTRIM(STRING(input_extension)),'"'
    

    applied to your file leads to:

    mgrid_file: "/home/lazarus/mgrids/mgrid.d3d_ef"
    mgrid_mode: "S"
    input_extension: "vmec.118162.93032"
    

    which I think is what you want.

     
  • Alain C.

    Alain C. - 2013-09-27

    work also for me with the CVS version

    Alain

     
  • Alain C.

    Alain C. - 2013-09-27
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks