NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi devanshi... Did you check this loop....
for ( j=0; j<yCoordinates; j++) >> { >> for ( i=0; i<xCoordinates; i++) >> { >> samples[0][k] = (float) ((latarray[i]/100)-40); >> samples[1][k] = (float)((lonarray[i]/100)); >> k++; >> } >> }
The issue is in this loop. You are not using j variable in the loop. For making indexes working you need to use j index. The lat array index should be something like (j*xCoordinates+i). I hope you understand. I thought you might have corrected it. regards Ghansham
visad
archives: