Dear all, recently I was trying to develop the mksurfdata_map tools, in order to generate the surface data map with a new variable. However, there are some problems while writing out the new variable. My variable is 3-Dimentional, so I have checked other 3-D variables. Normally in the source code of the modules, the dimension of the variables to be written would be (ns_o) X (number of the third dimension), where (ns_o) = (num_lon) x (num_lat). Although it's 2-D in the source code, it it can be written well into the 3-D variable in the surface data map with the function nf_put_vara_double(). Here is an example (output grid is 10 x 15):
This is the dimension of the variable in the output surface data map.
And here is the dimension of the array which is going to be written in the module. As you can see, 24 x 19 = 456. With the function nf_put_vara_double(), the variable was written into the output surface map.
However, in my case,
this is the dimension in the output surface data map,
and this is the dimension of the array which is going to be written. I used the function nf_put_vara_int(), but the error occurred ...
Does someone have a similar experience?
This is the dimension of the variable in the output surface data map.
And here is the dimension of the array which is going to be written in the module. As you can see, 24 x 19 = 456. With the function nf_put_vara_double(), the variable was written into the output surface map.
However, in my case,
this is the dimension in the output surface data map,
and this is the dimension of the array which is going to be written. I used the function nf_put_vara_int(), but the error occurred ...
Does someone have a similar experience?