Exporting to NetCDF |
The NetCDF tab of the Export Data window exports the selected dataset to a NetCDF format file, specifically an NDS file. Note that Windographer does not yet import NetCDF files.
Tip: The NetCDF tab is currently available only to the customer that helped fund its development.
You can export NetCDF files from Windographer using the following command line:
Windographer.exe -open “C:/Path/Mast1.windog” -exportnds “C:/Path/Mast1.nc4”
If the .windog file contains multiple datasets, then the above command will export only the first dataset. The optional command line switch 'alldatasetsnumeric' instructs Windographer to export each dataset to its own NetCDF file using a fixed naming convention. If ‘Workbook.windog’ contains three datasets, for example, then the following command:
Windographer.exe -open “C:/Path/Workbook.windog” -exportnds “C:/Path/Workbook.nc4” -alldatasetsnumeric
will result in the export of the following three files:
C:/Path/Workbook_001.nc4
C:/Path/Workbook_002.nc4
C:/Path/Workbook_003.nc4
Another optional command line switch 'schema' instructs Windographer to export a specific file schema. The following command will export an ‘NDS1’ schema file, for example:
Windographer.exe -open “C:/Path/File.windog” -exportnds “C:/Path/File.nc4” -schema “NDS1.0”
If the command line does not specify the schema, Windographer will export the latest schema.
Upon completion of the command, Windographer.exe will return 0 in the case of success, or one of the error codes shown in the table below in the case of failure.
Error Code | Meaning |
---|---|
ERROR_NETCDF_EXPORT_WINDOG_INPUT_FILE_REQUIRED | The input file is not a windog file. |
ERROR_NETCDF_EXPORT_FAILED_TO_OPEN_INPUT_FILE | Windographer failed to open the specified windog file. Check that the file exists and opens in Windographer. |
ERROR_NETCDF_EXPORT_NO_DATASETS_FOUND | Windographer successfully opened the windog file, but it contained no datasets to export. |
ERROR_NETCDF_EXPORT_OUTPUT_NOT_SET | The command line did not specify a valid output file name. |
ERROR_NETCDF_EXPORT_IO_RESULT_FAILURE | Windographer could not export to the specified output file. The folder may not exists, you might lack write/create permissions in that folder, or the output file may be locked by another application. |
ERROR_NETCDF_EXPORT_UNKNOWN | An unspecified error occurred. |
See also