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

(gridmap_map_read) ERROR: frac_src out of bounds

Hi,I am using mksurfdata_map to create my surfdataset, but I met the following error:(gridmap_map_read) reading mapping matrix data...(gridmap_map_read) * file name                  : /home/myUser/cesm1_2_2/models/lnd/clm/tools/shared/mkmapdata/map_0.5x0.5_MODIS_to_CONUS_12km_nomask_aave_da_c170912.nc * matrix dimensions rows x cols :      259200  x       50167 * number of non-zero elements:        83612 (gridmap_map_read)  ERROR: frac_src out of bounds max =    2.00000000000026       min =   0.000000000000000E+000forrtl: severe (174): SIGSEGV, segmentation fault occurredImage              PC                Routine            Line        Sourcemksurfdata_map     0000000000540655  Unknown               Unknown  Unknownmksurfdata_map     000000000053E417  Unknown               Unknown  Unknownmksurfdata_map     00000000004F4824  Unknown               Unknown  Unknownmksurfdata_map     00000000004F4636  Unknown               Unknown  Unknownmksurfdata_map     000000000048EB46  Unknown               Unknown  Unknownmksurfdata_map     00000000004930E0  Unknown               Unknown  Unknownlibpthread.so.0    0000003314C0F7E0  Unknown               Unknown  Unknownlibc.so.6          00000033144FF73A  Unknown               Unknown  Unknownmksurfdata_map     0000000000482409  Unknown               Unknown  Unknownmksurfdata_map     0000000000416596  mkgridmapmod_mp_g         249  mkgridmapMod.F90mksurfdata_map     0000000000439A8A  mkpftmod_mp_mkpft         286  mkpftMod.F90mksurfdata_map     00000000004517AB  MAIN__                    501  mksurfdat.F90mksurfdata_map     000000000040A36E  Unknown               Unknown  Unknownlibc.so.6          000000331441ED1D  Unknown               Unknown  Unknownmksurfdata_map     000000000040A279  Unknown               Unknown  Unknown ERROR in mksurfdata_map: 44544
Do you have any idea where this error comes from? Is it possible my SCRIP files have a problem? Please give me a hint or suggestion about it
Regards,
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Semi Yes, this is a problem with the mapping file. The fraction "frac" on the mapping file should be between 0.0 and 1.0. mksurfdata_map will allow it to go outside that a small amount, but the range of your mapping file is 0.0 to 2.0. So there's something wrong with your mapping file. Something we've seen is that with certain versions of ESMF, the direction that the verticies are defined on the input SCRIP grid file matters (if it's clockwise or counterclockwise, you want it to be counterclockwise).
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Semi Yes, this is a problem with the mapping file. The fraction "frac" on the mapping file should be between 0.0 and 1.0. mksurfdata_map will allow it to go outside that a small amount, but the range of your mapping file is 0.0 to 2.0. So there's something wrong with your mapping file. Something we've seen is that with certain versions of ESMF, the direction that the verticies are defined on the input SCRIP grid file matters (if it's clockwise or counterclockwise, you want it to be counterclockwise).
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Semi Yes, this is a problem with the mapping file. The fraction "frac" on the mapping file should be between 0.0 and 1.0. mksurfdata_map will allow it to go outside that a small amount, but the range of your mapping file is 0.0 to 2.0. So there's something wrong with your mapping file. Something we've seen is that with certain versions of ESMF, the direction that the verticies are defined on the input SCRIP grid file matters (if it's clockwise or counterclockwise, you want it to be counterclockwise).
 
Hi Semi and Erik, I also ran into this problem. Is your recommendation to edit the mkscripgrid_case.ncl script or did you adjust your lanwat.nc file? I'm a bit stumped on how to reverse the vertices to counterclockwise.Thank you,
 
Hi Semi and Erik, I also ran into this problem. Is your recommendation to edit the mkscripgrid_case.ncl script or did you adjust your lanwat.nc file? I'm a bit stumped on how to reverse the vertices to counterclockwise.Thank you,
 
Hi Semi and Erik, I also ran into this problem. Is your recommendation to edit the mkscripgrid_case.ncl script or did you adjust your lanwat.nc file? I'm a bit stumped on how to reverse the vertices to counterclockwise.Thank you,
 

majun

Member
Semi Yes, this is a problem with the mapping file. The fraction "frac" on the mapping file should be between 0.0 and 1.0. mksurfdata_map will allow it to go outside that a small amount, but the range of your mapping file is 0.0 to 2.0. So there's something wrong with your mapping file. Something we've seen is that with certain versions of ESMF, the direction that the verticies are defined on the input SCRIP grid file matters (if it's clockwise or counterclockwise, you want it to be counterclockwise).
Hi,Erik, I also met the same problem "ERROR: frac_src out of bounds" when creating regional surface data using clm5.0. The esmf version is 7_1_0 ,gcc is 8.3.0, netcdf-fortran is 4.5.2. I don't know how to reverse the vertices to counterclockwise, so the correct to solve it is to change the version of esmf? what kind of version is fine? Or is there any other way to solve it? Any hint or suggestion is appreciated.
 
Top