50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


PuffR (version 0.1)

calmet_upper_air: Create an upper air data file for CALMET

Description

This function retrieves upper air sounding data and processes it to generate an upper air input file for CALMET.

Usage

calmet_upper_air(location_name, year, lat_dec_deg = NULL,
  lon_dec_deg = NULL, lat_lon_grid_loc = 1, domain_width_m = NULL,
  domain_height_m = NULL, cell_resolution_m = 250, time_offset,
  READ62_exec_location)

Arguments

location_name
an assigned name for the CALMET domain.
year
the year for the UP.DAT file.
lat_dec_deg
the latitude of the CALMET domain in decimal degrees. The location of this point is defined in the lat_long_grid_loc argument.
lon_dec_deg
the longitude of the CALMET domain in decimal degrees. The location of this point is defined in the lat_long_grid_loc argument.
lat_lon_grid_loc
the location of the lat/long inputs in relation to the domain. Choices are: 1 (center), 2 (lower left), 3 (lower right), 4 (upper left), 5 (upper right).
domain_width_m
the width of the meteorological domain in meters.
domain_height_m
the height of the meteorological domain in meters.
cell_resolution_m
the grid cell resolution in meters.
time_offset
the offset from UTC-00:00 in hours.
READ62_exec
if the READ62 executable is in the system path, provide the name of the executable only; otherwise, provide the full path and name of the READ62 executable.

Examples

Run this code
## Not run: ------------------------------------
# # Generate an upper air station file
# calmet_upper_air(location_name = 'test',
#                  year = 2005,
#                  lat_dec_deg = 49.196116,
#                  lon_dec_deg = -122.505866,
#                  lat_lon_grid_loc = 1,
#                  domain_width_m = 117000,
#                  domain_height_m = 43250,
#                  cell_resolution_m = 500,
#                  time_offset = -8,
#                  READ62_exec = "read62")
## ---------------------------------------------

Run the code above in your browser using DataLab