Read an amsr file, generating an amsr object.
Two file types are handled: type 1 is from gzipped files that were available
until perhaps the year 2022, and type 2 is from NetCDF files that
were available afterwards.
The type is stored in the
type, and this is detected in other functions relating to
amsr data. The best way to locate amsr files is to use
download.amsr(), but if this fails, it may be necessary to search
the web for a source.
read.amsr(file, encoding = NA, debug = getOption("oceDebug"))
String indicating the name of a compressed file. See “File sources”.
A debugging flag, integer.