Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there anyway I can turn off the preceding “(n)” output when I print a bunch of values?

0
Posted

Is there anyway I can turn off the preceding “(n)” output when I print a bunch of values?

0

Variable: x Type: float Total Size: 80 bytes 20 values Number of Dimensions: 1 Dimensions and sizes: [20] Coordinates: (0) 0 (1) 0.5263158 (2) 1.052632 (3) 1.578947 (4) 2.105263 (5) 2.631579 . . . then you can get rid of the “(0)”, “(1)”, etc, by using the “-n” command line option when you invoke “ncl”. Your output will then look like: Variable: x Type: float Total Size: 80 bytes 20 values Number of Dimensions: 1 Dimensions and sizes: [20] Coordinates: 0 0.5263158 1.052632 1.578947 2.105263 2.631579 . . . • My NCL script is quitting suddenly, and I’m not sure where and/or why. If you are running an NCL script and getting a “bus error” or “segmentation fault” (which technically shouldn’t happen, but does on occasion), then try commenting out your “begin” and “end” statement for the main code, and running your script with the “-x” command line option: ncl -x your_script.ncl This will cause every line of your script to be echoed to the screen, and you will be able to see where it is quitt

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123