The problem is with the netCDF4-CF.
Source file: A2015042183000.L2_LAC_OC.nc
If I reproject the file first and than cropp (the reprojected file) there is no problem. These are the two command lines.
reproject
gpt.sh reproject.xml -Ssource=A2015042183000.L2_LAC_OC.nc -t A2015042183000.L2_LAC_OC_reprojected.nc -f netCDF4-CF
cropp
gpt.sh subset.xml -Ssource=A2015042183000.L2_LAC_OC_reprojected.nc -t A2015042183000.L2_LAC_OC_cropp.nc -f netCDF4-CF
Note that I'm using netCDF4-CF
However, if I cropp first and than reproject, I get an error when I will try to open the reprojected file. See attached figure.
cropp
gpt.sh subset.xml -Ssource=A2015042183000.L2_LAC_OC.nc -t A2015042183000.L2_LAC_OC_cropp.nc -f netCDF4-CF
reproject
gpt.sh reproject.xml -Ssource=A2015042183000.L2_LAC_OC_cropp.nc -t A2015042183000.L2_LAC_OC_reprojected.nc -f netCDF4-CF
In the other hand, if I use netCDF-CF the error desappear.
cropp
gpt.sh subset.xml -Ssource=A2015042183000.L2_LAC_OC.nc -t A2015042183000.L2_LAC_OC_cropp.nc -f netCDF-CF
reproject
gpt.sh reproject.xml -Ssource=A2015042183000.L2_LAC_OC_cropp.nc -t A2015042183000.L2_LAC_OC_reprojected.nc -f netCDF-CF
This problem occours also with SST L2 files.
I prefer to use netCDF4-CF than netCDF-CF because the final size of the netCDF4-CF files is smaller than the other one format.
What could be happening?

attachment 3