NOAA-PMEL/PyFerret

go land_detail not working

Closed this issue · 5 comments

**TMAP ERR: non-existent or not on line
Searched $FER_DESCR and $FER_DATA for geo_borders_intermed(.nc ,.cdf,.des)

This works in normal ferret but not pyferret

geo_borders_intermed.nc is in FerretDatasets, so updating your dataset installation from https://github.com/NOAA-PMEL/FerretDatasets should resolve this.

Thanks for this, I used the latest version and verified the file is there and when I run "use geo_borders_intermed.nc" I get the error
**TMAP ERR: non-existent or not on line
/usr/share/ferret-vis/data/geo_borders_intermed.nc

If you are referring to the version, do you mind sharing which version do I need to be on? v7.5 is fine?

I have problems installing v7.6 on my ubuntu system as I cant run python 3.6 on it

Hmm still did not work for me. I am using the latest release of the datasets. It works for ferret but not pyferret

The datasets installation and handling is the same whether you are using Ferret or PyFerret. It seems that you have different datasets directories for the two programs, so that your PyFerret installation is not using the same data directory as your Ferret installation. From a Ferret session, see where the file used by "go land_detail" is

yes? use geo_borders_intermed
yes? show data

This will list the file with its path.

Now, run PyFerret, and see where datasets are being found. The dataset that "go land" uses, is geo_borders.cdf:

yes? use geo_borders

Compare the paths. You could either copy geo_borders_intermed.nc from the location where Ferret finds it, to the location where PyFerret finds geo_borders.cdf, or you could change your PyFerret environment so that the environment variable FER_DSETS includes the same directory that Ferret uses.