converted on loadnc2d and ncdatasort. Testing still needed