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.
Unrecognized type code of variable supplied -1 ncdf file
-
- Subject Matter Expert
- Posts: 450
- Joined: Fri Feb 05, 2021 9:17 am America/New_York
- Been thanked: 7 times
Re: Unrecognized type code of variable supplied -1 ncdf file
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
Tommy