[Thread Prev][Thread Next][Index]
Re: [ferret_users] Problems with netcdf output and zaxreplace
- To: Giorgio Graffino <g.graffino@xxxxxx>
- Subject: Re: [ferret_users] Problems with netcdf output and zaxreplace
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Thu, 16 Apr 2020 08:52:36 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=gV6Yv0Ig; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=gV6Yv0Ig; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=LJqcCH2J2Ska8Iw3RdwsYQEO+7mLnowWaQpTfbxQjII=; b=PCv+OitFDhiQoxF1T8DyMjyK0Cn9liyWsONiDRA3PiayQOvPCnGaZ//YGTYj9IH+j3 yRNtMEAa8XZaeKkZq87/EDqaeiC4AuikzjWdUVRBoWZVJnOMdfbDXAPG0HuRbdQb2sBW Z04dNdwCsAdfGb4nq81IXslKc79lI8PPpXtRtsDPn2p66HuNbvr0Ly8kQbgFQcHTvHfZ h38PlWUfA2CHceHHIfLxIrT+7L0RncK+U/GyZIaLvV/lClQ2xX4pQSayceNrarW9D6N+ b+BFgoz47TMIw2PTcTvylOeEii/4AWX/s1CorHrnUffxidr1HfcadDl7oZrWBBcDJ5iV /HEg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=LJqcCH2J2Ska8Iw3RdwsYQEO+7mLnowWaQpTfbxQjII=; b=Kt+3Gn4ke6FvN0UZzO7Q2W+I+VU52MmvOK2RGMglrklZzoubk9jIh7XTm+M4zx5zDl L41dyyk1ll1V5qOQz6TVzerRS/MuHlpUWE1xtU/RS/IOIJ/N/7NsANu/eFpzyDsIbWtn H6zyqYAuBr3oxV5PE8XQiISjhjKiYJk1NhwmZvYA4O6NPF+Q9fbGr12wQWtu0Y/ZRqxX 46Dp+/94g+v/CWDzb0OQxeAId9uyN1IOdbia1QTt7jZbNgn/sP/LvAKfm2XGbrIPwS4y 6quj/Su3Y97h4svEb2ngVJ+B5o3MK8YTvMKIaYTpLGbNzB7CSDwa7JXp/o6vM2Xkjg8y 9CnA==
- Arc-seal: i=2; a=rsa-sha256; t=1587052359; cv=pass; d=google.com; s=arc-20160816; b=VfDrRvwBAtLXtR3jBNY3K2GzbxJwwhgkdz8qsDdze6WKLJZLwHWaQKJBxZjvKgk4bu CVHVhMc7zaJ6ClKMoU3QL3l3QVWaVzeNgAbpZi1+1K5QehfWN9Ym9047pGzZvqPM58y9 uKF+Tz7co5hPKsHkF+UvmOrkOGF0H9NSK83oiyRnrwwRKeF8NKpk/txhIg+xIeyMK4yZ uf7VoAU5MxWTzLREQhGLjM4bneIl5h7Tc4M60kq492CayMZXNxPQAcj2qmrbblGoK/NM hVi3e29Hc/KLzoVHPitlLwI2odS7OtbQglHvzI3FWIZkHu5iakE77s8tQ7o4gx4plvDK RzNw==
- Arc-seal: i=1; a=rsa-sha256; t=1587052358; cv=none; d=google.com; s=arc-20160816; b=k2uTIbxWXxyEhuQcDwxrQHcYq2QNwuawXqFP+QIMqDZ8DskbWNL87QTlcvCFs40ef6 WmuKo0V4qTEkBAFcSy4auaT8zoSQ2wZHafzLR67zQyKhp8GiFVRoG8sqomsHkTZDZRYj 2dJv+sqmJ4syqfK00xDoDgA1rT1z/O7UjblpJqxaiAC3fA4lJD8l+BW/otCBBmdl6jEh m7zHs3UvgX3b2BqjOlKKavmIUQfJS0fzK3T36CVTrNuiVHi8WxgbI167jOLbzuUdn+mh kCY6tk6d2EGqbikjNqDUo6LTMGilh+MmSM27CLu5ESB4q23L/NYf7nfyS7Q3RoxoM1tN +2TQ==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=LJqcCH2J2Ska8Iw3RdwsYQEO+7mLnowWaQpTfbxQjII=; b=ju/YwadK327XriCTXgsIepzhKnfpgnHAl3lB0sFTnxXrEhHL5+AaqnsPDS3G6wA57E yt10YwafzU0bqO4QYRo3QTOcwe4hhmmRU8HEKGSwlEgC0Dry9zJOZob+wRwz9br/ZYEa x63lJZHoAzfHEoHRnKBDLzCZtJazcNWYDLLpYAlQ32LSP+8rb5oyM99wJsmcY1edhuux /HnDwxwTXflnCCEhgNXbKjt72DxxVaYjnBkcH/9TvGoULuSZrgyccnZi2snI1psjEmh/ 3N2BofG1HZIddJ5eoilbnEu0cRAzciq6LAel6118VXBdZ0MNjNLRgIJ3NtTOS4R0ZaDC IT7w==
- In-reply-to: <171835bf252.g.graffino@tim.it>
- 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
- References: <171835bf252.g.graffino@tim.it>
- Sender: owner-ferret_users@xxxxxxxx
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>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement