Last data update: 2014.03.03

Data Source

R Release (3.2.3)
CranContrib
BioConductor
All

Data Type

Packages
Functions
Images
Data set

Classification

Results 1 - 10 of 14 found.
[1] < 1 2 > [2]  Sort:

writeMonthlyStations (Package: CHCN) : Function to read the master list and write a monthly

the function reads the master list and writes a local list of stations that report monthly data. It also returns an object dataframe. That dataframe can be fed to downstream processes
● Data Source: CranContrib
● Keywords: files
● Alias: writeMonthlyStations
● 0 images

writeInventory (Package: CHCN) : Writes inventory data in a format usable by RghcnV3 package

The RGhcnV3 package expects certain fields – Id, lat,lon in a specific order. This write function insures the data is read in a compatible manner with that package
● Data Source: CranContrib
● Keywords: files
● Alias: writeInventory
● 0 images

writeGhcn (Package: CHCN) : A simple wrapper to code{write.table

Simply writes a file to the data directory using write.table
● Data Source: CranContrib
● Keywords: files
● Alias: writeGhcn
● 0 images

writeData (Package: CHCN) : Writes a file from a dataframe of climate data

A function that simply writes the data in a dataframe to the data directory. Typically this would be your master data file containing all stations and all data
● Data Source: CranContrib
● Keywords: files
● Alias: writeData
● 0 images

scrapeToCsv (Package: CHCN) : A function to scrape files to local csv files

This function uses the monthly list of stations and downloads them to a local directory. There are 7676 files as of July 2011. The function throws warnings about wrong files sizes. These can be ignored or suppressed by setting warning options
● Data Source: CranContrib
● Keywords: files
● Alias: scrapeToCsv
● 0 images

readMonthlyCsv (Package: CHCN) : reads the csv file that contains all the monthly stations

A simple function that wraps a read.csv call to read the stations in the monthly station list
● Data Source: CranContrib
● Keywords: files
● Alias: readMonthlyCsv
● 0 images

readLocalMaster (Package: CHCN) : A function to read a local copy of the master csv file

The Process of building the dataset depends upon downloading a csv file that lists all the data on environment canada. If for some reason the function downloadMaster does not function, the file can be read from a local copy shipped with the package. This version should be current to the last release date of the package.
● Data Source: CranContrib
● Keywords: filetools
● Alias: readLocalMaster
● 0 images

getMissingScrape (Package: CHCN) : A function to find which scrapes need to be done

During the course of scraping the server sometimes loses the connection or returns an empty file. When that happens the scrapeToCsv should be run again to complete the scrape. That function takes a sequence of files that have not been downloaded. To figure out the missing files, call getMissingScrape
● Data Source: CranContrib
● Keywords: files
● Alias: getMissingScrape
● 0 images

getEmptyCsv (Package: CHCN) : A function to check for empty Csv files

Before creating inventories or datasets the EnvCanada directory should be checked for completeness. Sometimes the scraping process will result in empty csv files. This function checks for empty files and returns a set of indices for re-scraping the empty files
● Data Source: CranContrib
● Keywords: files
● Alias: getEmptyCsv
● 0 images

formatGhcn (Package: CHCN) : creates a 14 column dataset for output

The entire dataset of Environment Canada has 25 columns of data: Tmax,Tmin,Tave, quality flags and other climate data. For use with the package RghcnV3 a 14 column format is required. This format is similar to the 14 column format of GHCN V2. Id is in the first column, followed by Year, followed by 12 measures, one for each month of the year in column 2. This function takes a column and creates a dataset in that format
● Data Source: CranContrib
● Keywords: files
● Alias: formatGhcn
● 0 images