[MacPorts] #53997: ncarg 6.4 el cap build fails

MacPorts noreply at macports.org
Mon May 8 15:55:36 UTC 2017


#53997: ncarg 6.4 el cap build fails
---------------------+----------------------
  Reporter:  basmac  |      Owner:  tenomoto
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.4.1
Resolution:          |   Keywords:
      Port:  ncarg   |
---------------------+----------------------

Comment (by basmac):

 {{{
 ncarg and ncl build now using 6.4 as I removed autogen and dirac.
 On tests thought that were fixed on 6.4 (bar.ncl) our local build works
 and the macports build fails.
 bash-3.2# /usr/local/bin/ncl /home/bmcinnes/test_regrid_grid.ncl
  Copyright (C) 1995-2017 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.4.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 off.
 (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

 Variable: dataout
 Type: float
 Total Size: 1036800 bytes
             259200 values
 Number of Dimensions: 2
 Dimensions and sizes:   [lat | 360] x [lon | 720]
 Coordinates:
             lat: [-89.75..89.75]
             lon: [   0..359.5]
 Number Of Attributes: 3
   missing_value :       9.96921e+36
   remap :       remapped via ESMF_regrid_with_weights: Nearest source to
 destination
   _FillValue :  9.96921e+36
 bash-3.2# /opt/local/bin/ncl /home/bmcinnes/test_regrid_grid.ncl
  Copyright (C) 1995-2017 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.4.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 off.
 (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
 fatal:Variable (Opt) is undefined
 fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1613 in
 file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl

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

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

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

 fatal:["Execute.c":8640]:Execute: Error occurred at or near line 69 in
 file /home/bmcinnes/test_regrid_grid.ncl

 bash-3.2#
 }}}












 bash-3.2# /opt/local/bin/ncl /home/bmcinnes/bar.ncl
  Copyright (C) 1995-2017 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.4.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":8640]:Execute: Error occurred at or near line 10 in
 file /home/bmcinnes/bar.ncl

 fatal:["Execute.c":8640]:Execute: Error occurred at or near line 16 in
 file /home/bmcinnes/bar.ncl

 bash-3.2# /usr/local/bin/ncl /home/bmcinnes/bar.ncl
  Copyright (C) 1995-2017 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.4.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


 Variable: nc_file_type
 Type: string
 Total Size: 8 bytes
             1 values
 Number of Dimensions: 1
 Dimensions and sizes:   [1]
 Coordinates:
 (0)     netcdf4


 Variable: nc_file_type
 Type: string
 Total Size: 8 bytes
             1 values
 Number of Dimensions: 1
 Dimensions and sizes:   [1]
 Coordinates:
 (0)     netcdf3
 bash-3.2#






 bash-3.2# cat /home/bmcinnes/bar.ncl
         procedure curvilinear_to_SCRIP(Opt[1]:logical)
         begin
             if (isatt(Opt,"NetCDFType").and.\
                 str_lower(Opt at NetCDFType).eq."netcdf4") then
               setfileoption("nc","Format","netcdf4")
               nc_file_type = "netcdf4"
             else
               nc_file_type = "netcdf3"
             end if
             print(nc_file_type)
         end     ; of curvilinear_to_SCRIP(...)
         begin
           Opt = True
           curvilinear_to_SCRIP(Opt)
           Opt at NetCDFType = "netcdf4"
           curvilinear_to_SCRIP(Opt)
           Opt at NetCDFType = "netcdf3"
           curvilinear_to_SCRIP(Opt)
         end

 bash-3.2#

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


More information about the macports-tickets mailing list