Page 1 of 1

Unrecognized type code of variable supplied -1 ncdf file

Posted: Tue Apr 30, 2024 9:28 am America/New_York
by annaknoc
I am using R to open a series of NCDF files that I downloaded from here. These are chlorophyll a files. I have never had an issue opening these before in R but when I try to open the files, I get this error: "Error in ncvar_type_to_string(rv$precint) : Error, unrecognized type code of variable supplied: -1"

I am trying to open this: AQUA_MODIS.20200101_20200131.L3b.MO.CHL.x.nc

So I feel like the file itself is corrupted or the variable is not specified. Where there is an "x" in the file name, I have had it say "chlor_a" in the past and that's the variable name.

Re: Unrecognized type code of variable supplied -1 ncdf file

Posted: Tue Apr 30, 2024 2:04 pm America/New_York
by OB ODPS - towens
The mapped data have the product in the file name, that is an L3 bin file. If you are regularly opening L3b files, check the file with the file command and make sure it is not an HTML file from a download error. If it is HTML, open it in a browser to see the error message.

Tommy