[ncl-talk] Joining files together with varying dimension sizes

Andrew Kren - NOAA Affiliate andrew.kren at noaa.gov
Tue Apr 26 11:22:43 MDT 2016


Dear NCL Talk,

I have data that is netcdf format of various aircraft microwave retrievals.
These retrievals of temperature, moisture, etc, are in units of (lev,time)
in each file. I want to join all of the files together so that I can
compare the data to dropsondes. However, when I do the addfiles feature,
and grab the data using temp_hamsr = factor*(short2flt(q[:]->ham_airT))-273.15,
it gives me this error:

warning:File
/scratch4/BMC/shout/Andrew.Kren/hamsr_data/2011/HS3/L2/HAMSR_L2_20110908T185915_20110909T185423_v01.nc
dimension sizes do not conform to others in list; skipping file

warning:A valid instance of variable ham_airT was not found in one or more
elements of the file list


I know what this error means after looking it up online and on the NCL help
page. It is because my leftmost dimension is not time (level instead),
which is required to merge them together. Is there any workaround to do
this, like reorder when reading in, with what format my data is in?
Basically I want to make my code portable so I can join any number of files
for a particular storm case, since not all cases have the same amount of
time retrievals.


I also attached an ncl_filedump output of the format of the data I am
reading. The along track metadata refers to time dimension in this case.


Thanks,

-- 
Andrew Kren, PhD
Research Scientist I, Global Observing Systems Analysis (GOSA) Group
NOAA ESRL Global Systems Division (Rm 3C515)
325 Broadway, Boulder, CO 80305
(303) 497-5418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160426/72e74140/attachment.html 
-------------- next part --------------
 Copyright (C) 1995-2015 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.3.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.

