[Thread Prev][Thread Next][Index]

Re: [ferret_users] add (degenerate) axis to variable



Just FYI, NCO makes this extremely easy:

ncks -O --mk_rec_dmn time ${infile} ${outfile}

-Andy

On 3/31/21 7:17 PM, Andy Jacobson wrote:
That works! Thanks, Ansley. Now...is there some magic that I can use to designate my new time axis as the record (unlimited) dimension?

Best,

Andy

On 3/31/21 6:59 PM, Ansley Manke wrote:
Hi Andy,

You can add a variable on the desired time axis with a value of 0 everywhere.  This uses the idea of "conformability <https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/variables-xpressions/XPRESSIONS#_VPINDEXENTRY_300>" - the principals that govern how variables created from on unlike grids can be combined.

so,

yes? let/like=temp temp_new = temp + 0*t[gt=t1]

Ansley

On 3/31/2021 10:35 AM, Andy Jacobson wrote:
Yes, I tried [...gt=t1@asn] syntax. Ferret didn't complain, but it didn't output that time axis either.

Thanks,

Andy

On 3/31/21 10:44 AM, Satyesh Ghetiya wrote:
Have you tried giving that time axis to variable by GT ? -->
let your variable is Temp and time axis name is T1, then -->
let Temp_new=Temp[gt=T1]

^ This should work.

On Wed, Mar 31, 2021 at 10:04 PM Andy Jacobson <andy.jacobson@xxxxxxxx <mailto:andy.jacobson@xxxxxxxx>> wrote:

    Howdy,

    I have a 2-d variable (lat, lon) that I read from a well-formatted netCDF file. This represents one month out of a time series of many such files. I'd like to add a time axis to this variable. I've defined my single-point time axis, but I can't figure out how to convince ferret to add this time axis to my variable. Normally I'd do this in NCO but I'd like to stay in ferret this time. Is there some reshape trickery involved?

    Thanks,

    Andy

    --     Andy Jacobson
andy.jacobson@xxxxxxxx <mailto:andy.jacobson@xxxxxxxx>

    NOAA Global Monitoring Laboratory
    325 Broadway R/GMD1
    Boulder, Colorado 80305

    303/497-4916



G Satyesh,
India




--
Andy Jacobson
andy.jacobson@xxxxxxxx

NOAA Global Monitoring Laboratory
325 Broadway R/GMD1
Boulder, Colorado 80305

303/497-4916

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement