I used NETCDF for many years on windows (using GDAL ) now recently i
tried on Linux for netcdf data value.I used gdallocationinfo on windows for retrieving
atmospheric parameter value from netcdf file. same i tried on Linux
but i am getting a fill value -999 for some files.GDAL 1.11 is used in both the
systems.On windows proper value is resulted for both the example files mentioned below from the file.Though same syntax is used on LINUX for one file (aerosol optical depth) it is working and for the other different result is observed.
gdallocationinfo -geoloc -valonly NETCDF:g4.timeAvgMap.MOD08_D3_6_1_Water_Vapor_Near_Infrared_Clear_Mean.20190514-20190514.180W_90S_180E_90N.nc:MOD08_D3_6_1_Water_Vapor_Near_Infrared_Clear_Mean 75.2 35.2
is resulting different
way.But i got a proper result (on linux) for aerosol optical depth variable
gdallocationinfo -geoloc -valonly NETCDF:g4.timeAvgMap.MOD08_D3_6_1_Aerosol_Optical_Depth_Land_Ocean_Mean.20190514-20190514.180W_90S_180E_90N:MOD08_D3_6_1_Aerosol_Optical_Depth_Land_Ocean_Mean 75.2 35.2
if variable name is wrong then it should give message, but output is coming as the constant value of -9999.