Unrecognized type code of variable supplied -1 ncdf file

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
annaknoc
Posts: 1
Joined: Tue Apr 30, 2024 9:25 am America/New_York
Answers: 0

Unrecognized type code of variable supplied -1 ncdf file

by annaknoc » Tue Apr 30, 2024 9:28 am America/New_York

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.

Filters:

OB ODPS - towens
Subject Matter Expert
Subject Matter Expert
Posts: 396
Joined: Fri Feb 05, 2021 9:17 am America/New_York
Answers: 0
Been thanked: 5 times

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

by OB ODPS - towens » Tue Apr 30, 2024 2:04 pm America/New_York

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

Post Reply