Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Occurrences of if a value in 24 hr period Post 302906319 by Don Cragun on Wednesday 18th of June 2014 05:01:35 PM
Old 06-18-2014
What have you tried?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Timeout period

How do i increase the timeout period of a telnet session? (4 Replies)
Discussion started by: Nadeem Mistry
4 Replies

2. Shell Programming and Scripting

record wc -l over 24 hour period

I need to keep track of this output echo "dis chs(*)" | runmqsc | grep RUNNING | wc -l I need to record that count once an hour 24 hours a day and write to a file with the date and time it was run. Any idea on how to do this. (5 Replies)
Discussion started by: csaunders
5 Replies

3. Shell Programming and Scripting

output result (period -1)

hello, I have the following basic script which input the period, but I would like to output is period -1.. how? echo Please input period (yyyymm): read PERIOD OUTPUT=$PERIOD -1 echo " you request period -1 is $OUT" input 200705 output 200704 input 200701 output 200612 The above... (4 Replies)
Discussion started by: happyv
4 Replies

4. Shell Programming and Scripting

How to get rid of the last period (.)

Hello, I'm able to trim down the log message to "192.168.1.0.", but can't get rid off the last period. Can any one help me on the syntax to get rid of the last period? Basically, I want "192.168.1.0" instead of "192.168.1.0." Thanks, (4 Replies)
Discussion started by: dannytrinh
4 Replies

5. UNIX for Dummies Questions & Answers

Am confused - The all important . (period) - ????

Hi, My apologies if this question is so trivial ... I guess there really is a room for dummies ... :o Anyway, just wanting to know if someone can please explain what the dot (.) infront of the command or script does and why it works and does not work in the following? ... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. HP-UX

Grep - specific period

Hi everyone, I want to use grep to search a patern in a folder. But the folder contains millions of files which makes a big delay if I want to search all the files in the folder. I have been trying to use grep to search the last 10 days of all the files. but no success yet! could you advice? ... (2 Replies)
Discussion started by: messi777
2 Replies

7. Shell Programming and Scripting

help to get all dates for given period

i need a text file which contains all dates between given period i.e 01.05.2011 to 12.06.2011 Pls help (1 Reply)
Discussion started by: suryanarayana
1 Replies

8. Shell Programming and Scripting

How to insert period after each number?

stupid question: trying to use sed to do the following... $ echo '12345' | sed 's/./&./g' 1.2.3.4.5. needed this instead: 1.2.3.4.5 but how? please advise (7 Replies)
Discussion started by: ux4me
7 Replies

9. Shell Programming and Scripting

Add a newline after every period

I need to add a newline after every period. Here is some sample text. The mechanisms for this type of conditioning are probably the same in humans. According to PET scans on young adults, when pairing a stimulus with an airpuff produces a conditioned eye blink, activity increases in the... (4 Replies)
Discussion started by: danbroz
4 Replies

10. Shell Programming and Scripting

To get the Files between Time Period

All, How to get the list of files through a unix command which exists / created / updated between 8 PM to 11:59 PM from a particular location. Regards Oracle User (3 Replies)
Discussion started by: Oracle_User
3 Replies
gdcminfo(1)							       GDCM							       gdcminfo(1)

NAME
gdcminfo - Display meta info about the input DICOM file. SYNOPSIS
gdcminfo [options] file-in DESCRIPTION
The gdcminfo command line program takes as input a DICOM file, or a directory and process it to extract meta- information about the DICOM file processed. PARAMETERS
file-in DICOM input filename options options -r --recursive recursive. -d --check-deflated check if file is proper deflated syntax. --resources-path Resources path. --md5sum Compute md5sum of Pixel Data attribute value. --check-compression check the encapsulated stream compression (lossless/lossy). general options -h --help print this help text and exit -v --version print version information and exit -V --verbose verbose mode (warning+error). -W --warning warning mode, print warning information -E --error error mode, print error information -D --debug debug mode, print debug information environment variable GDCM_RESOURCES_PATH path pointing to resources files (Part3.xml, ...) Simple usage gdcmData Using data from gdcmData: $ gdcminfo gdcmData/012345.002.050.dcm MediaStorage is 1.2.840.10008.5.1.4.1.1.4 [MR Image Storage] NumberOfDimensions: 2 Dimensions: (256,256) Origin: (-85,21.6,108.7) Spacing: (0.664062,0.664062,1.5) DirectionCosines: (1,0,0,0,0,-1) Rescale Intercept/Slope: (0,1) SamplesPerPixel :1 BitsAllocated :16 BitsStored :16 HighBit :15 PixelRepresentation:1 Orientation Label: CORONAL Davie Clunie datasets: Using data from David Clunie datasets: $ gdcminfo BRTUM001.dcm MediaStorage is 1.2.840.10008.5.1.4.1.1.4.1 [Enhanced MR Image Storage] NumberOfDimensions: 3 Dimensions: (256,256,15) Origin: (40,-105,105) Spacing: (0.820312,0.820312,6) DirectionCosines: (0,1,0,0,0,-1) Rescale Intercept/Slope: (0,1) SamplesPerPixel :1 BitsAllocated :16 BitsStored :16 HighBit :15 PixelRepresentation:1 Orientation Label: SAGITTAL Checking the md5sum of the Pixel Data After compressing a DICOM file (see gdcmconv) using a lossless compression algorithm, it is fairly easy to compare the two files for differences at DICOM attribute level. However one operation is slightly easier to do: how to make sure the compression was actually lossless ? In this case one could use the --md5sum operation. Take an uncompressed DICOM image file: $ gdcminfo --md5sum SIEMENS_ImageLocationUN.dcm The tool return: 0621954acd5815e0b4f7b65fcc6506b1 Now compress this file: $ gdcmconv --jpegls SIEMENS_ImageLocationUN.dcm lossless_compressed.dcm and then check again the md5sum: $ gdcminfo --md5sum lossless_compressed.dcm The tool return: 0621954acd5815e0b4f7b65fcc6506b1 Checking if Pixel Data is lossless In come environment one wish to check whether or not the DICOM file is lossless or not. It is fairly easy to do that in most cases. Only in two occasion this is not clear from the sole DICOM Attribute. When the Transfer Syntax is JPEG 2000 Image Compression (1.2.840.10008.1.2.4.91) and when the Transfer Syntax is JPEG-LS Lossy (Near-Lossless) Image Compression (1.2.840.10008.1.2.4.81). In this case, the only solution is to open the Pixel Data element, read the specific JPEG header and check whether or not the JPEG transformation was lossless or not: $ gdcminfo --check-compression gdcmData/MAROTECH_CT_JP2Lossy.dcm The tool returns: 'Encapsulated Stream was found to be: lossy' SEE ALSO
gdcmdump(1), gdcmraw(1), gdcmconv(1) COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre Version 2.2.0 Tue Feb 5 2013 gdcminfo(1)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy