[ncl-talk] Removing some data from NetCDF file for a specific date

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Tue Jan 7 12:28:18 MST 2020


I can think of at least three ways to do this.

1.  Write a program to copy grids from a model file into a new file, but
skip selected dates.
2.  In your application program, remove the selected dates from a copy of
the model data in program memory.
3.  In your application program, read in only the dates wanted, and skip
the dates to be removed.

I recommend methods 2 or 3 because they are fast and efficient, and need
less programming than the first method.  2 and 3 require the ability to
make changes to your application program.  Which method fits your needs?


On Tue, Jan 7, 2020 at 1:23 AM Setareh Rahimi via ncl-talk <
ncl-talk at ucar.edu> wrote:

>
> Dear all,
>
> I have some model outputs in the NetCDF format. I need to remove the
> results from the files for some specific dates (like 2008/02/04). So would
> you please kindly advise me how can I do so?
> Many thanks in advance,
> Best wishes,
> --
> S.Rahimi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200107/1349e0e9/attachment.html>


More information about the ncl-talk mailing list