Magics is capable of reading NetCDF data files. A family of NetCDF parameters enable the user to define how to interpret the NetCDF data.
From this version, Magics will offer a easier setting of the NetCDF object. The principle is to make it aware of some commonly used conventions of NetCDF representations. For example It will try to identify the latitudes and longitudes axis to set-up the geo-reference. This is work in progress, and we plan to introduce more of these conventions in the next releases.
Example of metadata (ncdump):
Example of Magics code : no need to specify that the data are geo-referenced nor to explicitly define the latitude and longitude variable names:
From this version, Magics can understand data represented in a projection different than the traditional latlon.The NetCDF header should just contain the proj4 string representing the projection used to describe the data. This is still a very early stage, but contact us if you are interested in such a functionality.
Example of metadata (ncdump):
netcdf | description | default | Your Selection | |
---|---|---|---|---|
This handles the decoding of NetCDF Files.[version 3.1.0] | ||||
netcdf_type | Type of data arrangement in the file (possible values: matrix) | guess | ||
netcdf_filename | Path of the file to be read | |||
netcdf_dimension_setting | Extract only of a subset of variables [ex: level:100:500] | Enter a list of strings: val1/val2/val3 | stringarray() | |
netcdf_time_dimension_setting | Extract only the specified times : date specified in Human readable format YYY-MM-DD HH:MM:00 | |||
netcdf_level_dimension_setting | Extract only the specified level | |||
netcdf_number_dimension_setting | Extract only the specified number | |||
netcdf_dimension_setting_method | Method used to specify how to interpret the extraction of a subset, the range can by specified by value or by index | value | ||
netcdf_latitude_variable | Variable name representing the latitude dimension | latitude | ||
netcdf_longitude_variable | Variable name representing the longitude dimension | longitude | ||
netcdf_speed_component_variable | Variable name representing the speed component of the vector | |||
netcdf_direction_component_variable | Variable name representing the direction component of the vector | |||
netcdf_value_variable | Variable to plot | |||
netcdf_x_component_variable | x_component for vector plotting | |||
netcdf_y_component_variable | y_component for vector plotting | |||
netcdf_colour_component_variable | Variable name representing the colour component of the vector ( in case of coloured wind) | |||
netcdf_field_automatic_scaling | Apply an automatic scaling, if needed | on | ||
netcdf_field_scaling_factor | Scaling factor to multiply the field value by | 1 | ||
netcdf_field_add_offset | Offset added to the field values | 0 | ||
netcdf_missing_attribute | Attribute indicating the value used to indicate a missing value in the data | _FillValue | ||
netcdf_field_suppress_below | Values in the input field(s) below this value are to be suppressed, i.e. not to be taken into consideration for plotting purposes | -1.0e+21 | ||
netcdf_field_suppress_above | Values in the input field(s) above this value are to be suppressed, i.e not to be taken into consideration for plotting purposes | 1.0e+21 | ||
netcdf_x_variable | Variable name for the x values | x | ||
netcdf_x2_variable | Variable name for the auxiliary x values (used in CurveArea) | x2 | ||
netcdf_y_variable | Variable name for the y values | y | ||
netcdf_y2_variable | Variable name for the auxiliary y values (used in CurveArea) | y2 | ||
netcdf_x_auxiliary_variable | variable can used to define geoline definition. | |||
netcdf_x_geoline_convention | Geoline Convention used lonlat or latlon | lonlat | ||
netcdf_y_geoline_convention | Geoline Convention used lonlat or latlon | lonlat | ||
netcdf_y_auxiliary_variable | variable can used to define geoline definition. | |||
netcdf_matrix_primary_index | Primary index latitude/longitude | longitude | ||
netcdf_metadata | Json string containing metadata information: useful to choose a style | {} |