NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.
http://www.ncl.ucar.edu
Other
267 stars 65 forks source link

cannot run plotgrids.ncl #155

Open van1973 opened 3 years ago

van1973 commented 3 years ago

Describe the bug An error occured when ran plotgrids.ncl

NCL script : https://github.com/NCAR/WPS/blob/master/util/plotgrids.ncl namelist.wps : &share wrf_core = 'ARW', max_dom = 2, start_date = '2020-08-25_12:00:00','2020-08-25_12:00:00', end_date = '2020-08-25_18:00:00','2020-08-25_18:00:00', interval_seconds = 21600 io_form_geogrid = 2, /

&geogrid parent_id = 1, 1, parent_grid_ratio = 1, 5, i_parent_start = 1, 31, j_parent_start = 1, 50, e_we = 136, 301, e_sn = 134, 281, ! !!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!! ! The default datasets used to produce the HGT_M, GREENFRAC, ! and LU_INDEX/LANDUSEF fields have changed in WPS v3.8. The HGT_M field ! is now interpolated from 30-arc-second USGS GMTED2010, the GREENFRAC ! field is interpolated from MODIS FPAR, and the LU_INDEX/LANDUSEF fields ! are interpolated from 21-class MODIS. ! ! To match the output given by the default namelist.wps in WPS v3.7.1, ! the following setting for geog_data_res may be used: ! ! geog_data_res = 'gtopo_10m+usgs_10m+nesdis_greenfrac+10m','gtopo_2m+usgs_2m+nesdis_greenfrac+2m', ! !!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!! ! geog_data_res = 'default','default', dx = 10000, dy = 10000, map_proj = 'lambert', ref_lat = 35.5, ref_lon = 106., truelat1 = 30.0, truelat2 = 60.0, stand_lon = 106., geog_data_path = '/mnt/wrf/geog/' /

&ungrib out_format = 'WPS', prefix = 'FILE', /

&metgrid fg_name = 'FILE' io_form_metgrid = 2, /



Computing environment

Errorlog context

$ ncl plotgrids.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. fatal:MapV41DHInitialize: dynamic memory allocation error:[errno=12] fatal:MapV41DHInitialize: error initializing map outline records ERROR 2 IN MPLNRI/MDLNRI - Can't open the ".names" file ERROR 1 IN MPSETR - UNCLEARED PRIOR ERROR ERROR 1 IN MAPPOS - UNCLEARED PRIOR ERROR ERROR 1 IN MAPSTI - UNCLEARED PRIOR ERROR ERROR 1 IN MAPROJ - UNCLEARED PRIOR ERROR ERROR 2 IN MAPSET/MDPSET - UNCLEARED PRIOR ERROR fatal:MapSetTrans: error initializing map: MAPINT - UNCLEARED PRIOR ERROR warning:["SetValues.c":474]:SetValuesChild never occurred on /wps_show_dom_map.PlotManager: Error in mapPlotClass warning:tmXBBorderOn is not a valid resource in /wps_show_dom_map at this time warning:tmXTBorderOn is not a valid resource in /wps_show_dom_map at this time warning:tmYLBorderOn is not a valid resource in /wps_show_dom_map at this time warning:tmYRBorderOn is not a valid resource in /wps_show_dom_map at this time warning:tiMainString is not a valid resource in /wps_show_dom_map at this time Segmentation fault (core dumped)

Dave-Allured commented 3 years ago

That script was updated. Please try plotgrids_new.ncl from the same github directory. https://github.com/NCAR/WPS/blob/master/util/plotgrids_new.ncl

Also consider updating to the current NCL version, 6.6.2.