felfelan@egr_msu_edu
New Member
I am new to CLM and I have a question about the gridcell index which I appreciate your response. I am currently dealing with data assimilation into CLM. I need to do a kind of local averaging (including the values of a surface data for let’s say the surrounding 25 grid cells) of each grid cell. However, I don’t know how to identify the gridcell index of surrounding pixels (in both vertical and horizontal directions). I know about the grc%latdeg(g) that converts the gridcell index to lat/lon, I am wondering whether there is also a reverse function that gives the gridcell index of lat/lon by which I can idendify the adjacents cells from their lats/lons. Or, is there any other way to get the gridcell index of surrounding pixcels?
Best Regards
Farshid
Best Regards
Farshid