Issue with Megan-v2.0


I am having some issues with writing EFMAP_LAI.csv file with about 192000 plus grids into netcdf ioapi format using the mg2ioapi executable in megan-v2.04

The conversion process only seems to work for EFMAP_LAI.csv file with grid values of up to 93000 beyond this value of grid number it gives the following error:
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x2B93F632A6D7
#1 0x2B93F632AD1E
#2 0x2B93F6DBD3EF
#3 0x4041F8 in MAIN__ at mg2ioapi.F:146
Segmentation fault (core dumped)

This happens every time which is a bit frustrating.

Also, can please ioapi or megan programme define the values for X and Y when writing a .csv file into netcdf ioapi?

I really need help with this - its urgent.



This sort of thing (where a seg-fault occurs as the problem-size increases) suggests that you may need to compile everything with the “medium” 64-bit memory model instead of the default “small” moidel. See Notes on Linux2_x86_64 memory models.