Comments (7)
The intent of your ncap2
command is unclear to me. However, I was able to reproduce an issue with ncap2
not compressing new variables. While doing so, I notice that using -L 1
instead of --cmp='dfl'
might help. Please LMK if that workaround solves the immediate problem.
Also, var.set_miss(var2d)
might be causing problems. set_miss()
expects a scalar argument for the missing value, not a 2D array.
from nco.
Hi @czender ,
Thanks for the quick response. The intent is to transform a 2d array into time record 3d using the same data and applying the mask/missing value. I will revert back to using the L
flag for ncap2 now and try to fix the fill_missing argument. Spotted the problem when using new filters. I can't trust my memory but I think the fill_missing call was tthe shortest path to have the array properly broadcasted when I coded ages ago.
from nco.
The snippet I typed above was wrong (see edited version now), so I was set/get missing correctly.
Indeed, using old and tried -LN
flag will do the compression. However, some burden/overhead by the lacking of that is quite predictable:
...
opts="--cmp 'myfavcompression'"
...
ncks $opts ... a.nc b.nc
#force -L1 or handroll a flag argument conversion (we don't want that...)
ncap2 -L1 -s ... b.nc c.nc #if we end here, compression is not what I asked for.
ncks $opts ... c.nc d.nc #if we got more on the plate, we have a small read-overhead from reading a larger c.nc
Not the end of the world, but not optimal either. I assume most users somehow inject/force default arguments to all calls, particularly compression.
from nco.
@hmb1 As this thread shows, ncap2
does not support the --cmp
option when simultaneously creating new variables (or something like that). I thought I had hooked up the --cmp
support in all appropriate ncap2
subroutines but apparently I missed one. Any idea which one? i.e., where does ncap2
call nc_def_var()
without an immediately following call to nco_flt_def_*
?
from nco.
Okay, nevermind. I think I found the locations that I had missed before. There are two in prs_cls.cc
. I'll add this to the TODO list.
from nco.
@ocehugo the latest NCO snapshot includes a fix for the problem you reported. If you can, please test the snapshot and LMK if it works for you. Otherwise it will be in NCO 5.1.6 to be released in a week or two.
from nco.
Please reopen if this does not work for you with NCO 5.1.9
from nco.
Related Issues (20)
- ncap2 make_bounds exceeded memory limit HOT 1
- ncatted not honoring pre-existing history global attribute HOT 4
- x10 error margin for the same spell after HOT 6
- Unable to enable UDUNITS, not UDUNITS2 HOT 8
- No man page for ncz2psx HOT 2
- Error trying to concatenate a number of nc files HOT 5
- ncrcat adds erroneous(?) variable attribute HOT 1
- Parallelize compression over chunks? HOT 2
- ncremap pure pressure vertical interpolation does only the first timestep, everything else is zeros HOT 3
- C++17 deletes `std::binary_function`, breaks ncap2, Antlr2 w/ Clang16 HOT 9
- nco fails to build when compiling with "--no-undefined -Wl" as ld flags HOT 1
- Error building NCO 5.1.6 with icc (Intel classic) in nco_rgr.c HOT 1
- Undefined reference when disbaling OpenMP and using the Intel compiler HOT 1
- Support NC_STRING HOT 6
- using ```ncrename``` generates a corruped file HOT 1
- Feature Request: arbitrary suffix for -n
- Need to update "--monotonic" argument for mbtempest HOT 2
- ncremap documentation clarification HOT 2
- ncks -A -v [5.2.4] replace attribute _FillValue by eulaVlliF_ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nco.