Package atmopy :: Package io :: Module measurement
[show private | hide private]
[frames | no frames]

Module atmopy.io.measurement

Function Summary
datetime.datetime sequence, 1D numpy.array load_file_observations(name, directory)
Loads observations data from a file and puts it in a sequence.
list of datetime.datetime lists, list of numpy.array. load_observations(stations, directory)
Loads observations data from files for given stations File names are guessed from station.name.
Station load_station(filename, type, station_name)
Loads a specific station description from text file containing stations descriptions.
sequence of Station load_stations(filename, type, origins, deltas, lengths)
Loads stations description from text file.

Function Details

load_file_observations(name, directory)

Loads observations data from a file and puts it in a sequence.
Parameters:
name - Name of the file to load data from (without directory).
           (type=string)
directory - location of the specified file.
           (type=string)
Returns:
Sequence of datetime and corresponding observation values in 1D array.
           (type=datetime.datetime sequence, 1D numpy.array)

load_observations(stations, directory)

Loads observations data from files for given stations File names are guessed from station.name.
Parameters:
stations - Stations for which observation data must be returned.
           (type=list of Station)
directory - location of the observation files.
           (type=string)
Returns:
A list of dates list (one list of dates per Station), and a list of observations arrays (one array per Station).
           (type=list of datetime.datetime lists, list of numpy.array.)

load_station(filename, type, station_name)

Loads a specific station description from text file containing stations descriptions.
Parameters:
filename - Name of the file that describes the stations.
           (type=string)
type - The type of the initialization strings in the file. It could be Default, Pioneer, Emep or Bdqa.
           (type=string)
station_name - Name of the station to load from the file.
           (type=string)
Returns:
Station loaded from specified file.
           (type=Station)

load_stations(filename, type, origins=(0, 0), deltas=(0, 0), lengths=(0, 0))

Loads stations description from text file. Removes stations outside the domain described by origins, deltas and lengths (if specified).
Parameters:
filename - Name of the file that describes the stations.
           (type=string)
type - The type of the initialization strings in the file. It could be Default, Pioneer, Emep or Bdqa.
           (type=string)
origins - (latitude, longitude) as coordinates of the first cell in the mesh.
           (type=(float, float))
deltas - mesh sizes on latitude and longitude.
           (type=(float, float))
lengths - lengths of the mesh on latitude and longitude.
           (type=(int, int))
Returns:
sequence of stations loaded from specified file.
           (type=sequence of Station)

Generated by Epydoc 2.1 on Tue May 19 10:37:13 2009 http://epydoc.sf.net