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

mksurfdata_map: frac_src out of bounds

KeerZ

Member
Hi, I met the following error when I was using mksurfdata_map to create my surface data. I have successfully creating surface data before, but this time when I was basically doing the same thing it says:

Attempting to make %lake and %wetland .....
domain_read_dims_2d read lon and lat dims from lon/lat
domain_read initialized domain
domain_read read LANDMASK
Open lake file:
/glade/p/cesm/cseg/inputdata/lnd/clm2/rawdata/mksrf_LakePnDepth_3x3min_simyr200
4_csplk_c151015.nc
(gridmap_map_read) reading mapping matrix data...
(gridmap_map_read) * file name : /glade/scratch/keerzhang/cesm2.1.2_ver3/components/clm/tools/mkmapdata/map_3x3min_MODIS-wCsp_to_0.23x0.31_nomask_aave_da_c200322.nc
* matrix dimensions rows x cols : 25920000 x 885888
* number of non-zero elements: 12627054
(gridmap_map_read) ERROR: frac_src out of bounds
max = 2.99453311816327 min = 0.000000000000000E+000
abort:
ERROR in mksurfdata_map: 34304

There is another thread on this frac_src out of bounds ERROR. I tried to revise the NCL script to make it generate the latCorners and LonCorners
counterclockwisely in SCRIP file. However, it still does not work.

Do you have any suggestions on how to solve this problem?

Thank you very much!
 

KeerZ

Member
It seems that the Error is caused by my SCRIP file.
When I create SCRIP file setting:
S_LAT=-90.0; N_LAT=90.0; E_LON=360.0;W_LON=0.0;NX=1152;NY=768
the mksurfdata_map works fine.
However, the above input makes my domain starting at -89.88 lat and 0.1526 lon, and I'd like to create a domain starting at -90 latitude and 0 longitude (is it necessary?)
So I set
S_LAT=-90.1171875; N_LAT=90.1171875; E_LON=359.84375; W_LON=-0.15625; NX=1152;NY=768

Then the mksurfdata_map tool reported error...
 
Top