Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

ERROR in mksurfdata_map: netcdf error from domain_read rcode =2 error =No such file or directory

majun

Member
Dear scientist,
Now I'm trying to create a surface dataset for a single point, however ,in the last setp using mksurfdata.pl, it failed.
(1) cd /home/shenhf/majun/clm5.0/tools/mksurfdata_map/src
(2) gmake (I have changed netcdf settings in Makefile.common, screenshot of changes is attached below )
(3) ./mksurfdata.pl -res usrspec -usr_gname 1x1_wuhan -usr_gdate 200423
error shows:
...
mksrf_gridtype = global
Output ALL data in file as 64-bit
Set wetland to 0% over land
In mkpftMod::mkpftInit()...
calling domain_read
finished domain_read
fsurdat is 2d lat/lon grid
nlon= 1 nlat= 1
(OPNFIL): Successfully opened file surfdata_1x1_wuhan_hist_16pfts_Irrig_CMIP6_simyr1850_c200426.log on unit= 99
mksrf_gridtype = global
In mkpftMod::mkpft()...
Attempting to make PFTs .....
Creating surface datasets with the standard # of PFTs = 16
netcdf error from domain_read rcode = 2 error = No such file or directory

Do you konw what's wrong? I have tried lots of times but in vain. The gcc version is 8.3.0, esmf version is 7_1_0, netcdf-c is 4.6.2 ,netcdf-fortran is 4.5.2 .
The screenshots of log file , namelist file, changes in Makefile.common , config_machines.xml ,config_compiler.xm nf -config and esmf environment settings are attached below. In addition, the domain file name that I created is domain.lnd.domain.lnd.1x1_wuhan_noocean.nc_domain.ocn_noocean.nc.200426.nc, I don't know whether it influenced the use of mksurfdata.pl or not.
Could you please help me? Thank you very much . Best wishes !
 

Attachments

  • surfdata_1x1_wuhan_hist_78pfts_CMIP6_simyr1850_c200426.log.png
    surfdata_1x1_wuhan_hist_78pfts_CMIP6_simyr1850_c200426.log.png
    165.6 KB · Views: 28
  • surfdata_1x1_wuhan_hist_78pfts_CMIP6_simyr1850_c200426.namelist.png
    surfdata_1x1_wuhan_hist_78pfts_CMIP6_simyr1850_c200426.namelist.png
    156 KB · Views: 23
  • change of Makefile.common.png
    change of Makefile.common.png
    40.4 KB · Views: 24
  • config_machines.xml.jpg
    config_machines.xml.jpg
    62.3 KB · Views: 25
  • config_complier.xml.jpg
    config_complier.xml.jpg
    30.3 KB · Views: 20
  • netcdf-fortran.png
    netcdf-fortran.png
    77.1 KB · Views: 18
  • esmf_7_1_0.png
    esmf_7_1_0.png
    164.3 KB · Views: 24

oleson

Keith Oleson
CSEG and Liaisons
Staff member
Are you sure that the file mksrf_fvegtyp is pointing to exists and is a valid netcdf file?
 

majun

Member
May I ask how to locted the problem to mksrf_fvegtyp file?
I'm sorry that I I think you can edit mksurfdata_map.namelist, the mksrf_fvegtyp file may be at glade/p/cesm/cseg/inputdata/lnd/clm2/rawdata/pftcftlandusedynharv.0.25x0.25.MODIS.simyr1850-2015. c170412/mksrf_landuse_histclm50_LUH2_2000.c170412.nc
 

Dong Peng

Dong Peng
New Member
I'm sorry that I I think you can edit mksurfdata_map.namelist, the mksrf_fvegtyp file may be at glade/p/cesm/cseg/inputdata/lnd/clm2/rawdata/pftcftlandusedynharv.0.25x0.25.MODIS.simyr1850-2015. c170412/mksrf_landuse_histclm50_LUH2_2000.c170412.nc
Hello. Have you found that file (glade/p/cesm/cseg/inputdata/lnd/clm2/rawdata/pftcftlandusedynharv.0.25x0.25.MODIS.simyr1850-2015. c170412/mksrf_landuse_histclm50_LUH2_2000.c170412.nc)? I met the same issue, but I can not find this file in 'https://svn-ccsm-inputdata.cgd.ucar.edu/trunk/inputdata/lnd/clm2/rawdata/'.
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I put that file on our ftp site:

ftp ftp.cgd.ucar.edu
cd pub/oleson/Data

Maybe @erik can repopulated that svn directory at some point.
 

Dong Peng

Dong Peng
New Member
I put that file on our ftp site:

ftp ftp.cgd.ucar.edu
cd pub/oleson/Data

Maybe @erik can repopulated that svn directory at some point.
Hi Oleson,

I met another question about the mksrfdata. When I run the mksrfdata.pl, it can not hook the namelist I modified in mksrfdata_map.namelist. The specify issues was
"Attempting to make gravel dataset .....
forrtl: severe (174): SIGSEGV, segmentation fault occurred"

The new datasets I added were "mksrf/map_fgrvl, fslp10, fero".

Actually, I can not find the files' path was put in the log. Here I put the log file and namelist files.

Looking for a possible solution.
 

Dong Peng

Dong Peng
New Member
I put that file on our ftp site:

ftp ftp.cgd.ucar.edu
cd pub/oleson/Data

Maybe @erik can repopulated that svn directory at some point.
Hi, Oleson,

I did not find this dir in cgd.ucar.edu.
 

Attachments

  • Snipaste_2022-06-23_15-47-23.png
    Snipaste_2022-06-23_15-47-23.png
    78.8 KB · Views: 15

dquaker

Christiana Funmilola Olusegun
New Member
Try ftp://ftp.cgd.ucar.edu/pub/oleson
Hello @oleson, could you kindly put the file in your directory again? I can not find the file using the ftp or on the svn directory as well. I need the file mksrf_landuse_histclm50_LUH2_2000.c170412.nc. Thank you
 
Top