Variable: f
Type: file
filename:	HAMSR_L2_20110908T185915_20110909T185423_v01
path:	../hamsr_data/2011/HS3/L2/HAMSR_L2_20110908T185915_20110909T185423_v01.nc
   file global attributes:
   dimensions:
      channel = 25
      cross_track = 42
      along_track = 18158
      HAMSR_levels = 33
      HAMSR_dBz_levels = 33
   variables:
      double time ( along_track )
         units :	seconds
         comment :	seconds since 2000-01-01 00:00:00.0
         scale_factor :	   1
         long_name :	Measurement time

      integer lat ( along_track, cross_track )
         units :	degrees_north
         comment :	Pixel Latitude [-90:90]
         scale_factor :	0.001
         long_name :	Pixel Latitude

      integer lon ( along_track, cross_track )
         units :	degrees_east
         comment :	Pixel Longitude [-180:180]
         scale_factor :	0.001
         long_name :	Pixel Longitude

      integer altitude ( along_track )
         units :	m
         comment :	Aircraft altitude from GPS in meters
         scale_factor :	 0.1
         long_name :	Altitude

      integer TB ( along_track, cross_track, channel )
         units :	K
         comment :	Calibrated Brightness Temperature
         scale_factor :	0.001
         long_name :	Brightness Temperature

      short inc ( along_track, cross_track )
         units :	degrees
         comment :	Pixel Incidence Angle [-180:180]
         scale_factor :	0.01
         long_name :	Pixel Incidence Angle

      integer AClat ( along_track )
         units :	degrees_north
         comment :	Airplane Latitude [-90:90]
         scale_factor :	0.001
         long_name :	Airplane Latitude

      integer AClon ( along_track )
         units :	degrees_east
         comment :	Airplane Longitude [-180:180]
         scale_factor :	0.001
         long_name :	Airplane Longitude

      short ACroll ( along_track )
         units :	degrees
         comment :	Airplane Roll [-180:180]
         scale_factor :	0.01
         long_name :	Airplane Roll

      short ACpitch ( along_track )
         units :	degrees
         comment :	Airplane Pitch [-180:180]
         scale_factor :	0.01
         long_name :	Airplane Pitch

      short ACheading ( along_track )
         units :	degrees
         comment :	Airplane Heading [-180:180]
         scale_factor :	0.01
         long_name :	Airplane Heading

      short PWV ( along_track, cross_track )
         units :	cm
         comment :	HAMSR Precipitable Water Vapor - Regresssion Algorithm
         scale_factor :	0.001
         long_name :	HAMSR Precipitable Water Vapor from Regresssion Algorithm

      short CLW ( along_track, cross_track )
         units :	mm
         comment :	HAMSR Integrated Cloud Liquid Water - Regression Algorithm
         scale_factor :	0.0001
         long_name :	HAMSR Integrated Cloud Liquid Water from Regression Algorithm

      short sea_ice_flag ( along_track )
         units :	-
         comment :	Sea Ice Flag (0-no ice, 1-ice)
         scale_factor :	   1
         long_name :	Sea Ice Flag

      short anc_sfc_ht ( along_track )
         units :	m
         comment :	Ancillary Surface Height
         scale_factor :	   1
         long_name :	Ancillary Surface Height

      short anc_Psfc ( along_track )
         units :	mb
         comment :	Ancillary Surface Pressure
         scale_factor :	 0.1
         long_name :	Ancillary Surface Pressure

      short land_flag ( along_track, cross_track )
         units :	-
         comment :	Land flag (0-ocean, >0 not ocean)
         scale_factor :	   1
         long_name :	Land flag

      short anc_ws ( along_track )
         units :	m/s
         comment :	Ancillary 10-m Wind Speed
         scale_factor :	0.01
         long_name :	Ancillary 10-m Wind Speed

      short ham_airT ( HAMSR_levels, along_track )
         units :	K
         comment :	HAMSR Vertical Air Temperature
         scale_factor :	 0.1
         long_name :	HAMSR Vertical Air Temperature

      short ham_airQ ( HAMSR_levels, along_track )
         units :	g/m^3
         comment :	HAMSR Vertical Absolute Humidity
         scale_factor :	0.001
         long_name :	HAMSR Vertical Absolute Humidity

      short ham_airL ( HAMSR_levels, along_track )
         units :	g/m^3
         comment :	HAMSR Vertical Cloud Liquid Water
         scale_factor :	0.0001
         long_name :	HAMSR Vertical Cloud Liquid Water

      short ham_airRH ( HAMSR_levels, along_track )
         units :	%
         comment :	HAMSR Vertical Relative Humidity
         scale_factor :	0.01
         long_name :	HAMSR Vertical Relative Humidity

      integer ham_airPT ( HAMSR_levels, along_track )
         units :	K
         comment :	HAMSR Potential Temperature
         scale_factor :	 0.1
         long_name :	HAMSR Potential Temperature

      integer ham_airEPT ( HAMSR_levels, along_track )
         units :	K
         comment :	HAMSR Equivalent Potential Temperature
         scale_factor :	 0.1
         long_name :	HAMSR Equivalent Potential Temperature

      short ham_LCL ( along_track )
         units :	mb
         comment :	HAMSR Lifting Condensation Level
         scale_factor :	 0.1
         long_name :	HAMSR Lifting Condensation Level

      short ham_LFC ( along_track )
         units :	mb
         comment :	HAMSR Level of Free Convection
         scale_factor :	 0.1
         long_name :	HAMSR Level of Free Convection

      short ham_prof_PWV ( along_track )
         units :	cm
         comment :	HAMSR Precipitable Water Vapor from Retrieved Profile
         scale_factor :	0.001
         long_name :	HAMSR Precipitable Water Vapor from Retrieved Profile

      short ham_prof_CLW ( along_track )
         units :	mm
         comment :	HAMSR Integrated Cloud Liquid Water from Retrieved Profile
         scale_factor :	0.0001
         long_name :	HAMSR Integrated Cloud Liquid Water from Retrieved Profile

      short ham_sfc_airT ( along_track )
         units :	K
         comment :	HAMSR Air Temperature at Surface
         scale_factor :	 0.1
         long_name :	HAMSR Air Temperature at Surface

      short ham_sfc_airQ ( along_track )
         units :	g/m^3
         comment :	HAMSR Absolute Humidity at Surface
         scale_factor :	0.001
         long_name :	HAMSR Absolute Humidity at Surface

      short ham_sfc_airRH ( along_track )
         units :	%
         comment :	HAMSR Relative Humidity at Surface
         scale_factor :	0.01
         long_name :	HAMSR Relative Humidity at Surface

      short ham_FltLvl_airT ( along_track )
         units :	K
         comment :	HAMSR Air Temperature at Flight Level
         scale_factor :	 0.1
         long_name :	HAMSR Air Temperature at Flight Level

      short ham_FltLvl_airQ ( along_track )
         units :	g/m^3
         comment :	HAMSR Absolute Humidity at Flight Level
         scale_factor :	0.001
         long_name :	HAMSR Absolute Humidity at Flight Level

      short ham_FltLvl_airRH ( along_track )
         units :	%
         comment :	HAMSR Relative Humidity at Flight Level
         scale_factor :	0.01
         long_name :	HAMSR Relative Humidity at Flight Level

      short ham_ret_qual_flag ( along_track )
         units :	-
         comment :	HAMSR Profile Retrieval Quality Flag [0-good convergence and low RMS, 1-converged with higher RMS;use with caution, 2-did not converge;use not recommended
         scale_factor :	   1
         long_name :	HAMSR Profile Retrieval Quality Flag

      short ham_pres_levels ( HAMSR_levels )
         units :	mb
         comment :	HAMSR Profile Pressure Levels
         scale_factor :	 0.1
         long_name :	HAMSR Profile Pressure Levels

      short ham_airHt ( HAMSR_levels, along_track )
         units :	m
         comment :	HAMSR Height of Pressure Levels
         scale_factor :	   1
         long_name :	HAMSR Height of Pressure Levels

      short ham_dBz ( HAMSR_dBz_levels, along_track, cross_track )
         units :	dBz
         comment :	HAMSR Reflectivity Profile
         scale_factor :	0.01
         long_name :	HAMSR Derived Reflectivity Profile

      short ham_dBz_heights ( HAMSR_dBz_levels )
         units :	m
         comment :	HAMSR Height of Reflectivity Profile
         scale_factor :	   1
         long_name :	HAMSR Height of Reflectivity Levels

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare_AVAPS_HAMSR_HS3_2011.ncl
Type: application/octet-stream
Size: 17757 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160426/72e74140/attachment.obj 


More information about the ncl-talk mailing list