fill values for L2 Rrs data and gdalwarp
Posted: Tue May 23, 2017 7:14 pm America/New_York
Greetings all
I hope I don't offend anyone with this question but I am going to risk it. I am trying to use gdalwarp (the command, submitted through R on a Mac is below)
system('gdalwarp HDF5:"A2011202183000.L2_LAC_OC.x.nc"://geophysical_data/Rrs_412 r412.tif -r bilinear -srcnodata -32767 -tr 0.009337697 0.009337697').
Based on what I see for band attributes in SeaDAS and the table at this link
https://oceancolor.gsfc.nasa.gov/docs/format/l2oc_modis/#specs_24
the srcnodata in the option should be -32767 and, if I understand correctly, gdalwarp should give me data for Rrs_412 that are roughly similar to what I would get if I reprojected the nc file in SeaDAS. Is it possible that the fill value/srcnodata value is NOT -32767? When I run the above command on that file I get no Rrs_412 values >0 for a file, based on viewing in SeaDAS, clearly has nonzero Rrs_412 values.
I have attached a png of the result for the command above. Any suggestions on how to make this work would be appreciated, even if it is "try a gdal forum".
Thanks,
Dave
I hope I don't offend anyone with this question but I am going to risk it. I am trying to use gdalwarp (the command, submitted through R on a Mac is below)
system('gdalwarp HDF5:"A2011202183000.L2_LAC_OC.x.nc"://geophysical_data/Rrs_412 r412.tif -r bilinear -srcnodata -32767 -tr 0.009337697 0.009337697').
Based on what I see for band attributes in SeaDAS and the table at this link
https://oceancolor.gsfc.nasa.gov/docs/format/l2oc_modis/#specs_24
the srcnodata in the option should be -32767 and, if I understand correctly, gdalwarp should give me data for Rrs_412 that are roughly similar to what I would get if I reprojected the nc file in SeaDAS. Is it possible that the fill value/srcnodata value is NOT -32767? When I run the above command on that file I get no Rrs_412 values >0 for a file, based on viewing in SeaDAS, clearly has nonzero Rrs_412 values.
I have attached a png of the result for the command above. Any suggestions on how to make this work would be appreciated, even if it is "try a gdal forum".
Thanks,
Dave

