[ncl-talk] Data missing in my conversion from text to nc - Edwin

Dennis Shea shea at ucar.edu
Wed Jul 26 08:15:21 MDT 2017


Your attached code seems rather complicated.  :-)

Each column corresponds to a time-series of different variables (fields).

As noted in a recent ncl-talk response [Damjan Jelic], it is best to
isolate repeated tasks in a function (if something is to be returned) to
the calling program or in a procedure if an 'action' only is to be
performed.

Before proceeding, look at the data file. You can see the following where
numbers are expected.

[snip]..
6/20/2017 9:40 PM       2.6     4.6     98      0.501   19.7    99.30
1.2     ...
6/20/2017 9:45 PM       1.5     2.2     130     #N/A    #N/A    #N/A
1.0    ...
6/20/2017 9:50 PM       2.5     2.8     231     0.664   17.9    99.25   ...
[snip]

These must be replaced with some numeric values. Then, on the netCDF, these
should be identified via the _FillValue attribute. See attached script.

The data file contains TAB and other special characters. These must be
handled via the following:

http://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_tab.shtml
also:* str_get_dq*, *str_get_sq*,

*str_get_nl*
%> ncl pm_em50.ncl

will create the netCDF file:  pmCik_EM38759_7Jun-17Jul17-1500.nc

%> ncdump -h pmCik_EM38759_7Jun-17Jul17-1500.nc >
out.pmCik_EM38759_7Jun-17Jul17-1500

or

%> ncl_filedump pmCik_EM38759_7Jun-17Jul17-1500.nc >
out.pmCik_EM38759_7Jun-17Jul17-1500

See attached

Good luck

On Tue, Jul 25, 2017 at 12:41 PM, Stanley Edwin <sedwin at alaska.edu> wrote:

> I tried my hand at creating nc files to make using them easier, but messed
> up somewhere in the pm_em50.ncl program. Cause of this sections in my
> converted file(nc) is missing.
>
> Help
>
> Thank You
>
> Stanley G. Edwin
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170726/8efa6869/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm_em50.ncl
Type: application/octet-stream
Size: 6544 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170726/8efa6869/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.pmCik_EM38759_7Jun-17Jul17-1500
Type: application/octet-stream
Size: 2253 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170726/8efa6869/attachment-0001.obj 


More information about the ncl-talk mailing list