public class NetcdfFormatUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
NC_FILL_BYTE |
static char |
NC_FILL_CHAR |
static double |
NC_FILL_DOUBLE |
static float |
NC_FILL_FLOAT |
static int |
NC_FILL_INT |
static long |
NC_FILL_INT64 |
static short |
NC_FILL_SHORT |
static String |
NC_FILL_STRING |
static byte |
NC_FILL_UBYTE |
static int |
NC_FILL_UINT |
static long |
NC_FILL_UINT64 |
static short |
NC_FILL_USHORT |
static String |
NETCDF4_COORDINATES |
static String |
NETCDF4_DIMID |
static String |
NETCDF4_NON_COORD |
static String |
NETCDF4_STRICT |
| Constructor and Description |
|---|
NetcdfFormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Number |
getFillValueDefault(ArrayType dtype) |
static Number |
getFillValueDefault(DataType dtype)
Deprecated.
use getFillValueDefault(ArrayType)
|
static boolean |
isValidNetcdfObjectName(String name)
Determine if the given name can be used for a NetCDF object, i.e.
|
static String |
makeValidNetcdfObjectName(String name)
Convert a name to a legal netcdf-3 name.
|
public static final byte NC_FILL_BYTE
public static final char NC_FILL_CHAR
public static final short NC_FILL_SHORT
public static final int NC_FILL_INT
public static final float NC_FILL_FLOAT
public static final double NC_FILL_DOUBLE
public static final byte NC_FILL_UBYTE
public static final short NC_FILL_USHORT
public static final int NC_FILL_UINT
public static final long NC_FILL_INT64
public static final long NC_FILL_UINT64
public static final String NC_FILL_STRING
public static final String NETCDF4_COORDINATES
public static final String NETCDF4_DIMID
public static final String NETCDF4_STRICT
public static final String NETCDF4_NON_COORD
@Deprecated public static Number getFillValueDefault(DataType dtype)
public static boolean isValidNetcdfObjectName(String name)
([a-zA-Z0-9_]|{UTF8})([^\x00-\x1F\x7F/]|{UTF8})*
where UTF8 represents a multi-byte UTF-8 encoding. Also, no trailing spaces are permitted in names. We do not
allow '/' because HDF5 does not permit slashes in names as slash is used as a group separator. If UTF-8 is
supported, then a multi-byte UTF-8 character can occur anywhere within an identifier.name - the name to validate.true if the name is valid.public static String makeValidNetcdfObjectName(String name)
name - the name to convert.isValidNetcdfObjectName(String)