[MacPorts] #53031: macports ncl fails, mac install of ncarg works

MacPorts noreply at macports.org
Mon Dec 12 14:37:40 CET 2016


#53031: macports ncl fails, mac install of ncarg works
---------------------+----------------------
  Reporter:  basmac  |      Owner:  tenomoto
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.3.5
Resolution:          |   Keywords:
      Port:  ncarg   |
---------------------+----------------------

Comment (by basmac):

 Hi,
 thanks for finding the issue, when I run your bar.ncl I get the following.
 Is this what we are supposed to get ?

 [mac27:~] bmcinnes% ncl bar.ncl
  Copyright (C) 1995-2015 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.3.0
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.


 Variable: nc_file_type
 Type: string
 Total Size: 8 bytes
             1 values
 Number of Dimensions: 1
 Dimensions and sizes:    [1]
 Coordinates:
 (0)    netcdf3
 fatal:Variable (nc_file_type) is undefined
 fatal:["Execute.c":8575]:Execute: Error occurred at or near line 10 in
 file bar.ncl

 fatal:["Execute.c":8575]:Execute: Error occurred at or near line 16 in
 file bar.ncl

 [mac27:~] bmcinnes%

 I am not sure if this is related, but the user also has this issue, for
 your information

 I made a script that tests both the regridding and the ability to plot
 .png files. Here is the output when I try to run it using the /usr/local
 NCL version:

 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% setenv NCARG_ROOT /usr/local

 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% setenv PATH /usr/local/$PATH

 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% source ~/.tcshrc

 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% ncl test_regrid_plot.ncl

  Copyright (C) 1995-2015 - All Rights Reserved

  University Corporation for Atmospheric Research

  NCAR Command Language Version 6.3.0

  The use of this software is governed by a License Agreement.

  See http://www.ncl.ucar.edu/ for more details.

 (0)     Regrid option is on.

 (0)     Plot option is on.

 (0)     defining data array


 Variable: data

 Type: float

 Total Size: 259200 bytes

             64800 values

 Number of Dimensions: 2

 Dimensions and sizes:   [lat | 180] x [lon | 360]

 Coordinates:

             lat: [-89.5..89.5]

             lon: [ 0..359]

 (0)     Regridding!

 (0)     defining new lat and lon arrays

 (0)     defining options for regridding

 (0)     Regridding using method = neareststod

 dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib

   Referenced from: /usr/local/ncl/bin/ESMF_RegridWeightGen

   Reason: image not found

 fatal:The result of the conditional expression yields a missing value. NCL
 can not determine branch, see ismissing function

 fatal:["Execute.c":8575]:Execute: Error occurred at or near line 2938 in
 file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl


 fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4027 in
 file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl


 fatal:["Execute.c":8575]:Execute: Error occurred at or near line 69 in
 file test_regrid_plot.ncl


 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% which ncl

 /usr/local/bin/ncl

 [mac72:~/NCL/NCLtalk/NCLmacports] mgehne% env | grep NCARG

 NCARG_ROOT=/usr/local

 NCARG_COLORMAPS=/Users/mgehne/NCL/Colormaps:/usr/local/lib/ncarg/colormaps


 This is a slightly different error message than I have been getting
 previously.


 I also attached the test script if you feel like running that on your
 machine. Setting the options at the beginning to False turns off the
 regridding or plotting.

--
Ticket URL: <https://trac.macports.org/ticket/53031#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list