Personal tools

Difference between revisions of "WOAnetcdfTOhdf5"

From MohidWiki

Jump to: navigation, search
(Samples)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Software that converts the netcdf files of the World Ocean Atlas 2005 (WOA05) into HDF5, it allows to create HDF5 files for Mohid using the Module LIFE (mmol/m3) or the Module WaterQuality (mg/l). The user will be prompted when the software is ran.  
+
This program converts the NetCDF files of the [http://www.nodc.noaa.gov/OC5/WOA05/pr_woa05.html World Ocean Atlas 2005] (WOA05) into HDF5, it allows to create HDF5 files for Mohid using the Module LIFE (mmol/m3) or the Module WaterQuality (mg/l). The user will be prompted when the software is ran.  
  
 
Running options for this application are specified by the user in a input file named PARAMETER_READ.dat.  
 
Running options for this application are specified by the user in a input file named PARAMETER_READ.dat.  
  
 
==Input file (PARAMETER_READ.dat)==
 
==Input file (PARAMETER_READ.dat)==
  ACTION           : CONVERT LEVITUS FORMAT
+
  ACTION                   : CONVERT LEVITUS FORMAT
  INPUT_FILENAME    : ... (path/name of NetCDF file to be converted)
+
  OUTPUT_FILENAME          : ... (path/name of HDF5 file to be converted)
  OUTPUT_FILENAME  : ... (path/name of HDF5 file to be converted)
+
  OUTPUT_GRID_FILENAME    : ... (path/name of grid data with horizontal discretization to be
+
                                created)
JUST_REPORT      : 0/1 (1 = obtain to file only input file header info, 0 = default)
+
  OUTPUT_GEOMETRY_FILENAME : ... (path/name of geometry file with vertical discretization to be
CONVERT_TO_ASCII  : 0/1 (1 = convert data to ASCII format, 0 = default)
+
                                created)
  CONVERT_TO_HDF5  : 0/1 (1 = convert data to HDF5 format, 0 = default)
+
  <<begin_input_files>>
+
  ... (path/name of the WOA05 NetCDF data files, one per line, can be several)
XX_VARIABLE      : ... (name of longitude variable in the input file: usual name is "lon")   
+
  ...  
  YY_VARIABLE      : ... (name of latitude variable in the input file: usual name is "lat")
+
  <<end_input_files>>
  TIME_VARIABLE    : ... (name of time variable in the input file: usual name is "time")
 
 
 
''Remarks''
 
  - if JUST_REPORT : 1 no HDF5 file will be produced regardless of the choice in CONVERT_TO_HDF5;
 
- CONVERT_TO_ASCII : 1 should not usually be attempted because ASCII file can be potentially
 
  very large; its main use is for the application development and debugging;
 
- if CONVERT_TO_HDF5 : 0 or if this keyword is inexistent in the input file no HDF5 file will
 
  be created;
 
- the names in XX_VARIABLE, YY_VARIABLE and TIME_VARIABLE are expected to be the same for
 
  different NOAA reanalysis NetCDF files, i.e. "lon", "lat" and "time".
 
  
 
==Samples==
 
==Samples==
 
  <begin_file>
 
  <begin_file>
 
  ACTION                  : CONVERT LEVITUS FORMAT
 
  ACTION                  : CONVERT LEVITUS FORMAT
 +
 
  OUTPUTFILENAME          : WOA05_climatology.hdf5
 
  OUTPUTFILENAME          : WOA05_climatology.hdf5
 
  OUTPUT_GRID_FILENAME    : WOA05_Grid1.dat
 
  OUTPUT_GRID_FILENAME    : WOA05_Grid1.dat
 
  OUTPUT_GEOMETRY_FILENAME : WOA05_Geometry1.dat
 
  OUTPUT_GEOMETRY_FILENAME : WOA05_Geometry1.dat
 +
 
  <<begin_input_files>>
 
  <<begin_input_files>>
 
  t0112an1.nc
 
  t0112an1.nc

Latest revision as of 20:15, 10 May 2010

This program converts the NetCDF files of the World Ocean Atlas 2005 (WOA05) into HDF5, it allows to create HDF5 files for Mohid using the Module LIFE (mmol/m3) or the Module WaterQuality (mg/l). The user will be prompted when the software is ran.

Running options for this application are specified by the user in a input file named PARAMETER_READ.dat.

Input file (PARAMETER_READ.dat)

ACTION                   : CONVERT LEVITUS FORMAT
OUTPUT_FILENAME          : ... (path/name of HDF5 file to be converted)
OUTPUT_GRID_FILENAME     : ... (path/name of grid data with horizontal discretization to be
                                created)
OUTPUT_GEOMETRY_FILENAME : ... (path/name of geometry file with vertical discretization to be
                                created)
<<begin_input_files>>
... (path/name of the WOA05 NetCDF data files, one per line, can be several)
... 
<<end_input_files>>

Samples

<begin_file>
ACTION                   : CONVERT LEVITUS FORMAT

OUTPUTFILENAME           : WOA05_climatology.hdf5
OUTPUT_GRID_FILENAME     : WOA05_Grid1.dat
OUTPUT_GEOMETRY_FILENAME : WOA05_Geometry1.dat

<<begin_input_files>>
t0112an1.nc
s0112an1.nc
n0112an1.nc
i0112an1.nc
p0112an1.nc
o0112an1.nc
<<end_input_files>>
<end_file>