libsim  Versione6.3.0
type(grid_file_id) function grid_file_id_new ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  mode,
integer, intent(in), optional  driver,
type(grid_id), intent(in), optional  from_grid_id 
)

Constructor for the grid_file_id class.

It opens the associated file(s); the driver to be used for file access is selected according to the filename argument, to the optional argument driver, or to the optional argument from_grid_id, with increasing priority. If driver and from_grid_id are not provided and filename does not contain driver information, a default is chosen. If filename is an empty string or missing value, the object will be empty, the same will happen in case the file cannot be successfully opened. This condition can be tested with the function c_e() . The driver string provided with the filename can also contain driver-specific options separated by commas, e.g. 'gdal,8,44,10,46:globe.dat'.

Parametri
[in]filenamename of file containing gridded data, in the format [driver:]pathname
[in]modeaccess mode for file, 'r' or 'w'
[in]driverselect the driver that will be associated to the grid_file_id created, use the constants grid_id_notype, grid_id_grib_api, grid_id_gdal
[in]from_grid_idselect the driver as the one associated to the provided grid_id object

Definizione alla linea 415 del file grid_id_class.F90.


Generated with Doxygen.