[Thread Prev][Thread Next][Index]
Re: [ferret_users] Problems with netcdf output and zaxreplace
- To: <william.s.kessler@xxxxxxxx>, <ansley.b.manke@xxxxxxxx>
- Subject: Re: [ferret_users] Problems with netcdf output and zaxreplace
- From: Giorgio Graffino <g.graffino@xxxxxx>
- Date: Tue, 28 Apr 2020 12:07:56 +0200 (CEST)
- Arc-authentication-results: i=3; mx.google.com; arc=pass (i=2); spf=softfail (google.com: domain of transitioning g.graffino@xxxxxx does not designate 209.85.160.200 as permitted sender) smtp.mailfrom=g.graffino@xxxxxx
- Arc-authentication-results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=tim.it); spf=softfail (google.com: domain of transitioning g.graffino@xxxxxx does not designate 65.153.203.174 as permitted sender) smtp.mailfrom=g.graffino@xxxxxx
- Arc-authentication-results: i=1; mx.google.com; spf=pass (google.com: domain of g.graffino@xxxxxx designates 82.57.200.117 as permitted sender) smtp.mailfrom=g.graffino@xxxxxx
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:cc:subject:to:reply-to:from:date; bh=AKNCNHqSVd+PQxfqgqWMLR3TYQezWDf8FGYQ2G4uaoc=; b=YLRKCMWn70Ns+m+MKF8wQpb7EKx2MtFAbmEx2TU/vH2UF2sMefRIazidkRLSqO7are 3bb3l9cTB9jX3AKtt2qoEk0ek+Q3NMjhW/be//Ffw+FQhNC1xO+34PdBuQKaDC++gAol riWNgoSZpwq7cxPMI5Bu7q92ZGIp8Ha4kH4vvrwvDx09wrtJkydDu4t0bMmKYTsHoAke KV5aPmKUyuGd99oSMNCF0cQxQWULRr/+vJO9q/Xyg1NcJNzqi4maEchJrz4MVMUCIIy/ 7yUQjsX/ssoX2UxL8Z4BYQ0FMyZenYQHeCTvEgyVbWWQ/D2nmB4CqigX65Yb594k4cnk VMwQ==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:cc:subject:to:reply-to:from:date:message-id; bh=AKNCNHqSVd+PQxfqgqWMLR3TYQezWDf8FGYQ2G4uaoc=; b=Fi29X4mbZ/adEUtYXTvBmSgHzBUoWXZX5yYToJdfUMW1fpyGqRlAHkxPxof1PqAQVZ n3nKlnMjQaTpym4Fq74cIp9LrIR/fg4mAl68t5+tUd1VhFdBYVubTZ8y5PUZvCfnWJcV 8K/jiruabUhvB/EBtkg+r2qnn/c6Ko3hQ0ju/oMSHTp4j5LqZSc6GYQHLP5DCmKRmOFT 18y9xJh2B2DJsEnyAjitcEJuo/54k8I7coWH/YSJph9HBHp4gQ0P1qvWjIeVVPaPGx6X XfhpswErPuceFNtoJf7nGV7MF4Rx6GndPXUdR9mKaJeZBtc3NX9/NQfJAQ30C9aTa6EB 4SCg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:cc:subject:to:reply-to:from:date:message-id; bh=AKNCNHqSVd+PQxfqgqWMLR3TYQezWDf8FGYQ2G4uaoc=; b=xtV1IQiwE/9Eb7B/yKx+UVJPe8JNwvlTyLiFax4QZlxTx6WwdtyS6vX/DQMfG+Hi0N GBLdt+iHEqArkE5ESuw7Bcvr8etKDtwqLb+zoaB0AAQMDa7lxbYk89aNOW5WBXzUY9tf Fd3Jmi0u2QPwPHWP3CkbLGoY/WeSg7pW+TjKOrtFKhYN8MQJJqXUxfWK+huWaNgBLxsL RTc4/qIPrB/AzC7J1BSnLvAoZb5uL3vCf+ewYwTdO5H7LAi0uJ7yfya7BHl5GEP/UXlq 3Fnhq563pHRfKp7edVUmxrntKagFwrHgKNde1tMj0MQexTro/PdsuVuPifCGrVVtub5f lfIQ==
- Arc-seal: i=3; a=rsa-sha256; t=1588068493; cv=pass; d=google.com; s=arc-20160816; b=GKuqtPvtshpKJkPJlW5/QSRZS1QZF4s+4PxuRmfNAQRq3r1nmYKKTcK7wDO5WVDfEc QYn2kyldZQ6ouozGxpCbumQ2p1RF6cvXbzenPEiqPEvVm2rg+Xk5oT05OMkUB6gWPUd0 0VhNAoL3S1lrFERUUoJfNKYh5/qTZ7rNxb0JdjdCh8d7OnAOT1tPH+Zw32DK23y3CHAR j7WqiR7mC90WexAq/vRBW4tE1EyU+Anhwmm6VgFJniEqGC0mpYjeKbivvx+Uy1A/mi6k IqwUty8dH1Twg2co7yqIzSzhVy+2qLn/J5SuBPKJ0tFYvYJPQE0SSGgm5QVFINH8kvtX 8bgQ==
- Arc-seal: i=2; a=rsa-sha256; t=1588068480; cv=pass; d=google.com; s=arc-20160816; b=abFSohXbk4egiGKpjx1nIoCeUAibWTeb+xbo68YU9J9GYZSI9C+MYVIjv+U7VqXVnJ z7zrPvKD5Rrj/2UVd8z4uY64ZknMr8mMLnDK1ZlTSXsHqHuJRy+faB9ya43fZdL4SoHD txkizysvKT0SqYzciDHkn4JlnBEm/Y9wPHBTZ7i8yg51hV4mDru76BCiYmtEWXTBvZqb iw7nMcaukD7irTgtUocb2+5jLQ67YweKqg9NQjrVeaNxf8Z4nCEKtZXVLW3V/DjJHQdh fsorfiQXABu1GDZ1sbgqm7H0UDjAgMzWLzU54xiQj6jw8bb6isBgJvrD2D58paaQeVhl hwAA==
- Arc-seal: i=1; a=rsa-sha256; t=1588068478; cv=none; d=google.com; s=arc-20160816; b=OBGe5/G1TsxaUjuLYR7I9MDGAo9NTW8FKsxBBEbKSxTNAsfhe3/rSqy0lpSj9HGN18 /MJQRLwuLlgfxbDcsYOzsYWqHThtfur20+u9oAjwi9owS+AytV1owL5lv33ZlczOp1Lb N5gs5Le8KNMIqZ+6tRlpXD24TpNwLYzQl/78u5fGV1xPt+8IVRBihfxmUDj1pEr/Mdu+ JglA1fBdhCA2ecEuT0SIBCnLxJSThAVSdfCccm5Y5gFDlr5MXV5Cela6dN6FkOAtXzev +bVH372vmm53LOiv5exk26Y0pciBdTiL+R+ufXf5Q4TBLV6QwRHWmdTd3cCzV9BnNQoh 6cWQ==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=sender:date:from:reply-to:to:subject:cc:mime-version:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=AKNCNHqSVd+PQxfqgqWMLR3TYQezWDf8FGYQ2G4uaoc=; b=m+Lb6f/uhJG2M4msOEZzi3mQuJGemqd2sRLYMnqCrlU5pN8rv4CqidbiICPrYpkoy0 prQZCWLPoOViWcQ8eV6d0wtgxoZYXG6Af18o0Cm1qKJdq9LJd1otEvp30vKZiQorV0IO aTtxTZw3HrRn+jKNOX1SB2xH2UuNAv1Cadi0qqmeavEI7FTR/en3Rm7MWYsdfztVLeis yR/QlmaZBgWFNIydBzdnVWTbUH2WD+aZaejGav2hfUPt7eou5Nlp8HTOCTbnWsqr88Kg E/4P89RUnJtXlADiPuyaP/BXBoyvaoJEec6qWsHSql0X2OEQupLt2crXawssWDxkx5gJ yaRg==
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- Reply-to: Giorgio Graffino <g.graffino@xxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
Thanks Billy and Ansley for your prompt reply, and sorry about my slow reply.
Turned out Billy was right about using REPLACE, it solved the first problem about unused axis. The second problem (about the regridding) was instead due to a NCO command I executed before the analysis, which was messing up with the time variable of the input files; basically, nothing related with Ferret. I'm attaching the modified Ferret script.
I have another problem though: I'd ike to run that script on many models, so I'm including it in a bash script (see attached). I wrote that bash script according to what I read here (https://ferret.pmel.noaa.gov/Ferret/faq/batch-mode-usage), and adapted the REPEAT command according to this (
https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2002/msg00184.html). However, everytime I execute the bash script I obtain this error:
!-> REPEAT: I=1
**ERROR: command syntax: II = ???
define symbol ii
Command file, command group, or REPEAT execution aborted
The weird thing is that the relevant commands work if run inside Ferret, so the error should be somewhere esle in the bash script. Can you please give me some advice?
Thanks a lot.
Giorgio
----Messaggio originale----
Da: william.s.kessler@xxxxxxxx
Data: 16-apr-2020 17.52
A: "Giorgio Graffino"<g.graffino@xxxxxx>
Cc: "Ferret"<ferret_users@xxxxxxxx>
Ogg: Re: [ferret_users] Problems with netcdf output and zaxreplace
Hi Giorgio -
Without having looked at your files, here's a guess:
If some or all of your files include an unused axis (perhaps a single-point axis, either y=LAT or t=a calendar), then that is being carried through the calculation and possibly conflicting with the regridding of ZAXREPLACE.
One way to avoid this is to RESHAPE the original files to get rid of the unused axes.
Suppose you have a time series that includes the position encoded in the grid, perhaps with single-point x,y axes (try SHOW GRID).
Then:
let omit_xy = RESHAPE(varname,t[gt=time_axis]+z[gz=depth_axis])
The new variable omit_xy will have just the z,t axes you want.
Since RESHAPE "wraps" the variable onto the new axes, first be sure that the omitted axes are in fact single points.
This is just a guess!
Billy
> On Apr 16, 2020, at 7:19 AM, Giorgio Graffino <g.graffino@xxxxxx> wrote:
>
> Dear Ferreters,
> hope you can help me with this.
>
> I'm using Ferret (v6.842) on a cluster machine. My purpose is to regrid the meridional mass transport (time depth lat lon) into density space (time density lat lon) to compute the transport between some density layers. I'm writing a script based on this (https://github.com/NOAA-PMEL/Ferret/blob/master/jnls/examples/depth_to_density_demo.jnl), which is using zaxreplace. I also found something about auxiliary regridding (https://ferret.pmel.noaa.gov/Ferret/faq/depth-axis-to-density-axis), but it requires a newer version of Ferret.
>
> I'm using the script on several CMIP6 models, and saving the resulting time series as netcdf files for further analysis. I'm including as attachments the script and one of the output files, not the input files being too big. I'm facing two problems, and I can't find anything useful on the archives.
>
> 1) First problem: for most models Ferret isn't producing any useful output files, because of error messages like this one:
>
> TMAP ERR: error in line definition
> file coords dont match variable coords on axis LAT153_153
>
> As a result, I'm left with empty files. The point is that no LAT153_153 should exist, the variable being a time series. There is nothing special about 153, since other models produce different errors (LAT122_122, LAT124_124, LAT156_156, and so on). What is even more puzzling is that the computed variables are alright, because I can plot them with Ferret. I'm just not able to attach them as netcdf variables, and the resulting file is empty. Why is Ferret defining such axis for a time series?
>
> 2) Second problem: for other models Ferret is complaining about the axis transformation. The error in this case is:
>
> **ERROR: regridding: only @ASN regridding between calendar and
> non-calendar axes: DENS
>
> No variable is produced after using zaxreplace. I'm puzzled here because I'm defining a vertical axis, and I don't understand why calendars should matter. Is it a problem with zaxreplace? In case, could you provide me the relevant code?
>
> Thanks in advance.
>
> Giorgio
>
>
> <STC_rho_historical_EC-Earth3_pacific.nc><generate_STC_rho_CMIP6.jnl>
Attachment:
generate_STC_rho_CMIP6.sh
Description: application/shellscript
Attachment:
generate_STC_rho_CMIP6.jnl
Description: Binary data
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement