print( variable_name/attribute name/string, format string);
The print function takes a variable name or attribute name or a quoted string and prints the contents in a in a similar fashion to ncks -H .
There is also an optional C style format string argument.
Currently the print function can't print RAM variables or expressions e.g 'print(var_msk*3+4)' is invalid. So if you want to print an expression first assign a variable with the expression; then print the variable.
examples
print(lon);
lon[0]=0
lon[1]=90
lon[2]=180
lon[3]=270
print(lon_2D_rrg,"%3.2f,");
0.00,0.00,180.00,0.00,180.00,0.00,180.00,0.00,
print(mss_val_fst@_FillValue);
mss_val_fst@_FillValue, size = 1 NC_FLOAT, value = -999
print("This function \t is monotonic\n");
This function is monotonic