Learn R Programming

oce (version 1.7-10)

read.amsr: Read an amsr File

Description

Read a compressed amsr file, generating an amsr object. Note that only compressed files are read in this version.

Usage

read.amsr(file, encoding = NA, debug = getOption("oceDebug"))

Arguments

file

String indicating the name of a compressed file. See “File sources”.

encoding

ignored.

debug

A debugging flag, integer.

Author

Dan Kelley and Chantelle Layton

Details

AMSR files are provided at the FTP site, at ftp.ssmi.com/amsr2/bmaps_v07.2 as of April 2021. To acquire such files, log in as "guest", then enter a year-based directory (e.g. y2016 for the year 2016), then enter a month-based directory (e.g. m08 for August, the 8th month), and then download a file for the present date, e.g. f34_20160803v7.2.gz for August 3rd, 2016. Do not uncompress this file, since read.amsr can only read the raw files from the server. If read.amsr reports an error on the number of chunks, try downloading a similarly-named file (e.g. in the present example, read.amsr("f34_20160803v7.2_d3d.gz") will report an error about inability to read a 6-chunk file, but read.amsr("f34_20160803v7.2.gz") will work properly.

See Also

plot,amsr-method() for an example.

Other things related to amsr data: [[,amsr-method, [[<-,amsr-method, amsr-class, amsr, composite,amsr-method, download.amsr(), plot,amsr-method, subset,amsr-method, summary,amsr-method